CN114640671A - Service component management method, server and electronic equipment - Google Patents

Service component management method, server and electronic equipment Download PDF

Info

Publication number
CN114640671A
CN114640671A CN202011385598.2A CN202011385598A CN114640671A CN 114640671 A CN114640671 A CN 114640671A CN 202011385598 A CN202011385598 A CN 202011385598A CN 114640671 A CN114640671 A CN 114640671A
Authority
CN
China
Prior art keywords
target
input
server
identity information
service component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011385598.2A
Other languages
Chinese (zh)
Inventor
杨占理
蒋宁
刘德华
吴海英
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mashang Xiaofei Finance Co Ltd
Original Assignee
Mashang Xiaofei Finance Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mashang Xiaofei Finance Co Ltd filed Critical Mashang Xiaofei Finance Co Ltd
Priority to CN202011385598.2A priority Critical patent/CN114640671A/en
Publication of CN114640671A publication Critical patent/CN114640671A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Abstract

The invention provides a management method of a service assembly, a server and electronic equipment, wherein the management method of the service assembly is applied to the server, the server is in communication connection with at least two server clusters, and the method comprises the following steps: responding to a first input of a user, and acquiring identity information of a target service component indicated by the first input, wherein the target service component is a service component in the at least two server clusters; generating a target control instruction based on the identity information of the target service component in response to a second input of the user; and sending the target control instruction to a target server corresponding to the identity information of the target service assembly so as to enable the target server to execute the target control instruction. The scheme provided by the embodiment of the invention can at least solve the problem that the management process of the service assembly is more complicated in the prior art.

Description

Service component management method, server and electronic equipment
Technical Field
The present application relates to the field of information technologies, and in particular, to a method for managing a service component, a server, and an electronic device.
Background
At present, in the process of managing service components in a server cluster, a maintainer usually logs in each server cluster one by one to manage the service components in the server cluster. However, when there are multiple server clusters in the background, the solution in the prior art will cause a problem that the management process of the service component is cumbersome.
Disclosure of Invention
The invention provides a management method and device of a service assembly and electronic equipment, and aims to solve the problem that the management process of the service assembly in the prior art is complicated.
In order to solve the technical problems, the specific implementation scheme of the invention is as follows:
in a first aspect, an embodiment of the present invention provides a method for managing a service component, where the method is applied to a server, and the server is connected to at least two server clusters in a communication manner, and the method includes:
responding to a first input of a user, and acquiring identity information of a target service component indicated by the first input, wherein the target service component is a service component in the at least two server clusters;
generating a target control instruction based on the identity information of the target service component in response to a second input of the user;
and sending the target control instruction to a target server corresponding to the identity information of the target service assembly so as to enable the target server to execute the target control instruction.
In a second aspect, an embodiment of the present invention further provides a server, where the server is connected to at least two server clusters in a communication manner, and the server includes:
a first obtaining module, configured to obtain, in response to a first input by a user, identity information of a target service component indicated by the first input, where the target service component is a service component in the at least two server clusters;
the generating module is used for responding to a second input of the user and generating a target control instruction based on the identity information of the target service component;
and the sending module is used for sending the target control instruction to a target server corresponding to the identity information of the target service assembly so as to enable the target server to execute the target control instruction.
In a third aspect, an embodiment of the present invention further provides a terminal, including a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the management method for the service component.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the steps of the management method for the service component.
In the embodiment of the invention, the communication connection between the electronic equipment and at least two server clusters is established, the target service component to be managed can be selected on the electronic equipment, then, the target control instruction is generated based on the identity information of the selected target service component, and the target control instruction is sent to the target server corresponding to the identity information of the target service component, so that the target server executes the target control instruction, and the management process of the service component is completed. In the invention, the service components in at least two server clusters can be managed only by the electronic equipment, thereby simplifying the management process of the service components.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a method for managing service components according to an embodiment of the present invention;
FIG. 2 is a flow chart of a management system for service components provided by an embodiment of the invention;
FIG. 3 is a block diagram of a server provided by an embodiment of the present invention;
fig. 4 is a block diagram of another electronic device provided in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for managing a service component according to an embodiment of the present invention, where the method for managing the service component is applied to a server, and the server is connected to at least two server clusters in a communication manner, and the method includes:
step 101, responding to a first input of a user, and acquiring identity information of a target service component indicated by the first input, wherein the target service component is a service component in the at least two server clusters.
Specifically, an operation management platform may be set in the server, and a user may log in the operation management platform on the server through an account and a password to enter an operation management interface. For example, a third party batch management tool may be set in the server, and the third party batch management tool may be Salt, where Salt is a batch management tool set on a heterogeneous platform basis, and may use a lightweight communicator ZMQ and write the third party batch management tool Salt using Python. salt follows the Apache2 protocol and has similar functionality as Puppet, Chef, e.g., fully open source functionality. Furthermore, Salt is a new approach to dynamic communication bus based infrastructure management, which can be used for data driven orchestration, remote execution of any infrastructure, configuration management of any application stack, etc.
The server cluster may be a CDH (enclosing Apache Hadoop) big data cluster, hereinafter abbreviated as CDH cluster. The CDH cluster is one of numerous branches of the Hadoop, is maintained by Cloudera, is constructed based on Apache Hadoop of a stable version, integrates a plurality of patches and can be directly used in a production environment.
The interface of the third-party batch management tool salt can directly call the super in the at least two server clusters to manage the service components of the at least two server clusters.
The above-mentioned super visor: the method is an excellent process management tool under linux, can conveniently manage and apply the problem of excessive service processes under a linux system through supervisord, supports automatic restart of abnormal service exit, and manages and controls the running state of related process services, abnormal process service notification and the like through a browser. The CDH cluster realizes service starting, stopping and state checking based on the process management tool.
The target service component may be a service component of any one of at least two server clusters, the identity information of the target service component may include identity information of a server to which the target service component belongs, and the identity information of the server may include identity information of a server cluster to which the server belongs. For example, the identity information of the server cluster to which the target server component belongs may be used as a prefix, and a target number is used as a suffix to be combined to form the identity information of the target server component, where the target number is used to distinguish different service components in the same server cluster. In addition, the identity information of the target service component may also include an IP address of a server to which the target service component belongs, the target number, and a service name of the target service component.
The first input may be an input operation or a selection operation for execution in the operation management interface. For example, the first input may be an input operation by a user on the operation management interface, or may be a selection operation by a user on a selection menu provided on the operation management interface, and the selection menu may be provided on the server for selection by the user, thereby preventing an illegal input by the user.
The number of the target service components may be at least one, and when the number of the target service components is greater than one, each of the target service components may include different service components in the same server cluster, or may include different service components in different server clusters.
The input content of the first input may be identity information of a server cluster, for example, the input content of the first input may be an IP address of some or all server clusters in the at least two server clusters, and accordingly, at this time, the target service component may be all service components in all server clusters corresponding to the first input, in this case, the identity information of the target service component may be composed of the IP address and the service name of the server cluster together. In addition, the input content of the first input may also be a name of a specific service, and in this case, the target service component may be a service component of a target service indicated by all first inputs in the at least two server clusters.
Based on the step, the target service component which the user needs to manage can be determined, and the identity information of the target service component is obtained.
And 102, responding to a second input of the user, and generating a target control instruction based on the identity information of the target service component.
The input content of the second input may include specific instruction content, for example, the second input may include one of the following instruction contents: a start instruction, a stop instruction, a state check instruction, and a restart instruction.
Since the target service components that the user needs to manage have been determined based on step 101 described above, the user-specific management operation can be determined based on the instruction content input by the user through the second input in step 102. Accordingly, a target control instruction may be generated based on the identity information of the target service component and the second input, wherein the target control instruction may include the identity information of the target service component and the instruction content input by the second input.
Step 103, sending the target control instruction to a target server corresponding to the identity information of the target service component, so that the target server executes the target control instruction.
Specifically, as can be seen from the above discussion, each generated target control instruction is generated based on the identity information of one target service component, that is, the target control instruction is an instruction used by the user to manage the target service component corresponding to the target control instruction. Therefore, after the target control instruction is generated, the target control instruction may be sent to a target server, where the target server is a server to which a target service component corresponding to the target control instruction belongs, and thus, after the target server receives the target control instruction, the target server may determine a target service component to be managed based on the identity information in the target control instruction, and manage the determined target service component based on the instruction content in the target control instruction, thereby completing the management process of the target service component.
In this embodiment, a communication connection between a server and at least two server clusters is established, a target service component to be managed can be selected on the server, then, a target control instruction is generated based on identity information of the selected target service component, and the target control instruction is sent to a target server corresponding to the identity information of the target service component, so that the target server executes the target control instruction, thereby completing a management process of the service component. In the invention, the service components in at least two server clusters can be managed by only one server, thereby simplifying the management process of the service components.
Optionally, the obtaining, by responding to a first input of a user, the identity information of the target service component indicated by the first input includes:
in response to the first input, acquiring identity information of N target service components indicated by the first input, wherein N is an integer greater than 1;
generating a target control instruction based on the identity information of the target service component in response to a second input of the user, comprising:
generating a control instruction list in response to the second input, wherein the control instruction list comprises N item label control instructions, and the N item label control instructions are in one-to-one correspondence with the N target service components;
sorting the N item label control instructions in the control instruction list based on the service number to obtain a sorting result;
sorting N item label control instructions in the sorting result based on the IP address to obtain a target control instruction list;
the sending the target control instruction to a target server to enable the target server to execute the target control instruction includes:
and the target server sequentially executes the N item label control instructions according to the sequence in the target control instruction list.
Specifically, since a server or a server cluster usually provides a plurality of different services, that is, there are a plurality of different service components, and at this time, there is a need for starting a part of the service components depending on the previous start of another part of the service components, there may be a certain dependency relationship among the services in the server cluster. The problem that when a server receives a certain target control instruction, the server fails to execute the target control instruction due to the fact that the dependent service component cannot be started in advance is solved. In the embodiment of the present invention, a service number is further set for each service component, so that when a certain server receives a plurality of target control instructions, the plurality of target control instructions can be executed based on the sequence indicated by the service number, thereby ensuring that each target control instruction can be successfully executed by the server. Specifically, each dependency in the server cluster may be defined based on the hypervisor in the server cluster, and a service number may be set for each service control based on the defined dependency, for example, service controls of different hierarchies may be encoded from small to large according to the service number, where the starting of a service component with a large service number needs to be started first depending on a service component with a small service number. Therefore, if a certain server receives a plurality of target control instructions with different service numbers and the target control instructions are all target service components corresponding to the starting, the target control instructions can be executed in sequence according to the sequence of the service numbers from small to large. Correspondingly, if a certain server receives a plurality of target control instructions with different service numbers and the target control instructions are all target service components which stop corresponding service, the target control instructions can be executed in sequence according to the sequence of the service numbers from large to small.
It should be noted that the service number may be used as the service name in the above embodiment. The IP address of the target service component may include an IP address of a server cluster to which the target service component belongs, e.g., the IP address of the target service component may be prefixed by the IP address of the server cluster to which it belongs. Specifically, the IP address of the target service component may be used as a prefix, and the service number may be used as a suffix to be combined to form the identity information of the target server component.
After the identity information of the N target service components is acquired based on the first input, a corresponding target control instruction may be generated for each target service component of the N target service components based on the instruction content in the second input, so as to obtain N entry target control instructions. After the N entry label control instructions are obtained, since each target control instruction includes the identity information of the corresponding target service component, the N entry label control instructions in the control instruction list may be sorted based on the service number to obtain a sorting result; and then sorting the N item label control instructions in the sorting result based on the IP address of the target service component to obtain a target control instruction list. Because the IP addresses of the service components of each service in the same server cluster have the same prefix, after the ordering is completed, the target control instructions corresponding to the same server cluster are in the same continuous segment in the target control instruction list, and the target service instructions in the segment are sequentially arranged according to the service numbers. Therefore, each subsequent server cluster can conveniently and sequentially execute each target control instruction according to the sequence in the target control instruction list.
Optionally, after the target control instruction list is obtained, the target control instruction list may be split into at least one sub-list according to an IP address of the server cluster, and an arrangement order of each target control instruction in the sub-list is the same as an order in the target control instruction list, so that target control instructions belonging to the same server cluster may be split into different sub-lists, and then different sub-lists may be sent to corresponding server clusters.
In the embodiment, the target control instructions are sorted based on the service numbers, so that the problem that when the server executes the target control instructions, the server fails to execute because the dependent service components are not started in advance is solved.
Optionally, after the identity information of the target service component indicated by the first input is obtained in response to the first input of the user, the method further includes:
responding to a third input of a user, and acquiring configuration information of the target service component;
responding to the fourth input of the user, and modifying the configuration information to obtain target configuration information;
and sending the target configuration information to the target server so that the target server performs parameter configuration on the target service component based on the target configuration information.
The configuration information may be a service number of the target service component, and of course, the configuration information may also be related configuration information of a service corresponding to the target service component, and may be, for example, attribute information of the target service component.
In the embodiment, the configuration information of the target service component can be called by the server, the configuration information is modified in the server, and then the modified configuration information is sent to the target server as the target configuration information, so that the target server performs parameter configuration on the target service component based on the target configuration information, a user can modify the configuration information of the service control without logging in the server or a server cluster in the process, and the modification process of the configuration information of the service control is simplified.
Optionally, the obtaining, by the first input of the user, the identity information of the target service component indicated by the first input includes:
determining at least one target server cluster among the at least two server clusters in response to the IP selection operation, the IP selection operation identifying an IP address of the target server cluster;
responding to the service selection operation, determining a target service component indicated by the service selection operation in the at least one target server cluster, and acquiring identity information of the target service component; alternatively, the first and second electrodes may be,
determining at least one target service among at least two services in response to the service selection operation;
and responding to the IP selection operation, determining a target service component indicated by the target service in the target server cluster indicated by the IP selection operation, and acquiring the identity information of the target service component.
Specifically, the user may select an IP address of an object to be managed in the operation management interface, so as to determine a target server cluster to be managed, and then select a service name of the object to be managed, so as to filter out the target service component. Of course, the user may also select the service name of the object to be managed first, so as to determine the target service that the user needs to manage, and then input the IP address of the object to be managed, so as to determine the target service component. Specifically, an IP address selection menu and a service name selection menu may be set in the operation management interface, where the IP address selection menu may include an IP address of each server cluster in the at least two server clusters, and the user may select at least one option in the IP address selection menu, and accordingly, the user may also select at least one option in the service name selection menu, thereby completing the determination process of the target service component. It should be noted that, the server may store the identity information of all service components in advance, so that after the target service component is determined, the identity information of the target service component may be directly obtained from the identity information stored in the server.
In addition, the second input may also be a management operation selected by the user in at least two management operations, for example, a management operation selection menu may be set in the operation management interface, the operation selection menu includes a plurality of operation selections, and the user may select one of the options to complete the input process of the second input.
In the embodiment, the user can complete the management process of the service components in at least two server clusters by selecting in the operation management interface, so that the management process of the service components can be simplified, and meanwhile, illegal input of the user can be prevented.
Optionally, the obtaining, in response to the first input, the identity information of the target service component indicated by the first input includes:
verifying the content of the first input to obtain a verification result;
and if the verification result indicates that the first input has errors, outputting prompt information.
Specifically, when the first input is an IP address or a service name manually input by a user, the IP address or the service name input by the user may be checked based on the script, specifically, when the corresponding IP address or service name cannot be queried based on the first input by the user, it may be determined that there is a possible error in the first input by the user, and at this time, the prompt information may be input to prompt the user to perform the first input again. In this way, the user can be further prevented from inputting an illegal IP address or service name.
Optionally, before generating the list of control instructions in response to the second input, the method further comprises:
generating an operation object list based on the first input, wherein the operation object list comprises the identity information of the N target service components;
the generating a list of control instructions in response to the second input includes:
and transmitting the operation object list as a parameter to a batch management tool so that the batch management tool generates the target control instruction list based on the identity information recombination.
Specifically, after N target service components are determined based on the first input, the identity information of the N target service components may be stored in the same list to generate the operation object list, where the identity information of the target service components may include an IP address and a service number of a server cluster to which the target service components belong.
The batch management tool is a third-party batch management tool salt in the above embodiment, and the operation object list is used as a parameter to be transmitted to the third-party batch management tool salt, so that the third-party batch management tool salt generates an N entry mark control instruction based on the operation object list.
Optionally, the generating, by the batch management tool, the target control instruction list based on the identity information recombination includes:
combining the target control instruction with N pieces of identity information in the operation object list respectively to obtain N pieces of object control instructions;
and sequencing the N item label control instructions based on the identity information to obtain the target control instruction list.
Specifically, after a target control instruction input by a user, the target control instruction may also be passed to the batch management tool as a parameter, so that the batch management tool may combine the target control instruction with N pieces of identity information in the operation object list, respectively, to generate an N-entry target control instruction. After generating the N entry marker control instructions, the N entry marker control instructions may be sorted based on the identity information to obtain the target control instruction list, where a specific arrangement process is the same as that in the above embodiment, and is not described herein again to avoid repetition.
Please refer to fig. 2, which is a flowchart of a management system of a service component, which is set up to implement the management method of the service component in the foregoing embodiment according to the embodiment of the present application. Wherein CMF1 and CMF2 are two different clusters of servers in the system. The service installation and monitoring management service can be a clouder Manager Server, wherein the function of the clouder Manager Server is to facilitate the installation and monitoring management of services related to Hadoop and other big data processing in the Server cluster, and the adoption of the clouder Manager Server simplifies the process of installation configuration management of the services such as a host, Hadoop, Hive, Spark and the like in the Server cluster.
The third-party batch management tool service node is connected with the Server cluster sequentially through a third-party batch management tool proxy node, a process management tool (super), a proxy node of a service installation and monitoring management service and a Cloudera Manager Server so as to realize the management of the Server cluster. Therefore, cluster operation and maintenance management personnel can realize the unified management process of different server clusters only through the third-party batch management tool service node. In addition, cluster operation and maintenance management personnel can log in each server cluster independently to manage different server clusters independently.
Referring to fig. 3, fig. 3 is a server 300 according to an embodiment of the present invention, where the server 300 is communicatively connected to at least two server clusters, and the server 300 includes:
a first obtaining module 301, configured to obtain, in response to a first input of a user, identity information of a target service component indicated by the first input, where the target service component is a service component in the at least two server clusters;
a generating module 302, configured to generate a target control instruction based on the identity information of the target service component in response to a second input of the user;
a sending module 303, configured to send the target control instruction to a target server corresponding to the identity information of the target service component, so that the target server executes the target control instruction.
Optionally, the identity information of the target service component includes a service number and an IP address, where the service number is used to identify a dependency relationship between target service components, and the first obtaining module 301 is specifically configured to generate a control instruction list in response to the second input, where the control instruction list includes N entry label control instructions, and the N entry label control instructions are in one-to-one correspondence with the N target service components;
the generating module 302 includes:
the generation submodule is used for responding to the second input to generate a control instruction list, the control instruction list comprises N item mark control instructions, and the N item mark control instructions are in one-to-one correspondence with the N target service components;
the sequencing submodule is used for sequencing the N item label control instructions in the control instruction list based on the service number to obtain a sequencing result;
the sorting submodule is further used for sorting N item label control instructions in the sorting result based on the IP address to obtain a target control instruction list;
the sending module 303 is specifically configured to enable the target server to sequentially execute the N entry mark control instructions according to an order in the target control instruction list.
Optionally, the server 300 further includes:
the second acquisition module is used for responding to third input of a user and acquiring the configuration information of the target service assembly;
the modification module is used for responding to the fourth input of the user and modifying the configuration information to obtain target configuration information;
the sending module 303 is further configured to send the target configuration information to the target server, so that the target server performs parameter configuration on the target service component based on the target configuration information.
Optionally, the first input includes an IP selection operation and a service selection operation, and the first obtaining module 301 includes:
a determining submodule, configured to determine at least one target server cluster among the at least two server clusters in response to the IP selection operation, where the IP selection operation is used to identify an IP address of the target server cluster;
the obtaining sub-module is used for responding to the service selection operation, determining a target service assembly indicated by the service selection operation in the at least one target server cluster, and obtaining the identity information of the target service assembly; alternatively, the first and second electrodes may be,
the determining submodule is used for responding to the service selection operation and determining at least one target service in at least two services;
and the obtaining sub-module is used for responding to the IP selection operation, determining a target service component indicated by the target service in the target server cluster indicated by the IP selection operation, and obtaining the identity information of the target service component.
Optionally, the first obtaining module 301 includes:
the verification submodule is used for verifying the content of the first input to obtain a verification result;
and the prompting submodule outputs prompting information if the checking result indicates that the first input has errors.
Optionally, the generating module 302 is further configured to generate an operation object list based on the first input, where the operation object list includes the identity information of the N target service components;
the generating module 302 is further specifically configured to transmit the operation object list as a parameter to a batch management tool, so that the batch management tool generates the target control instruction list based on the identity information by means of recombination.
Optionally, the generating sub-module is specifically further configured to combine the target control instruction with N pieces of identity information in the operation object list, respectively, to obtain the N pieces of identity control instructions;
the sorting submodule is specifically configured to sort the N entry label control instructions based on the identity information to obtain the target control instruction list.
The electronic device provided by the embodiment of the invention can realize each process in the method embodiments, and is not described herein again in order to avoid repetition.
Referring to fig. 4, fig. 4 is a structural diagram of an electronic device according to another embodiment of the present invention, and as shown in fig. 4, the electronic device includes: the service interface flow control apparatus 400 includes: a processor 401, a memory 402 and a computer program stored on the memory 402 and operable on the processor, the various components in the data transmission device 400 being coupled together by a bus interface 403, the computer program realizing the following steps when executed by the processor 401:
responding to a first input of a user, and acquiring identity information of a target service component indicated by the first input, wherein the target service component is a service component in the at least two server clusters;
generating a target control instruction based on the identity information of the target service component in response to a second input of the user;
and sending the target control instruction to a target server corresponding to the identity information of the target service assembly so as to enable the target server to execute the target control instruction.
Optionally, the obtaining, by responding to a first input of a user, the identity information of the target service component indicated by the first input includes:
in response to the first input, acquiring identity information of N target service components indicated by the first input, wherein N is an integer greater than 1;
generating a target control instruction based on the identity information of the target service component in response to a second input of the user, comprising:
generating a control instruction list in response to the second input, wherein the control instruction list comprises N item label control instructions, and the N item label control instructions are in one-to-one correspondence with the N target service components;
sorting the N item label control instructions in the control instruction list based on the service number to obtain a sorting result;
sorting N item label control instructions in the sorting result based on the IP address to obtain a target control instruction list;
the sending the target control instruction to a target server to enable the target server to execute the target control instruction includes:
and the target server sequentially executes the N item label control instructions according to the sequence in the target control instruction list.
Optionally, after the obtaining, in response to the first input by the user, the identity information of the target service component indicated by the first input, the method further includes:
responding to a third input of a user, and acquiring configuration information of the target service component;
responding to the fourth input of the user, and modifying the configuration information to obtain target configuration information;
and sending the target configuration information to the target server so that the target server performs parameter configuration on the target service component based on the target configuration information.
Optionally, the obtaining, by the first input of the user, the identity information of the target service component indicated by the first input includes:
determining at least one target server cluster among the at least two server clusters in response to the IP selection operation, the IP selection operation identifying an IP address of the target server cluster;
responding to the service selection operation, determining a target service component indicated by the service selection operation in the at least one target server cluster, and acquiring identity information of the target service component; alternatively, the first and second electrodes may be,
determining at least one target service among at least two services in response to the service selection operation;
and responding to the IP selection operation, determining a target service component indicated by the target service in the target server cluster indicated by the IP selection operation, and acquiring the identity information of the target service component.
Optionally, the obtaining, in response to the first input, the identity information of the target service component indicated by the first input includes:
verifying the content of the first input to obtain a verification result;
and if the verification result indicates that the first input has errors, outputting prompt information.
Optionally, before generating the list of control instructions in response to the second input, the method further comprises:
generating an operation object list based on the first input, wherein the operation object list comprises the identity information of the N target service components;
the generating a list of control instructions in response to the second input includes:
and transmitting the operation object list as a parameter to a batch management tool so that the batch management tool generates the target control instruction list based on the identity information recombination.
Optionally, the generating, by the batch management tool based on the identity information, the target control instruction list by the batch management tool includes:
combining the target control instruction with N pieces of identity information in the operation object list respectively to obtain N pieces of identity control instructions;
and sequencing the N item label control instructions based on the identity information to obtain the target control instruction list.
An embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program is executed by the processor to implement the processes of the method embodiment, and can achieve the same technical effect, and is not described herein again to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the method embodiments, and can achieve the same technical effects, and in order to avoid repetition, the details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A management method of service components is applied to a server, and is characterized in that the server is connected with at least two server clusters in a communication way, and the method comprises the following steps:
responding to a first input of a user, and acquiring identity information of a target service component indicated by the first input, wherein the target service component is a service component in the at least two server clusters;
generating a target control instruction based on the identity information of the target service component in response to a second input of the user;
and sending the target control instruction to a target server corresponding to the identity information of the target service assembly so as to enable the target server to execute the target control instruction.
2. The method of claim 1, wherein the identity information of the target service component comprises a service number and an IP address, wherein the service number is used to identify a dependency relationship between the target service components, and wherein the obtaining the identity information of the target service component indicated by the first input in response to the first input by the user comprises:
in response to the first input, acquiring identity information of N target service components indicated by the first input, wherein N is an integer greater than 1;
generating a target control instruction based on the identity information of the target service component in response to a second input of the user, comprising:
generating a control instruction list in response to the second input, wherein the control instruction list comprises N item label control instructions, and the N item label control instructions are in one-to-one correspondence with the N target service components;
sorting the N item label control instructions in the control instruction list based on the service number to obtain a sorting result;
sorting N item label control instructions in the sorting result based on the IP address to obtain a target control instruction list;
the sending the target control instruction to a target server to enable the target server to execute the target control instruction includes:
and the target server sequentially executes the N item label control instructions according to the sequence in the target control instruction list.
3. The method of claim 1, wherein after the obtaining of the identity information of the target service component indicated by the first input in response to the first input of the user, the method further comprises:
responding to a third input of a user, and acquiring configuration information of the target service assembly;
responding to the fourth input of the user, and modifying the configuration information to obtain target configuration information;
and sending the target configuration information to the target server so that the target server performs parameter configuration on the target service component based on the target configuration information.
4. The method of claim 1, wherein the first input comprises an IP selection operation and a service selection operation, and wherein the obtaining identity information of the target service component indicated by the first input in response to the first input by the user comprises:
determining at least one target server cluster among the at least two server clusters in response to the IP selection operation, the IP selection operation identifying an IP address of the target server cluster;
responding to the service selection operation, determining a target service component indicated by the service selection operation in the at least one target server cluster, and acquiring identity information of the target service component; alternatively, the first and second electrodes may be,
determining at least one target service in at least two services in response to the service selection operation;
and responding to the IP selection operation, determining a target service component indicated by the target service in the target server cluster indicated by the IP selection operation, and acquiring the identity information of the target service component.
5. The method of claim 1, wherein the obtaining identity information of the target service component indicated by the first input in response to the first input comprises:
verifying the content of the first input to obtain a verification result;
and if the verification result indicates that the first input has errors, outputting prompt information.
6. The method of claim 2, wherein prior to generating the list of control instructions in response to the second input, the method further comprises:
generating an operation object list based on the first input, wherein the operation object list comprises the identity information of the N target service components;
the generating a list of control instructions in response to the second input includes:
and transmitting the operation object list as a parameter to a batch management tool so that the batch management tool generates the target control instruction list based on the identity information recombination.
7. The method of claim 6, wherein the batch management tool generates the target list of control instructions based on the identity information by recombining, comprising:
combining the target control instruction with N pieces of identity information in the operation object list respectively to obtain N pieces of identity control instructions;
and sequencing the N item label control instructions based on the identity information to obtain the target control instruction list.
8. A server communicatively coupled to at least two clusters of servers, the server comprising:
a first obtaining module, configured to obtain, in response to a first input by a user, identity information of a target service component indicated by the first input, where the target service component is a service component in the at least two server clusters;
the generating module is used for responding to a second input of the user and generating a target control instruction based on the identity information of the target service component;
and the sending module is used for sending the target control instruction to a target server corresponding to the identity information of the target service assembly so as to enable the target server to execute the target control instruction.
9. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the management method of the service component according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the management method of a service component according to any one of claims 1 to 7.
CN202011385598.2A 2020-12-01 2020-12-01 Service component management method, server and electronic equipment Pending CN114640671A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011385598.2A CN114640671A (en) 2020-12-01 2020-12-01 Service component management method, server and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011385598.2A CN114640671A (en) 2020-12-01 2020-12-01 Service component management method, server and electronic equipment

Publications (1)

Publication Number Publication Date
CN114640671A true CN114640671A (en) 2022-06-17

Family

ID=81944719

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011385598.2A Pending CN114640671A (en) 2020-12-01 2020-12-01 Service component management method, server and electronic equipment

Country Status (1)

Country Link
CN (1) CN114640671A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000010930A (en) * 1998-06-24 2000-01-14 Hitachi Ltd Access control method for network system
US7428750B1 (en) * 2003-03-24 2008-09-23 Microsoft Corporation Managing multiple user identities in authentication environments
CN104486346A (en) * 2014-12-19 2015-04-01 北京奇艺世纪科技有限公司 Stepping stone system
CN106936817A (en) * 2017-02-16 2017-07-07 上海帝联信息科技股份有限公司 Operation execution method, springboard machine, cluster certificate server and fort machine system
CN108111473A (en) * 2016-11-24 2018-06-01 腾讯科技(深圳)有限公司 Mixed cloud Explore of Unified Management Ideas, device and system
CN108737171A (en) * 2018-05-10 2018-11-02 网宿科技股份有限公司 A kind of method and system of management cloud service cluster
CN109413032A (en) * 2018-09-03 2019-03-01 中国平安人寿保险股份有限公司 A kind of single-point logging method, computer readable storage medium and gateway
CN109710346A (en) * 2018-08-20 2019-05-03 平安普惠企业管理有限公司 Server management method, device, equipment and computer readable storage medium
CN109819061A (en) * 2018-09-11 2019-05-28 华为技术有限公司 A kind of method, apparatus and equipment handling cloud service in cloud system
CN110213223A (en) * 2019-03-21 2019-09-06 腾讯科技(深圳)有限公司 Business management method, device, system, computer equipment and storage medium
CN110781482A (en) * 2019-10-12 2020-02-11 广州酷旅旅行社有限公司 Login method, login device, computer equipment and storage medium
CN111294386A (en) * 2020-01-13 2020-06-16 北京淳中科技股份有限公司 Server communication method and device and electronic equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000010930A (en) * 1998-06-24 2000-01-14 Hitachi Ltd Access control method for network system
US7428750B1 (en) * 2003-03-24 2008-09-23 Microsoft Corporation Managing multiple user identities in authentication environments
CN104486346A (en) * 2014-12-19 2015-04-01 北京奇艺世纪科技有限公司 Stepping stone system
CN108111473A (en) * 2016-11-24 2018-06-01 腾讯科技(深圳)有限公司 Mixed cloud Explore of Unified Management Ideas, device and system
CN106936817A (en) * 2017-02-16 2017-07-07 上海帝联信息科技股份有限公司 Operation execution method, springboard machine, cluster certificate server and fort machine system
CN108737171A (en) * 2018-05-10 2018-11-02 网宿科技股份有限公司 A kind of method and system of management cloud service cluster
CN109710346A (en) * 2018-08-20 2019-05-03 平安普惠企业管理有限公司 Server management method, device, equipment and computer readable storage medium
CN109413032A (en) * 2018-09-03 2019-03-01 中国平安人寿保险股份有限公司 A kind of single-point logging method, computer readable storage medium and gateway
CN109819061A (en) * 2018-09-11 2019-05-28 华为技术有限公司 A kind of method, apparatus and equipment handling cloud service in cloud system
CN110213223A (en) * 2019-03-21 2019-09-06 腾讯科技(深圳)有限公司 Business management method, device, system, computer equipment and storage medium
CN110781482A (en) * 2019-10-12 2020-02-11 广州酷旅旅行社有限公司 Login method, login device, computer equipment and storage medium
CN111294386A (en) * 2020-01-13 2020-06-16 北京淳中科技股份有限公司 Server communication method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN107733922B (en) Method and apparatus for invoking a service
CN110442524B (en) Method and device for testing web service interface with authentication authorization
CN107431651B (en) Life cycle management method and equipment for network service
CN107590186B (en) Method for managing and executing data processing policy and policy engine system
US8713177B2 (en) Remote management of networked systems using secure modular platform
WO2016119631A1 (en) Method for accessing cloud service and access device
CN112199197B (en) Server management method and system
CN110289983B (en) Load balancing application creation method and device, computer equipment and storage medium
CN108376078A (en) Upgrade method, device and the household appliance of equipment
CN110119350B (en) Software development kit testing method, device and equipment and computer storage medium
CN113312064B (en) Method and device for installing and configuring physical machine and computer readable medium
CN111405006B (en) Method and device for processing remote login failure and remote login system
CN111026723A (en) Big data cluster management control method and device, computer equipment and storage medium
CN111708550A (en) Application deployment method and device, computer equipment and storage medium
CN113687858A (en) Configuration file checking method and device, electronic equipment and storage medium
CN114640671A (en) Service component management method, server and electronic equipment
CN108375964B (en) Conversational machine management method and device
CN115865718A (en) Service arrangement control method and device based on Yaml template
US11269615B2 (en) Automatically orchestrating deployments of software-defined storage stacks
CN116820663A (en) Mirror image construction method, device, storage medium and apparatus
CN114095498A (en) Cluster environment deployment method, system, computer equipment and storage medium
CN111970286A (en) User login method and device and web server
CN112559001A (en) Method and device for updating application
US20230419067A1 (en) ENHANCED QUICK RESPONSE (qr) CODE SCAN SECURITY
CN117311804A (en) Application migration method, device, electronic equipment and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination