WO2024021703A1 - Server control method, server, and storage medium - Google Patents

Server control method, server, and storage medium Download PDF

Info

Publication number
WO2024021703A1
WO2024021703A1 PCT/CN2023/089914 CN2023089914W WO2024021703A1 WO 2024021703 A1 WO2024021703 A1 WO 2024021703A1 CN 2023089914 W CN2023089914 W CN 2023089914W WO 2024021703 A1 WO2024021703 A1 WO 2024021703A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
state
target server
status
maintenance
Prior art date
Application number
PCT/CN2023/089914
Other languages
French (fr)
Chinese (zh)
Inventor
刘焕焕
穆建广
盛国军
熊普江
王勇
Original Assignee
卡奥斯工业智能研究院(青岛)有限公司
卡奥斯物联科技股份有限公司
海尔数字科技(青岛)有限公司
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 卡奥斯工业智能研究院(青岛)有限公司, 卡奥斯物联科技股份有限公司, 海尔数字科技(青岛)有限公司 filed Critical 卡奥斯工业智能研究院(青岛)有限公司
Publication of WO2024021703A1 publication Critical patent/WO2024021703A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/28Restricting access to network management systems or functions, e.g. using authorisation function to access network configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0861Network architectures or network communication protocols for network security for authentication of entities using biometrical features, e.g. fingerprint, retina-scan
    • 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

Definitions

  • Embodiments of the present invention belong to the field of computer technology, and specifically relate to a server control method, a server and a storage medium.
  • a single server in a server cluster is usually called a node.
  • Multiple servers are usually connected through a local area network and collaborate highly closely to complete computing work.
  • Each server in the server cluster is installed with a management system such as a Platform as a Service (PaaS) system or an Infrastructure as a Service (IaaS) system. These systems are similar to those installed in the server. Operating systems, distributed software (PaaS platform, IaaS platform, etc.) installed in these systems, are used to provide servers with external services. In the existing technology, managers or maintenance personnel log in to the management server through the management system according to their corresponding authority to complete the management and maintenance of the server cluster.
  • PaaS Platform as a Service
  • IaaS Infrastructure as a Service
  • embodiments of the present invention provide a A server control method, server and storage medium.
  • an embodiment of the present invention provides a server control method, which is applied to manage the server, including:
  • controlling the target server according to the state switching completion message includes:
  • Migrate data stored in the target server according to the status switching message remove the target server from the server cluster, and perform maintenance operations on the target server to perform maintenance on the target server.
  • the server takes control.
  • performing maintenance operations on the target server includes:
  • the method before obtaining the status switching indication, the method further includes:
  • the identity authentication information includes fingerprint information and/or face information
  • the method further includes:
  • an embodiment of the present invention provides a server control method, which is applied to a target server and includes:
  • the current status information is sent to the management server, and the status information is the running state or the maintenance state;
  • the state switching according to the state switching instruction includes:
  • warning information is output, and the warning information is used to indicate that the state cannot be switched;
  • the running state is switched to the maintenance state.
  • the method before sending the status information to the management server, the method further includes:
  • the state of the target server is the maintenance state
  • the maintenance state is switched to the running state
  • the state of the target server is the running state
  • the running state is switched to the maintenance state.
  • an embodiment of the present invention provides a management server, including:
  • the first acquisition module is used to acquire the current status information of the target server, where the status information is a running state or a maintenance state;
  • the second acquisition module is used to acquire the status switching indication when the status information is in the running state
  • a sending module configured to send the state switching instruction to the target server, where the state switching instruction is used to instruct the target server to switch the running state to the maintenance state;
  • a processing module configured to receive a state switching completion message sent by the target server, and control the target server according to the state switching completion message.
  • embodiments of the present invention provide a service server, including:
  • the first sending module is used to send the current status information to the management server when the status of the target server changes, and the status information is a running status or a maintenance status;
  • a receiving module configured to receive a state switching instruction sent by the management server, where the state switching instruction is used to instruct the target server to switch the state to the maintenance state;
  • a switching module configured to perform state switching according to the state switching instruction
  • the second sending module is configured to send a state switching completion message to the management server when the state switching is successful.
  • embodiments of the present invention provide a management server, including: a processor, and a memory communicatively connected to the processor;
  • the memory stores computer execution instructions
  • the processor executes the computer execution instructions stored in the memory to implement the control method of the server as described in the first aspect.
  • embodiments of the present invention provide a service server, including: a processor, and a memory communicatively connected to the processor;
  • the memory stores computer execution instructions
  • the processor executes the computer execution instructions stored in the memory to implement the control method of the server as described in the second aspect.
  • an embodiment of the present invention relates to a computer-readable storage medium.
  • Computer-executable instructions are stored in the computer-readable storage medium. When executed by a processor, the computer-executable instructions are used to implement the first aspect or the second aspect. The control method of the server described in this aspect.
  • an embodiment of the present invention provides a computer program product, which includes a computer program that, when executed by a processor, is used to implement the server control method described in the first aspect or the second aspect.
  • the embodiments of the present invention provide a server control method, server and storage medium.
  • the management server By obtaining the current status information of the target server, when the status information is in the running state, the management server obtains the status switching instruction. , and then sends a status switching indication to the target server. After the target server switches state successfully, the management server can receive the state switch completion message sent by the target server, and control the target server according to the state switch completion message, so that the server is not disturbed when it is in the running state, and it is maintained when it is in the maintenance state. Maintenance can effectively avoid security problems caused by improper operations by managers or maintenance personnel, and improve the security of the cluster.
  • Figure 1 is a schematic diagram of a scenario of a server control method provided by the present invention
  • FIG. 2 is a schematic flowchart of a server control method provided by Embodiment 1 of the present invention.
  • FIG. 3 is a schematic flow chart of another server control method provided by Embodiment 2 of the present invention.
  • FIG. 4 is a schematic flow chart of another server control method provided by Embodiment 3 of the present invention.
  • FIG. 5 is a schematic flowchart of another server control method provided in Embodiment 4 of the present invention.
  • Figure 6 is a signaling flow chart of a server control method provided in Embodiment 5 of the present invention.
  • FIG. 7 is a schematic structural diagram of a management server provided in Embodiment 6 of the present invention.
  • Figure 8 is a schematic structural diagram of a server provided in Embodiment 7 of the present invention.
  • FIG. 9 is a schematic structural diagram of a management server provided in Embodiment 8 of the present invention.
  • Figure 10 is a schematic structural diagram of a server provided in Embodiment 9 of the present invention.
  • connection should be understood in a broad sense.
  • it can be It can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, or it can be an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be an internal connection between two components.
  • the specific meanings of the above terms in the embodiments of the present invention can be understood according to specific circumstances.
  • server clusters When server clusters perform tasks, they usually use multiple servers to perform parallel calculations to achieve high computing speeds.
  • managers and maintenance personnel generally control it by logging in to the management system installed on the host in the cluster (that is, the management node) to implement resource configuration of the servers in the cluster.
  • this embodiment provides a server control method.
  • running state By setting each server in the server cluster to two states: running state and maintenance state, it is restricted that when the server is in the maintenance state, maintenance operations can be directly performed on it.
  • a manager with higher authority is required to switch its status to the maintenance state, so that the maintenance personnel can perform maintenance operations, so that the server is not disturbed when it is in the running state, and when it is in the maintenance state Maintaining it can effectively avoid security problems caused by improper operations by managers or maintenance personnel, and improve the security of the cluster.
  • Running state means that the server can participate in computing tasks, that is, it can be determined that the server has been added to the server cluster.
  • the program in the target server can be in a running state, or the target server can also be in a state to be used ( That is, the program is in a non-running state). Administrators or maintenance personnel cannot perform maintenance on servers in this state.
  • Maintenance state means that the server is not working and the server has been temporarily removed from the server cluster. Administrators or maintenance personnel can perform maintenance work on the server in this state.
  • FIG 1 is a schematic scenario diagram of a server control method provided by the present invention.
  • a server cluster 10 includes multiple servers, which can be connected through a local area network to achieve collaborative completion of computing work.
  • the management server 102 is usually called a host, which can manage other servers in the server cluster 10 (server 101, server 103, server 104, server 105, etc., only four are shown in the figure) through a local area network, such as resources. Distribution etc.
  • the target server 101 when the target server 101 is removed from the server cluster 10 by the management server 102, the target server 101 can set its status to the maintenance status.
  • the target server 101 When the target server 101 is added to the server cluster 10 by the management server 102, the target server 101 can set its status to a running state. Whether maintenance personnel can perform maintenance operations on it can be determined based on its status. That is, when the target server 101 is in the maintenance state, maintenance can be performed. When the target server 101 is in the running state, a manager with higher authority is required to switch its status. In the maintenance state, maintenance can be performed, thereby improving the security of the target server 101 and even the server cluster 10 .
  • Figure 2 is a schematic flowchart of a server control method provided in Embodiment 1 of the present invention.
  • the method can be executed by the management server.
  • the method specifically includes the following steps.
  • Step S201 Obtain the current status information of the target server.
  • the status information is running status or maintenance status.
  • the management server When the management server controls the target server, it must first obtain the current status information of the target server to determine whether the current status of the server is running or maintenance, and perform corresponding operations based on its status.
  • the current status information of the target server may be returned by the target server after the management server sends a status query request to the target server.
  • the current status information of the target server can be queried by the management server from the locally stored status information uploaded by the target server.
  • the status information uploaded by the target server can be sent when a change in status is detected. It can be understood that the current status information is the latest uploaded status information of the locally stored target server.
  • Step S202 When the status information is the running status, obtain the status switching instruction.
  • the management server After the management server determines the status of the target server, when it is determined that the target server is in the running state, the management server obtains the status switching indication.
  • the management server can obtain the identity authentication information of the administrator and authenticate the identity authentication information, which includes fingerprint information and/or face information.
  • the management server can obtain the status switching instructions input by the administrator through the corresponding interface on the management system (such as PaaS system or IaaS system, etc.), preventing ordinary users or maintenance personnel from changing the status of the target server. Switching at will further ensures the security of the cluster.
  • the management system such as PaaS system or IaaS system, etc.
  • the server can perform corresponding operations, and then the administrator or maintenance personnel can control the target server through the management server.
  • the management server can obtain the status level of the maintenance status of the target server and the maintenance operation corresponding to the status level, and then the management server performs the maintenance operation on the target server. Maintenance based on the level improves the security of the target server.
  • Step S203 Send a status switching instruction to the target server, where the status switching instruction is used to instruct the target server to switch the running state to the maintenance state.
  • the management server After obtaining the status switching instruction, the management server sends the status switching instruction to the target server to instruct the target server to perform status switching.
  • Step S204 Receive the state switching completion message sent by the target server, and control the target server according to the state switching completion message.
  • the management server can control and maintain the target server based on the message.
  • the server control method provided in this embodiment obtains the current status information of the target server.
  • the management server obtains the status switching indication, and then sends the status switching indication to the target server.
  • the management The management server can receive the state switching completion message sent by the target server, and control the target server according to the state switching completion message, so that the server is not disturbed when it is in the running state, and maintaining it when it is in the maintenance state can effectively avoid the management personnel or Security issues caused by improper operations by maintenance personnel improve the security of the cluster.
  • Embodiment 1 On the basis of Embodiment 1, the following is a detailed introduction to the control of the target server by the management server through Embodiment 2.
  • FIG 3 is a schematic flowchart of another server control method provided in Embodiment 2 of the present invention. This method can be executed by the management server. As shown in Figure 3, the method specifically includes the following steps.
  • Step S301 Migrate the data stored in the target server and remove the target server from the server cluster.
  • the management server Before the management server controls or maintains the target server, it can migrate the data stored in the target server. This can avoid the management server from controlling the target server from data generated when the target server is running or its own data. Causes no damage to stored data, ensuring data security. And the target server can be removed from the server cluster to avoid the management server from affecting the operation of other servers in the cluster when controlling the target server.
  • the server used for backup can be migrated to other servers in the server cluster for backup. It is understandable that the server used for backup is in a maintenance state.
  • the management server can also migrate the data stored in the target server to a specific server outside the cluster for backup.
  • the data stored in the target server may be programs, software, or data generated when they are run, as well as basic files for the server to run programs, etc.
  • the management server can disconnect the target server from the local area network used by the server cluster, or it can remove the target server through other methods, which is not covered by the present invention. limited.
  • Step S302 Perform maintenance operations on the target server to control the target server.
  • management server migrates the data stored in the target server and removes the target server from the cluster, managers or maintenance personnel can control the target server through the management server.
  • managers or maintenance personnel can use the Management systems, such as PaaS systems or IaaS systems, perform corresponding management work according to their permissions.
  • the maintenance state can include multiple level states, each level state corresponds to a different maintenance operation, and the maintenance state of the target server can be any one of the level states.
  • the management server can obtain the status level of the maintenance status of the target server and the maintenance operation corresponding to the status level, and then the management server performs the maintenance operation on the target server.
  • the operations that the maintenance personnel can perform on the target server are maintenance operations corresponding to the highest level.
  • the levels of the above maintenance status and the maintenance operations corresponding to each level can be set according to actual needs.
  • the level of the target server in the maintenance state can be set in advance by the administrator through the management server, which can further improve the security of the target server and effectively prevent the server from being invaded and performing unnecessary tasks.
  • the administrator can add the server to the server cluster, so that the target server can detect that it has been added to the server cluster, so that the target server automatically triggers a status switch and will maintain the target server. state switches to running state.
  • the management server may migrate the data stored in the target server to ensure data security. You can also remove the target server from the server cluster and then control the target server to prevent the management server from affecting the operation of other servers in the cluster when controlling the target server.
  • Embodiment 3 a method for controlling a server whose execution subject is a target server will be described through Embodiment 3.
  • FIG 4 is a schematic flowchart of another server control method provided in Embodiment 3 of the present invention. This method can be executed by the target server. As shown in Figure 4, the method specifically includes the following steps.
  • Step S401 When the status of the target server changes, current status information is sent to the management server.
  • the status information is the running status or the maintenance status.
  • the current status information is sent to the management server so that the administrator can know the status of the target server in time.
  • the change in the status of the target server can be: when the status of the target server is in the maintenance state, and if it is detected that it is added to the server cluster, the maintenance state is switched to the running state.
  • the status of the target server is running, if it is detected that the target server is removed from the server cluster, the running status will be switched to the maintenance status.
  • the above-mentioned state switching method can be implemented, for example, by a switching program in the target server.
  • the switching program can monitor whether the target server is added to the server cluster to change the state of the target server.
  • the state of the target server can be switched when the state switching instruction sent by the management server is monitored.
  • Step S402 Obtain the state switching instruction sent by the management server.
  • the state switching instruction is used to instruct the target server to switch the state to the maintenance state.
  • the target server can receive the status switching instruction sent by the management server to instruct the target server to switch the status to the maintenance status.
  • Step S403 Perform state switching according to the state switching instruction.
  • the target server After receiving the status switching instruction, the target server switches its status according to the instruction, that is, switches the running state to the maintenance state.
  • Step S404 When the status switching is successful, a status switching completion message is sent to the management server.
  • a status switch completion message is sent to the management server, so that the administrator or maintenance personnel can control and maintain the target server through the management server.
  • the target server when the status of the target server changes, the target server sends the current status information to the management server, so that the administrator can learn the status of the target server in a timely manner.
  • the target server When obtaining the state switching instruction sent by the management server, the target server performs state switching according to the state switching instruction.
  • the target server can send a state switching completion message to the management server, so that the server is not disturbed when it is in the running state. Maintaining it during maintenance can effectively avoid security problems caused by improper operations by managers or maintenance personnel, and improve the security of the cluster.
  • Embodiment 3 On the basis of Embodiment 3, the state switching of the server will be introduced in detail through Embodiment 4 below.
  • FIG 5 is a flow chart of another server control method provided by Embodiment 4 of the present invention.
  • the process diagram shows that this method can be executed by the target server, as shown in Figure 5.
  • the method specifically includes the following steps.
  • Step S501 Determine whether there is a running program on the target server.
  • the target server Before switching the running state to the maintenance state, the target server can detect whether there is a program in the running state on it. When it is determined that there is a program in the running state, step S502 is executed. When it is determined that there is no program in the running state, step S502 is executed. Step S503.
  • Step S502 Output warning information, which is used to indicate that state switching cannot be performed.
  • the target server When it is determined that there is a program in the running state, the target server outputs a warning message. This warning message is used to indicate that state switching cannot be performed. This can avoid the server from forcibly switching states when running the program, which will affect the computing tasks and security of the target server and server cluster. , further ensuring the security of the target server in the running state.
  • the above-mentioned way of outputting the alarm information can be, for example, a buzzer or other means such as voice, which is not limited by the present invention.
  • the target server can send a state switching failure message to the management server to prompt the management server that the state switching cannot be performed.
  • a whitelist is set on the target server.
  • the whitelist includes at least one program or software.
  • the programs it can run are the programs on the whitelist, which more effectively protects the target.
  • the security of the server makes the server cluster more secure.
  • the running state can include multiple level states, and each level state corresponds to different operable behaviors.
  • the target server can perform operable behaviors corresponding to the status level of the running state.
  • the level of the running state is medium
  • the operable behavior corresponding to this level is to accept the USB disk inserted by the user. It can be understood that, that is, when the server is at this level of the running state, in addition to the operable behavior , the server does not accept any other operations, such as user login behavior, etc.
  • the above level can be set by the target server according to the importance of the task it performs. The higher the importance, the higher the level it can set. The importance can be set when the user adds the task. Make settings.
  • the target server is at a running level, which can be set in advance by the administrator through the management server.
  • Step S503 The target server switches the running state to the maintenance state.
  • the target server switches the running state to the maintenance state.
  • the target server before the target server performs state switching, it can determine whether there is a program in the running state on the target server. When it is determined that there is a program in the running state, a warning message is output to indicate that the state switching cannot be performed, which can avoid Forcibly switching states when the server is running a program affects the computing tasks and security of the target server and server cluster, further ensuring the security of the target server in the running state.
  • the target server switches the running state to the maintenance state, so that the server is not disturbed when it is in the running state. Maintaining it when it is in the maintenance state can effectively avoid improper operation by managers or maintenance personnel. It brings security issues and improves the security of the cluster.
  • Figure 6 is a signaling flow chart of a server control method provided in Embodiment 5 of the present invention. As shown in Figure 6, the method provided in this embodiment includes the following steps.
  • Step S601 When the status of the target server changes, the target server sends the current status information to the management server.
  • This status information is running status or maintenance status.
  • Step S602 The management server determines whether the target server is in a running state based on the status information.
  • step S603 If yes, execute step S603; if not, execute step S609.
  • Step S603 The management server obtains the status switching instruction.
  • the status switching indication is used to instruct the target server to switch the running state to the maintenance state.
  • the management server can obtain the identity authentication information of the administrator and authenticate it. When the authentication is successful, the management server can obtain the status switching instructions input by the administrator.
  • Step S604 The management server sends a status switching instruction to the target server.
  • Step S605 Determine whether there is a running program on the target server.
  • step S606 If yes, execute step S606; if not, execute step S607.
  • Step S606 The target server sends a state switching failure message to the management server.
  • the state switching failure message is used to indicate that the target server has a program running and cannot switch the running state to the maintenance state.
  • Step S607 The target server switches the running state to the maintenance state.
  • the target server switches the running state to the maintenance state.
  • Step S608 When the status switching is successful, the target server sends a status switching completion message to the management server.
  • the state switching completion message is used to instruct the target server to switch the running state to the maintenance state, and the management server can perform corresponding management work on the target server.
  • Step S609 Control the target server.
  • the target server when the status of the target server changes, the target server sends the current status information to the management server.
  • the management server determines whether the target server is in the running state based on the status information. If so, the management server obtains the status switching indication and sends it to
  • the target server enables the target server to switch the running state to the maintenance state when no program is running, and sends a state switching completion message to the management server, so that the server is not disturbed when it is in the running state, and the management server maintains it when it is in the maintenance state. It can effectively avoid security problems caused by improper operations by managers or maintenance personnel, and improve the security of the cluster.
  • FIG 7 is a schematic structural diagram of a management server provided in Embodiment 6 of the present invention.
  • the management server 70 includes: a first acquisition module 701, a second acquisition module 702, a sending module 703 and a processing module 704.
  • the first acquisition module 701 is used to acquire the current status information of the target server, and the status information is a running state or a maintenance state.
  • the second acquisition module 702 is used to acquire the status switching indication when the status information is the running status.
  • the sending module 703 is used to send a status switching instruction to the target server, where the status switching instruction is used to instruct the target server to switch the running state to the maintenance state.
  • the processing module 704 is configured to receive the state switching completion message sent by the target server, and control the target server according to the state switching completion message.
  • processing module 704 is specifically used to:
  • Migrate data stored in the target server according to the status switching message remove the target server from the server cluster, and perform maintenance operations on the target server to control the target server.
  • processing module 704 is also used to:
  • the management server 70 also includes: an authentication module.
  • the authentication module is specifically used for:
  • the identity authentication information includes fingerprint information and/or face information.
  • the management server 70 also includes: a maintenance module.
  • the maintenance module is specifically used for:
  • the management server provided in this embodiment is used to execute the steps of a server control method in Embodiment 1 or 2. Its implementation principles and technical effects are similar and will not be described again here.
  • FIG 8 is a schematic structural diagram of a service server provided in Embodiment 7 of the present invention.
  • the server 80 includes: a first sending module 801, a receiving module 802, a switching module 803 and a second sending module 804.
  • the first sending module 801 is used to send the current status information to the management server when the status of the target server changes.
  • the status information is a running status or a maintenance status.
  • the receiving module 802 is configured to receive a state switching instruction sent by the management server, where the state switching instruction is used to instruct the target server to switch the state to the maintenance state.
  • the switching module 803 is used to perform state switching according to the state switching instruction.
  • the second sending module 804 is used to send a state switching completion message to the management server when the state switching is successful.
  • the switching module 803 is specifically used for:
  • warning message When it is determined that there is a program in the running state, a warning message is output, and the warning message is used to indicate that the state cannot be switched.
  • the running state is switched to the maintenance state.
  • the server 80 also includes: a processing module.
  • the processing module is specifically used for:
  • the status of the target server is maintenance status
  • the maintenance status will be switched to the running status.
  • the running status will be switched to the maintenance status.
  • the business server provided in this embodiment is used to execute the steps of a server control method in Embodiment 3 or Embodiment 4. Its implementation principles and technical effects are similar and will not be described again here.
  • FIG 9 is a schematic structural diagram of a management server provided in Embodiment 8 of the present invention.
  • the server may include: at least one processor 901 and a memory 902.
  • Memory 902 is used to store programs.
  • the program may include program code, which includes computer operating instructions.
  • the memory 902 may include high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
  • the processor 901 is configured to execute computer execution instructions stored in the memory 902 to implement the method described in the foregoing method embodiments.
  • the processor 901 may be a central processing unit (Central Processing Unit, referred to as CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), or a device configured to implement embodiments of the present invention. Multiple integrated circuits.
  • CPU Central Processing Unit
  • ASIC Application Specific Integrated Circuit
  • the device may also include a communication interface 903.
  • the communication interface 903, the memory 902 and the processor 901 are implemented independently, the communication interface 903, the memory 902 and the processor 901 can be connected to each other through a bus and complete mutual communication.
  • the bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc.
  • ISA Industry Standard Architecture
  • PCI Peripheral Component
  • EISA Extended Industry Standard Architecture
  • the bus can be divided into address bus, data bus, control bus, etc., but it does not mean that there is only one bus or one type of bus.
  • the communication interface 903, the memory 902 and the processor 901 are integrated on one chip, the communication interface 903, the memory 902 and the processor 901 can complete communication through the internal interface.
  • the management server of this embodiment can be used to execute Embodiment 1 or Embodiment 2.
  • the specific implementation methods and technical effects of the steps of one of the server control methods are similar and will not be described again here.
  • Figure 10 is a schematic structural diagram of a service server provided in Embodiment 9 of the present invention.
  • the service server may include: at least one processor 1001 and a memory 1002.
  • Memory 1002 is used to store programs.
  • the program may include program code, which includes computer operating instructions.
  • the memory 1002 may include high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
  • the processor 1001 is configured to execute computer execution instructions stored in the memory 1002 to implement the method described in the foregoing method embodiments.
  • the processor 1001 may be a central processing unit (Central Processing Unit, referred to as CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), or a device configured to implement embodiments of the present invention. Multiple integrated circuits.
  • CPU Central Processing Unit
  • ASIC Application Specific Integrated Circuit
  • the device may also include a communication interface 1003.
  • a communication interface 1003. if the communication interface 1003, the memory 1002 and the processor 1001 are implemented independently, the communication interface 1003, the memory 1002 and the processor 1001 can be connected to each other through a bus and complete mutual communication.
  • the bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc.
  • ISA Industry Standard Architecture
  • PCI Peripheral Component
  • EISA Extended Industry Standard Architecture
  • the bus can be divided into address bus, data bus, control bus, etc., but it does not mean that there is only one bus or one type of bus.
  • the communication interface 1003, the memory 1002 and the processor 1001 are integrated on one chip, the communication interface 1003, the memory 1002 and the processor 1001 can complete communication through the internal interface.
  • the business server in this embodiment can be used to execute the steps of a server control method in Embodiment 3 or Embodiment 4.
  • the specific implementation methods and technical effects are similar and will not be described again here.
  • Embodiment 10 of the present invention provides a computer-readable storage medium.
  • the computer-readable storage medium may include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or Or various media that can store computer programs such as optical disks.
  • the computer-readable storage medium stores computer execution instructions.
  • the computer program When the computer program is executed by the processor, it is used to implement any one of the servers in Embodiment 1 to Embodiment 5.
  • the steps of the control method, the specific implementation methods and technical effects are similar, and will not be repeated here.
  • Embodiment 11 of the present invention provides a computer program product, including a computer program.
  • the computer program is executed by a processor, the steps of the server control method in any one of the above-mentioned Embodiments 1 to 5 are implemented. Specific implementation methods and technologies The effects are similar and will not be described again here.

Abstract

The present invention relates to the technical field of computers, and in particular to a server control method, a server, and a storage medium. The present invention aims to solve the problem in the prior art that nodes in a server cluster are insecure due to unreasonable operation. According to the server control method, the server, and the storage medium provided by the present invention, the current state information of a target server is acquired, and when the state information indicates a running state, a management server acquires a state switching instruction and then sends the state switching instruction to the target server. After the state of the target server is successfully switched, the management server can receive a state switching completion message sent by the target server and control the target server according to the state switching completion message, so that the server is not disturbed when in the running state; and when the server is in a maintenance state, maintenance is performed on the server, so that security problems caused by improper operation of management personnel or maintenance personnel can be effectively avoided, and the security of the cluster is improved.

Description

服务器的控制方法、服务器及存储介质Server control method, server and storage medium
本申请要求于2022年07月28日提交国家知识产权局、申请号为202210899493.1、申请名称为“服务器的控制方法、服务器及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application submitted to the State Intellectual Property Office on July 28, 2022, with application number 202210899493.1 and application name "Server control method, server and storage medium", the entire content of which is incorporated by reference. in this application.
技术领域Technical field
本发明实施例属于计算机技术领域,具体涉及一种服务器的控制方法、服务器及存储介质。Embodiments of the present invention belong to the field of computer technology, and specifically relate to a server control method, a server and a storage medium.
背景技术Background technique
服务器集群中的单个服务器通常称为节点,多个服务器之间通常通过局域网进行连接,高度紧密地协作完成计算工作。A single server in a server cluster is usually called a node. Multiple servers are usually connected through a local area network and collaborate highly closely to complete computing work.
服务器集群中每个服务器都安装有平台即服务PaaS(Platform as a Service,简称PaaS)系统或者基础设施即服务IaaS(Infrastructure as a Service,简称IaaS)系统等管理系统,这些系统类似服务器中安装的操作系统,这些系统内安装有分布式软件(PaaS平台和IaaS平台等),用于将服务器对外提供服务。现有技术中,管理人员或者维护人员等根据其相应的权限通过管理系统登录到管理服务器上,以完成对服务器集群的管理工作和维护工作等。Each server in the server cluster is installed with a management system such as a Platform as a Service (PaaS) system or an Infrastructure as a Service (IaaS) system. These systems are similar to those installed in the server. Operating systems, distributed software (PaaS platform, IaaS platform, etc.) installed in these systems, are used to provide servers with external services. In the existing technology, managers or maintenance personnel log in to the management server through the management system according to their corresponding authority to complete the management and maintenance of the server cluster.
但是,当服务器在执行任务时,管理人员或者维护人员登录到管理服务器上对其进行控制时,当操作不合理会导致服务器集群中各个节点不安全使得节点容易被入侵,导致服务器的安全性较低。However, when the server is performing tasks and managers or maintenance personnel log in to the management server to control it, unreasonable operations will cause each node in the server cluster to be unsafe and make the node easy to be invaded, resulting in poor security of the server. Low.
发明内容Contents of the invention
为了解决现有技术中的上述问题,即为了解决现有技术中当管理员操作不合理会使得服务器集群中各个节点不安全,导致服务器的安全性较低的问题,本发明实施例提供了一种服务器的控制方法、服务器及存储介质。 In order to solve the above-mentioned problems in the prior art, that is, in order to solve the problem in the prior art that when the administrator operates unreasonably, each node in the server cluster will be unsafe, resulting in low security of the server, embodiments of the present invention provide a A server control method, server and storage medium.
第一方面,本发明实施例提供一种服务器的控制方法,应用于管理服务器,包括:In a first aspect, an embodiment of the present invention provides a server control method, which is applied to manage the server, including:
获取目标服务器当前的状态信息,所述状态信息为运行态或者维护态;Obtain the current status information of the target server, which is the running state or maintenance state;
当所述状态信息为运行态,则获取状态切换指示;When the status information is in the running state, obtain the status switching indication;
向所述目标服务器发送所述状态切换指示,所述状态切换指示用于指示所述目标服务器将所述运行态切换为维护态;Send the state switching instruction to the target server, where the state switching instruction is used to instruct the target server to switch the running state to the maintenance state;
接收所述目标服务器发送的状态切换完成消息,并根据所述状态切换完成消息对所述目标服务器进行控制。Receive the state switching completion message sent by the target server, and control the target server according to the state switching completion message.
在上述服务器的控制方法的优选技术方案中,所述根据所述状态切换完成消息对所述目标服务器进行控制,包括:In a preferred technical solution of the above server control method, controlling the target server according to the state switching completion message includes:
根据所述状态切换消息,将所述目标服务器中存储的数据进行迁移,并将所述目标服务器从所述服务器集群中移除,以及,对所述目标服务器执行维护操作,以对所述目标服务器进行控制。Migrate data stored in the target server according to the status switching message, remove the target server from the server cluster, and perform maintenance operations on the target server to perform maintenance on the target server. The server takes control.
在上述服务器的控制方法的优选技术方案中,对所述目标服务器执行维护操作,包括:In a preferred technical solution of the above server control method, performing maintenance operations on the target server includes:
获取所述目标服务器的维护态的状态等级;Obtain the status level of the maintenance status of the target server;
获取所述状态等级对应的所述维护操作;Obtain the maintenance operation corresponding to the status level;
对所述目标服务器执行所述维护操作。Perform the maintenance operation on the target server.
在上述服务器的控制方法的优选技术方案中,所述获取状态切换指示之前,还包括:In a preferred technical solution of the above server control method, before obtaining the status switching indication, the method further includes:
获取管理员的身份认证信息,并对所述身份认证消息进行认证,所述身份认证信息包括指纹信息和/或人脸信息;Obtain the identity authentication information of the administrator and authenticate the identity authentication message, where the identity authentication information includes fingerprint information and/or face information;
确定对所述身份认证消息认证成功。It is determined that the authentication of the identity authentication message is successful.
在上述服务器的控制方法的优选技术方案中,所述方法还包括:In the preferred technical solution of the above server control method, the method further includes:
当所述状态信息为所述维护态,获取所述目标服务器的维护态的状态等级;When the status information is the maintenance status, obtain the status level of the maintenance status of the target server;
获取所述状态等级对应的所述维护操作;Obtain the maintenance operation corresponding to the status level;
对所述目标服务器执行所述维护操作。 Perform the maintenance operation on the target server.
第二方面,本发明实施例一种服务器的控制方法,应用于目标服务器,包括:In the second aspect, an embodiment of the present invention provides a server control method, which is applied to a target server and includes:
当目标服务器的状态改变时,则向管理服务器发送当前的状态信息,所述状态信息为运行态或者维护态;When the status of the target server changes, the current status information is sent to the management server, and the status information is the running state or the maintenance state;
接收所述管理服务器发送的状态切换指示,所述状态切换指示用于指示目标服务器将运行态切换为维护态;Receive a state switching instruction sent by the management server, where the state switching instruction is used to instruct the target server to switch the running state to the maintenance state;
根据所述状态切换指示进行状态切换;Perform state switching according to the state switching instruction;
当状态切换成功,则向所述管理服务器发送状态切换完成消息。When the status switching is successful, a status switching completion message is sent to the management server.
在上述服务器的控制方法的优选技术方案中,所述根据所述状态切换指示进行状态切换,包括:In the preferred technical solution of the above-mentioned server control method, the state switching according to the state switching instruction includes:
检测是否存在处于运行状态的程序;Detect whether there is a running program;
当确定存在处于运行状态程序,则输出警告信息,所述警告信息用于指示无法切换状态;When it is determined that there is a program in the running state, warning information is output, and the warning information is used to indicate that the state cannot be switched;
当确定没有程序在运行,则将运行态切换为维护态。When it is determined that no program is running, the running state is switched to the maintenance state.
在上述服务器的控制方法的优选技术方案中,向管理服务器发送状态信息之前,还包括:In the preferred technical solution of the above server control method, before sending the status information to the management server, the method further includes:
当所述目标服务器的状态为维护态,若检测到所述目标服务器被添加到服务器集群,则将维护态切换为运行态;When the state of the target server is the maintenance state, if it is detected that the target server is added to the server cluster, the maintenance state is switched to the running state;
当所述目标服务器的状态为运行态,若检测到所述目标服务器从所述服务器集群中移除,则将运行态切换为维护态。When the state of the target server is the running state, if it is detected that the target server is removed from the server cluster, the running state is switched to the maintenance state.
第三方面,本发明实施例提供一种管理服务器,包括:In a third aspect, an embodiment of the present invention provides a management server, including:
第一获取模块,用于获取目标服务器当前的状态信息,所述状态信息为运行态或者维护态;The first acquisition module is used to acquire the current status information of the target server, where the status information is a running state or a maintenance state;
第二获取模块,用于当所述状态信息为运行态,则获取状态切换指示;The second acquisition module is used to acquire the status switching indication when the status information is in the running state;
发送模块,用于向所述目标服务器发送所述状态切换指示,所述状态切换指示用于指示所述目标服务器将所述运行态切换为维护态;A sending module, configured to send the state switching instruction to the target server, where the state switching instruction is used to instruct the target server to switch the running state to the maintenance state;
处理模块,用于接收所述目标服务器发送的状态切换完成消息,并根据所述状态切换完成消息对所述目标服务器进行控制。A processing module, configured to receive a state switching completion message sent by the target server, and control the target server according to the state switching completion message.
第四方面,本发明实施例提供一种业务服务器,包括: In a fourth aspect, embodiments of the present invention provide a service server, including:
第一发送模块,用于当目标服务器的状态改变,则向管理服务器发送当前的状态信息,所述状态信息为运行态或者维护态;The first sending module is used to send the current status information to the management server when the status of the target server changes, and the status information is a running status or a maintenance status;
接收模块,用于接收所述管理服务器发送的状态切换指示,所述状态切换指示用于指示目标服务器将状态切换为维护态;A receiving module, configured to receive a state switching instruction sent by the management server, where the state switching instruction is used to instruct the target server to switch the state to the maintenance state;
切换模块,用于根据所述状态切换指示进行状态切换;A switching module, configured to perform state switching according to the state switching instruction;
第二发送模块,用于当状态切换成功,则向所述管理服务器发送状态切换完成消息。The second sending module is configured to send a state switching completion message to the management server when the state switching is successful.
第五方面,本发明实施例提供一种管理服务器,包括:处理器,以及与所述处理器通信连接的存储器;In a fifth aspect, embodiments of the present invention provide a management server, including: a processor, and a memory communicatively connected to the processor;
所述存储器存储计算机执行指令;The memory stores computer execution instructions;
所述处理器执行所述存储器存储的计算机执行指令,以实现如第一方面所述的服务器的控制方法。The processor executes the computer execution instructions stored in the memory to implement the control method of the server as described in the first aspect.
第六方面,本发明实施例提供一种业务服务器,包括:处理器,以及与所述处理器通信连接的存储器;In a sixth aspect, embodiments of the present invention provide a service server, including: a processor, and a memory communicatively connected to the processor;
所述存储器存储计算机执行指令;The memory stores computer execution instructions;
所述处理器执行所述存储器存储的计算机执行指令,以实现如第二方面所述的服务器的控制方法。The processor executes the computer execution instructions stored in the memory to implement the control method of the server as described in the second aspect.
第七方面,本发明实施例一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,所述计算机执行指令被处理器执行时用于实现如第一方面或者第二方面所述的服务器的控制方法。In a seventh aspect, an embodiment of the present invention relates to a computer-readable storage medium. Computer-executable instructions are stored in the computer-readable storage medium. When executed by a processor, the computer-executable instructions are used to implement the first aspect or the second aspect. The control method of the server described in this aspect.
第八方面,本发明实施例一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时用于实现第一方面或者第二方面所述的服务器的控制方法。In an eighth aspect, an embodiment of the present invention provides a computer program product, which includes a computer program that, when executed by a processor, is used to implement the server control method described in the first aspect or the second aspect.
本领域技术人员能够理解的是,本发明实施例提供的一种服务器的控制方法、服务器及存储介质,通过获取目标服务器当前的状态信息,当状态信息为运行态,则管理服务器获取状态切换指示,然后向目标服务器发送状态切换指示。目标服务器切换状态成功后,管理服务器可以接收到目标服务器发送的状态切换完成消息,并根据状态切换完成消息对目标服务器进行控制,使得服务器处于运行态时不受干扰,处于维护态时对其进行维护可以有效避免管理人员或者维护人员操作不当而带来的安全问题,提高了集群的安全性。 Those skilled in the art can understand that the embodiments of the present invention provide a server control method, server and storage medium. By obtaining the current status information of the target server, when the status information is in the running state, the management server obtains the status switching instruction. , and then sends a status switching indication to the target server. After the target server switches state successfully, the management server can receive the state switch completion message sent by the target server, and control the target server according to the state switch completion message, so that the server is not disturbed when it is in the running state, and it is maintained when it is in the maintenance state. Maintenance can effectively avoid security problems caused by improper operations by managers or maintenance personnel, and improve the security of the cluster.
附图说明Description of drawings
下面参照附图来描述本发明的一种服务器的控制方法的优选实施方式。附图为:The following describes a preferred implementation of a server control method of the present invention with reference to the accompanying drawings. The attached picture is:
图1是本发明提供的服务器的控制方法的场景示意图;Figure 1 is a schematic diagram of a scenario of a server control method provided by the present invention;
图2是本发明实施例一提供的一种服务器的控制方法的流程示意图;Figure 2 is a schematic flowchart of a server control method provided by Embodiment 1 of the present invention;
图3是本发明实施例二提供的另一种服务器的控制方法的流程示意图;Figure 3 is a schematic flow chart of another server control method provided by Embodiment 2 of the present invention;
图4是本发明实施例三提供的另一种服务器的控制方法的流程示意图;Figure 4 is a schematic flow chart of another server control method provided by Embodiment 3 of the present invention;
图5是本发明实施例四提供的另一种服务器的控制方法的流程示意图;Figure 5 is a schematic flowchart of another server control method provided in Embodiment 4 of the present invention;
图6为本发明实施例五提供的一种服务器的控制方法的信令流程图;Figure 6 is a signaling flow chart of a server control method provided in Embodiment 5 of the present invention;
图7为本发明实施例六提供的一种管理服务器的结构示意图;Figure 7 is a schematic structural diagram of a management server provided in Embodiment 6 of the present invention;
图8为本发明实施例七提供的一种服务器的结构示意图;Figure 8 is a schematic structural diagram of a server provided in Embodiment 7 of the present invention;
图9为本发明实施例八提供的一种管理服务器的结构示意图;Figure 9 is a schematic structural diagram of a management server provided in Embodiment 8 of the present invention;
图10为本发明实施例九提供的一种服务器的结构示意图。Figure 10 is a schematic structural diagram of a server provided in Embodiment 9 of the present invention.
具体实施方式Detailed ways
首先,本领域技术人员应当理解的是,这些实施方式仅仅用于解释本发明的技术原理,并非旨在限制本发明的保护范围。本领域技术人员可以根据需要对其作出调整,以便适应具体的应用场合。First of all, those skilled in the art should understand that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the scope of the present invention. Those skilled in the art can make adjustments as needed to adapt to specific application situations.
其次,需要说明的是,在本发明实施例的描述中,术语“内”、“外”等指示的方向或位置关系的术语是基于附图所示的方向或位置关系,这仅仅是为了便于描述,而不是指示或暗示装置或构件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。Secondly, it should be noted that in the description of the embodiments of the present invention, the terms “inner”, “outer”, etc. indicating the direction or positional relationship are based on the direction or positional relationship shown in the drawings. This is only for convenience. Descriptions are not intended to indicate or imply that devices or components must have a particular orientation, be constructed and operate in a particular orientation, and therefore are not to be construed as limitations of the invention.
此外,还需要说明的是,在本发明实施例的描述中,除非另有明确的规定和限定,术语“相连”、“连接”应做广义理解,例如,可 以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个构件内部的连通。对于本领域技术人员而言,可根据具体情况理解上述术语在本发明实施例中的具体含义。In addition, it should be noted that in the description of the embodiments of the present invention, unless otherwise explicitly stated and limited, the terms "connected" and "connected" should be understood in a broad sense. For example, it can be It can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, or it can be an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be an internal connection between two components. For those skilled in the art, the specific meanings of the above terms in the embodiments of the present invention can be understood according to specific circumstances.
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts fall within the scope of protection of the present invention.
服务器集群在执行任务时,通常利用多个服务器并行计算从而获得很高的计算速度。而对于集群的管理,管理人员和维护人员一般通过登录集群中的主机(即管理节点)中安装的管理系统进行控制,以实现集群中服务器的资源配置等。When server clusters perform tasks, they usually use multiple servers to perform parallel calculations to achieve high computing speeds. As for the management of the cluster, managers and maintenance personnel generally control it by logging in to the management system installed on the host in the cluster (that is, the management node) to implement resource configuration of the servers in the cluster.
在现有技术中,当服务器在执行任务过程中,运维人员或者管理人员可以登录该服务器,完成对服务器集群的管理工作和维护工作等。而强制性的登录对该服务器进行控制,当操作不合理时会导致该服务器甚至集群中其他服务器运行的程序出现问题,而且使得集群中的服务器容易被入侵,可能下载一些无关或危险的软件等,安全性较低。In the existing technology, when a server is performing a task, operation and maintenance personnel or managers can log in to the server to complete management and maintenance of the server cluster. Mandatory login controls the server. If the operation is unreasonable, it will cause problems with the programs running on the server or even other servers in the cluster. It will also make the servers in the cluster easy to be invaded, and some irrelevant or dangerous software may be downloaded. , lower security.
所以,本实施例提供一种服务器的控制方法,通过将服务器集群中的各个服务器设置运行态和维护态两种状态,限制了当服务器为维护态时,可直接进行对其进行维护操作。当服务器出现问题需要维护,但是状态为运行态时,需要权限较高的管理人员将其状态切换为维护态,维护人员才能进行维护操作,使得服务器处于运行态时不受干扰,处于维护态时对其进行维护可以有效避免管理人员或者维护人员操作不当而带来的安全问题,提高了集群的安全性。Therefore, this embodiment provides a server control method. By setting each server in the server cluster to two states: running state and maintenance state, it is restricted that when the server is in the maintenance state, maintenance operations can be directly performed on it. When there is a problem with the server that requires maintenance, but the status is in the running state, a manager with higher authority is required to switch its status to the maintenance state, so that the maintenance personnel can perform maintenance operations, so that the server is not disturbed when it is in the running state, and when it is in the maintenance state Maintaining it can effectively avoid security problems caused by improper operations by managers or maintenance personnel, and improve the security of the cluster.
下面,对上述运行态和维护态进行解释。Next, the above-mentioned running state and maintenance state are explained.
运行态:是指服务器可以参与计算任务,也就是说,可以确定服务器被添加到服务器集群中,此时,目标服务器中的程序可以为运行状态,或者,目标服务器也可以处于待使用的状态(即程序处于非运行状态)。管理员或者维护人员不能对处于该状态的服务器进行维护等工作。 Running state: means that the server can participate in computing tasks, that is, it can be determined that the server has been added to the server cluster. At this time, the program in the target server can be in a running state, or the target server can also be in a state to be used ( That is, the program is in a non-running state). Administrators or maintenance personnel cannot perform maintenance on servers in this state.
维护态:是指服务器处于不工作的状态,且服务器被暂时移除出服务器集群,管理员或者维护人员可以对处于该状态的服务器进行维护工作等。Maintenance state: means that the server is not working and the server has been temporarily removed from the server cluster. Administrators or maintenance personnel can perform maintenance work on the server in this state.
以下结合附图对本发明实施例的原理和特征进行描述,所举实例只用于解释本发明实施例,并非用于限定本发明实施例的范围。The principles and features of the embodiments of the present invention are described below with reference to the accompanying drawings. The examples cited are only used to explain the embodiments of the present invention and are not intended to limit the scope of the embodiments of the present invention.
图1是本发明提供的服务器的控制方法的场景示意图,如图1所示,服务器集群10中包括多个服务器,其可以通过局域网进行连接以实现协作完成计算工作。其中,管理服务器102通常称为主机,其可以通过局域网,实现对服务器集群10中其他服务器(服务器101、服务器103、服务器104和服务器105等,图中仅示出四个)的管理,例如资源分配等。Figure 1 is a schematic scenario diagram of a server control method provided by the present invention. As shown in Figure 1, a server cluster 10 includes multiple servers, which can be connected through a local area network to achieve collaborative completion of computing work. Among them, the management server 102 is usually called a host, which can manage other servers in the server cluster 10 (server 101, server 103, server 104, server 105, etc., only four are shown in the figure) through a local area network, such as resources. Distribution etc.
以目标服务器101为例,当目标服务器101被管理服务器102从服务器集群10中移除,那么目标服务器101可将其状态设置为维护态。当目标服务器101被管理服务器102添加到服务器集群10中,那么目标服务器101可将其状态设置为运行态。维护人员是否可以对其进行维护操作,可根据其状态确定,即当目标服务器101为维护态,则可以进行维护,当目标服务器101为运行态,则需要权限较高的管理人员将其状态切换为维护态,即可进行维护,从而提高了目标服务器101甚至是服务器集群10的安全性。Taking the target server 101 as an example, when the target server 101 is removed from the server cluster 10 by the management server 102, the target server 101 can set its status to the maintenance status. When the target server 101 is added to the server cluster 10 by the management server 102, the target server 101 can set its status to a running state. Whether maintenance personnel can perform maintenance operations on it can be determined based on its status. That is, when the target server 101 is in the maintenance state, maintenance can be performed. When the target server 101 is in the running state, a manager with higher authority is required to switch its status. In the maintenance state, maintenance can be performed, thereby improving the security of the target server 101 and even the server cluster 10 .
需要说明的是,本发明实施例不对应用场景中的各种设备的实际形态进行限定,也不对设备之间的交互方式进行限定,在方案的具体应用中,可以根据实际需求设定。It should be noted that the embodiments of the present invention do not limit the actual forms of various devices in the application scenario, nor do they limit the interaction methods between devices. In the specific application of the solution, settings can be made according to actual needs.
参考图2,图2是本发明实施例一提供的一种服务器的控制方法的流程示意图,该方法可以由管理服务器执行,该方法具体包括以下步骤。Referring to Figure 2, Figure 2 is a schematic flowchart of a server control method provided in Embodiment 1 of the present invention. The method can be executed by the management server. The method specifically includes the following steps.
步骤S201、获取目标服务器当前的状态信息,状态信息为运行态或者维护态。Step S201: Obtain the current status information of the target server. The status information is running status or maintenance status.
管理服务器在对目标服务器进行控制时,首先要获取目标服务器当前的状态信息,以确定该服务器当前的状态是运行态还是维护态,根据其状态执行相应的操作。When the management server controls the target server, it must first obtain the current status information of the target server to determine whether the current status of the server is running or maintenance, and perform corresponding operations based on its status.
作为一种可能的实现方式,目标服务器当前的状态信息可以是管理服务器向目标服务器发送状态查询请求后,目标服务器返回的。 As a possible implementation method, the current status information of the target server may be returned by the target server after the management server sends a status query request to the target server.
另一种可能的实现方式中,目标服务器当前的状态信息可以是管理服务器在本地存储的目标服务器上传的状态信息中查询,其中,目标服务器上传状态信息可以是在状态发现变化时发送的。可以理解,当前的状态信息为本地存储的目标服务器最新上传的状态信息。In another possible implementation, the current status information of the target server can be queried by the management server from the locally stored status information uploaded by the target server. The status information uploaded by the target server can be sent when a change in status is detected. It can be understood that the current status information is the latest uploaded status information of the locally stored target server.
步骤S202、当状态信息为运行态,则获取状态切换指示。Step S202: When the status information is the running status, obtain the status switching instruction.
管理服务器确定目标服务器的状态后,当确定目标服务器处于运行态时,管理服务器获取到状态切换指示。After the management server determines the status of the target server, when it is determined that the target server is in the running state, the management server obtains the status switching indication.
可选的,在获取状态切换指示之前,管理服务器可以获取管理员的身份认证信息,并对该身份认证信息进行认证,该身份认证信息包括指纹信息和/或人脸信息等。Optionally, before obtaining the status switching instruction, the management server can obtain the identity authentication information of the administrator and authenticate the identity authentication information, which includes fingerprint information and/or face information.
当确定对身份认证信息认证成功后,管理服务器可以获取管理员通过管理系统(例如PaaS系统或者IaaS系统等)上相应的界面输入的状态切换指示,避免了普通用户或者维护人员对目标服务器的状态进行随意切换,进一步保证了集群的安全。When it is determined that the identity authentication information has been authenticated successfully, the management server can obtain the status switching instructions input by the administrator through the corresponding interface on the management system (such as PaaS system or IaaS system, etc.), preventing ordinary users or maintenance personnel from changing the status of the target server. Switching at will further ensures the security of the cluster.
当状态信息为维护态时,说明服务器可以进行相应的操作,那么管理人员或者维护人员可以通过管理服务器对目标服务器进行控制。When the status information is in the maintenance state, it means that the server can perform corresponding operations, and then the administrator or maintenance personnel can control the target server through the management server.
具体的,管理服务器可以获取目标服务器的维护态的状态等级以及该状态等级对应的维护操作,然后管理服务器对目标服务器执行该维护操作,根据等级进行维护提高了目标服务器的安全性。Specifically, the management server can obtain the status level of the maintenance status of the target server and the maintenance operation corresponding to the status level, and then the management server performs the maintenance operation on the target server. Maintenance based on the level improves the security of the target server.
步骤S203、向目标服务器发送状态切换指示,状态切换指示用于指示目标服务器将运行态切换为维护态。Step S203: Send a status switching instruction to the target server, where the status switching instruction is used to instruct the target server to switch the running state to the maintenance state.
管理服务器获取到状态切换指示后,向目标服务器发送状态切换指示,以指示目标服务器进行状态切换。After obtaining the status switching instruction, the management server sends the status switching instruction to the target server to instruct the target server to perform status switching.
步骤S204、接收目标服务器发送的状态切换完成消息,并根据状态切换完成消息对目标服务器进行控制。Step S204: Receive the state switching completion message sent by the target server, and control the target server according to the state switching completion message.
当目标服务器根据状态切换指示将运行态切换为维护态后,管理服务器接收到其发送的状态切换完成消息,那么管理服务器可以根据该消息对目标服务器进行控制和维护等操作。When the target server switches the running state to the maintenance state according to the state switching instruction, and the management server receives the state switching completion message sent by it, the management server can control and maintain the target server based on the message.
本实施例提供的服务器的控制方法,通过获取目标服务器当前的状态信息,当状态信息为运行态,则管理服务器获取状态切换指示,然后将状态切换指示发送给目标服务器。目标服务器切换状态成功后,管 理服务器可以接收到目标服务器发送的状态切换完成消息,并根据状态切换完成消息对目标服务器进行控制,使得服务器处于运行态时不受干扰,处于维护态时对其进行维护可以有效避免管理人员或者维护人员操作不当而带来的安全问题,提高了集群的安全性。The server control method provided in this embodiment obtains the current status information of the target server. When the status information is in the running state, the management server obtains the status switching indication, and then sends the status switching indication to the target server. After the target server switches status successfully, the management The management server can receive the state switching completion message sent by the target server, and control the target server according to the state switching completion message, so that the server is not disturbed when it is in the running state, and maintaining it when it is in the maintenance state can effectively avoid the management personnel or Security issues caused by improper operations by maintenance personnel improve the security of the cluster.
进一步的,在实施例一的基础上,下面,通过实施例二对管理服务器对目标服务器进行控制进行具体介绍。Further, on the basis of Embodiment 1, the following is a detailed introduction to the control of the target server by the management server through Embodiment 2.
图3是本发明实施例二提供的另一种服务器的控制方法的流程示意图,该方法可以由管理服务器执行,如图3所示,该方法具体包括以下步骤。Figure 3 is a schematic flowchart of another server control method provided in Embodiment 2 of the present invention. This method can be executed by the management server. As shown in Figure 3, the method specifically includes the following steps.
步骤S301、将目标服务器中存储的数据进行迁移,并将目标服务器从服务器集群中移除。Step S301: Migrate the data stored in the target server and remove the target server from the server cluster.
管理服务器在对目标服务器进行控制或者维护之前,可以将目标服务器中存储的数据进行迁移,可以避免管理服务器在对目标服务器进行控制时,对目标服务器在运行态时所产生的数据或者其本身的存储的数据造成破坏,保证了数据的安全性。并且可以将目标服务器从服务器集群中移除,以避免管理服务器在对目标服务器进行控制时,对该集群中其他服务器的运行造成影响。Before the management server controls or maintains the target server, it can migrate the data stored in the target server. This can avoid the management server from controlling the target server from data generated when the target server is running or its own data. Causes no damage to stored data, ensuring data security. And the target server can be removed from the server cluster to avoid the management server from affecting the operation of other servers in the cluster when controlling the target server.
具体的,可以迁移到服务器集群中其他的服务器中进行备份,可以理解,用于备份的服务器处于维护态。管理服务器也可以将目标服务器中存储的数据迁移到集群以外的特定的服务器中进行备份。Specifically, it can be migrated to other servers in the server cluster for backup. It is understandable that the server used for backup is in a maintenance state. The management server can also migrate the data stored in the target server to a specific server outside the cluster for backup.
其中,目标服务器中存储的数据可以是程序、软件或者其运行时产生的数据,以及供该服务器运行程序的基础文件等。The data stored in the target server may be programs, software, or data generated when they are run, as well as basic files for the server to run programs, etc.
而将目标服务器从服务器集群中移除的方式,示例性的,管理服务器可以将目标服务器从服务器集群使用的局域网中断开,也可以通过其他方式将目标服务器移除,本发明对此不进行限定。As for the way to remove the target server from the server cluster, for example, the management server can disconnect the target server from the local area network used by the server cluster, or it can remove the target server through other methods, which is not covered by the present invention. limited.
步骤S302、对目标服务器执行维护操作,以对目标服务器进行控制。Step S302: Perform maintenance operations on the target server to control the target server.
管理服务器在对目标服务器中存储的数据进行迁移,并且将目标服务器从集群中移除后,管理人员或者维护人员可以通过该管理服务器对目标服务器进行控制。After the management server migrates the data stored in the target server and removes the target server from the cluster, managers or maintenance personnel can control the target server through the management server.
具体的,管理人员或者维护人员,可以通过管理服务器中的 管理系统,例如PaaS系统或者IaaS系统等,根据其权限进行相应的管理工作。Specifically, managers or maintenance personnel can use the Management systems, such as PaaS systems or IaaS systems, perform corresponding management work according to their permissions.
可选的,维护态可以包括多个等级状态,每个等级状态对应不同的维护操作,目标服务器的维护态可以是其中任意一个等级状态。管理服务器可以获取目标服务器的维护态的状态等级以及该状态等级对应的维护操作,然后管理服务器对目标服务器执行该维护操作。Optionally, the maintenance state can include multiple level states, each level state corresponds to a different maintenance operation, and the maintenance state of the target server can be any one of the level states. The management server can obtain the status level of the maintenance status of the target server and the maintenance operation corresponding to the status level, and then the management server performs the maintenance operation on the target server.
示例性的,当目标服务器的维护态为最高等级,则维护人员可以对目标服务器执行的操作为最高等级对应的维护操作。For example, when the maintenance status of the target server is the highest level, the operations that the maintenance personnel can perform on the target server are maintenance operations corresponding to the highest level.
需要说明的是,上述维护态的等级以及各个等级对应的维护操作,可以根据实际需求进行设置。示例性的,目标服务器处于维护态的等级,可以是管理员通过管理服务器提前设置的,可以进一步提高目标服务器的安全性,也有效避免该服务器被入侵而执行不必要的任务。It should be noted that the levels of the above maintenance status and the maintenance operations corresponding to each level can be set according to actual needs. For example, the level of the target server in the maintenance state can be set in advance by the administrator through the management server, which can further improve the security of the target server and effectively prevent the server from being invaded and performing unnecessary tasks.
可以理解,当维护人员对目标服务器进行维护后,可以通过管理员将该服务器添加到服务器集群中,使得目标服务器可以检测到其被添加到服务器集群中,使得目标服务器自动触发状态切换,将维护态切换为运行态。It can be understood that after the maintenance personnel perform maintenance on the target server, the administrator can add the server to the server cluster, so that the target server can detect that it has been added to the server cluster, so that the target server automatically triggers a status switch and will maintain the target server. state switches to running state.
在本实施例中,管理服务器在对目标服务器进行控制之前,可以将目标服务器中存储的数据进行迁移,以保证数据的安全。还可以将目标服务器从服务器集群中移除,再对该目标服务器进行控制,以避免管理服务器在对目标服务器进行控制时,对该集群中其他服务器的运行造成影响。In this embodiment, before controlling the target server, the management server may migrate the data stored in the target server to ensure data security. You can also remove the target server from the server cluster and then control the target server to prevent the management server from affecting the operation of other servers in the cluster when controlling the target server.
下面,通过实施例三对执行主体为目标服务器的一种服务器的控制方法进行说明。Next, a method for controlling a server whose execution subject is a target server will be described through Embodiment 3.
图4是本发明实施例三提供的另一种服务器的控制方法的流程示意图,该方法可以由目标服务器执行,如图4所示,该方法具体包括以下步骤。Figure 4 is a schematic flowchart of another server control method provided in Embodiment 3 of the present invention. This method can be executed by the target server. As shown in Figure 4, the method specifically includes the following steps.
步骤S401、当目标服务器的状态改变,则向管理服务器发送当前的状态信息,状态信息为运行态或者维护态。Step S401: When the status of the target server changes, current status information is sent to the management server. The status information is the running status or the maintenance status.
当目标服务器的状态发生改变时,向管理服务器发送当前的状态信息,使得管理人员及时了解目标服务器的状态。 When the status of the target server changes, the current status information is sent to the management server so that the administrator can know the status of the target server in time.
示例性的,目标服务器的状态发生改变可以是:当目标服务器的状态为维护态时,若检测到其添加到服务器集群中,则将维护态切换为运行态。当目标服务器的状态为运行态时,若检测到目标服务器从服务器集群中移除,则将运行态切换为维护态。For example, the change in the status of the target server can be: when the status of the target server is in the maintenance state, and if it is detected that it is added to the server cluster, the maintenance state is switched to the running state. When the status of the target server is running, if it is detected that the target server is removed from the server cluster, the running status will be switched to the maintenance status.
上述状态的切换方式,例如可以是:目标服务器中的切换程序实现的,该切换程序可以监听到目标服务器是否被添加到服务器集群中以改变目标服务器的状态。或者,还可以在监听到管理服务器发送的状态切换指示时实现目标服务器的状态的切换。The above-mentioned state switching method can be implemented, for example, by a switching program in the target server. The switching program can monitor whether the target server is added to the server cluster to change the state of the target server. Alternatively, the state of the target server can be switched when the state switching instruction sent by the management server is monitored.
步骤S402、获取管理服务器发送的状态切换指示,状态切换指示用于指示目标服务器将状态切换为维护态。Step S402: Obtain the state switching instruction sent by the management server. The state switching instruction is used to instruct the target server to switch the state to the maintenance state.
当目标服务器当前的状态为运行态,管理服务器对目标服务器有管理需求时,目标服务器可以接收到管理服务器发送的状态切换指示时,用于指示目标服务器将状态切换为维护态。When the current status of the target server is running and the management server has management requirements for the target server, the target server can receive the status switching instruction sent by the management server to instruct the target server to switch the status to the maintenance status.
步骤S403、根据状态切换指示进行状态切换。Step S403: Perform state switching according to the state switching instruction.
目标服务器接收到状态切换指示后,根据该指示对其状态进行切换,即将运行态切换为维护态。After receiving the status switching instruction, the target server switches its status according to the instruction, that is, switches the running state to the maintenance state.
步骤S404、当状态切换成功,则向管理服务器发送状态切换完成消息。Step S404: When the status switching is successful, a status switching completion message is sent to the management server.
目标服务器状态切换成功后,向管理服务器发送状态切换完成消息,使得管理员或者维护人员可以通过管理服务器对目标服务器进行控制和维护。After the target server status switch is successful, a status switch completion message is sent to the management server, so that the administrator or maintenance personnel can control and maintain the target server through the management server.
在本实施例中,当目标服务器的状态改变,则目标服务器向管理服务器发送当前的状态信息,以使管理人员及时了解目标服务器的状态。当获取管理服务器发送的状态切换指示时,目标服务器根据状态切换指示进行状态切换,当状态切换成功,则目标服务器可以向管理服务器发送状态切换完成消息,使得服务器处于运行态时不受干扰,处于维护态时对其进行维护可以有效避免管理人员或者维护人员操作不当而带来的安全问题,提高了集群的安全性。In this embodiment, when the status of the target server changes, the target server sends the current status information to the management server, so that the administrator can learn the status of the target server in a timely manner. When obtaining the state switching instruction sent by the management server, the target server performs state switching according to the state switching instruction. When the state switching is successful, the target server can send a state switching completion message to the management server, so that the server is not disturbed when it is in the running state. Maintaining it during maintenance can effectively avoid security problems caused by improper operations by managers or maintenance personnel, and improve the security of the cluster.
在实施例三的基础上,下面,通过实施例四对服务器进行状态切换进行具体介绍。On the basis of Embodiment 3, the state switching of the server will be introduced in detail through Embodiment 4 below.
图5是本发明实施例四提供的另一种服务器的控制方法的流 程示意图,该方法可以由目标服务器执行,如图5所示,该方法具体包括以下步骤。Figure 5 is a flow chart of another server control method provided by Embodiment 4 of the present invention. The process diagram shows that this method can be executed by the target server, as shown in Figure 5. The method specifically includes the following steps.
步骤S501、判断目标服务器上是否存在处于运行状态的程序。Step S501: Determine whether there is a running program on the target server.
目标服务器在将运行态切换为维护态之前,可以检测其上是否存在处于运行状态的程序,当确定存在处于运行状态的程序,则执行步骤S502,当确定不存在处于运行状态的程序,则执行步骤S503。Before switching the running state to the maintenance state, the target server can detect whether there is a program in the running state on it. When it is determined that there is a program in the running state, step S502 is executed. When it is determined that there is no program in the running state, step S502 is executed. Step S503.
步骤S502、输出警告信息,警告信息用于指示无法进行状态切换。Step S502: Output warning information, which is used to indicate that state switching cannot be performed.
当确定存在处于运行状态的程序,则目标服务器输出警告信息,该警信息用于指示无法进行状态切换,可以避免服务器在运行程序时强行切换状态导致目标服务器已经服务器集群的计算任务和安全受到影响,进一步保障了目标服务器在运行态的安全。When it is determined that there is a program in the running state, the target server outputs a warning message. This warning message is used to indicate that state switching cannot be performed. This can avoid the server from forcibly switching states when running the program, which will affect the computing tasks and security of the target server and server cluster. , further ensuring the security of the target server in the running state.
上述输出告警信息的方式,示例性的,可以通过蜂鸣器进行提示,也可以通过语音等其他方式进行提示,本发明对此不进行限制。The above-mentioned way of outputting the alarm information can be, for example, a buzzer or other means such as voice, which is not limited by the present invention.
可以理解,目标服务器可以向管理服务器发送状态切换失败消息,以提示管理服务器无法进行状态切换。It can be understood that the target server can send a state switching failure message to the management server to prompt the management server that the state switching cannot be performed.
可选的,目标服务器上设置有白名单,白名单上包括至少一个程序或者软件等,当目标服务器的状态为运行态时,其可以运行的程序为白名单上的程序,更加有效的保障目标服务器的安全性,使得服务器集群的安全性更高。Optionally, a whitelist is set on the target server. The whitelist includes at least one program or software. When the status of the target server is running, the programs it can run are the programs on the whitelist, which more effectively protects the target. The security of the server makes the server cluster more secure.
可选的,运行态可以包括多个等级状态,每个等级状态对应不同的可操作行为,当目标服务器的状态为运行态时,目标服务器可以执行与该运行态的状态等级对应的可操作行为。示例性的,当运行态的等级为中级,则该等级对应的可操作行为是可接受用户插入的U盘,可以理解,也就是说,当服务器处于运行态的该等级时,除了可操作行为,服务器不接受任何的其他操作,例如用户的登录行为等。Optionally, the running state can include multiple level states, and each level state corresponds to different operable behaviors. When the status of the target server is the running state, the target server can perform operable behaviors corresponding to the status level of the running state. . For example, when the level of the running state is medium, the operable behavior corresponding to this level is to accept the USB disk inserted by the user. It can be understood that, that is, when the server is at this level of the running state, in addition to the operable behavior , the server does not accept any other operations, such as user login behavior, etc.
需要说明的是,示例性的,上述等级可以是目标服务器根据其执行的任务的重要性自行设置,重要性越高,其设置的等级可以越高,该重要性可以是用户在添加该任务时进行设置。或者,目标服务器处于运行态的等级,可以是管理员通过管理服务器提前设置。It should be noted that, for example, the above level can be set by the target server according to the importance of the task it performs. The higher the importance, the higher the level it can set. The importance can be set when the user adds the task. Make settings. Alternatively, the target server is at a running level, which can be set in advance by the administrator through the management server.
步骤S503、目标服务器将运行态切换为维护态。 Step S503: The target server switches the running state to the maintenance state.
当确定不存在处于运行状态的程序,则目标服务器将运行态切换为维护态。When it is determined that there is no program in the running state, the target server switches the running state to the maintenance state.
在本实施例中,目标服务器在进行状态切换之前,可以判断目标服务器上是否存在处于运行状态的程序,当确定存在处于运行状态的程序,则输出警告信息,以指示无法进行状态切换,可以避免服务器在运行程序时强行切换状态导致目标服务器已经服务器集群的计算任务和安全受到影响,进一步保障了目标服务器在运行态的安全。当确定不存在处于运行状态的程序,则目标服务器将运行态切换为维护态,使得服务器处于运行态时不受干扰,处于维护态时对其进行维护可以有效避免管理人员或者维护人员操作不当而带来的安全问题,提高了集群的安全性。In this embodiment, before the target server performs state switching, it can determine whether there is a program in the running state on the target server. When it is determined that there is a program in the running state, a warning message is output to indicate that the state switching cannot be performed, which can avoid Forcibly switching states when the server is running a program affects the computing tasks and security of the target server and server cluster, further ensuring the security of the target server in the running state. When it is determined that there is no program in the running state, the target server switches the running state to the maintenance state, so that the server is not disturbed when it is in the running state. Maintaining it when it is in the maintenance state can effectively avoid improper operation by managers or maintenance personnel. It brings security issues and improves the security of the cluster.
在上述实施例的基础上,下面,通过实施例五对管理服务器和目标服务器之间的交互进行说明。Based on the above embodiment, the interaction between the management server and the target server will be described below through Embodiment 5.
参考图6,图6为本发明实施例五提供的一种服务器的控制方法的信令流程图,如图6所示,本实施例提供的方法包括如下步骤。Referring to Figure 6, Figure 6 is a signaling flow chart of a server control method provided in Embodiment 5 of the present invention. As shown in Figure 6, the method provided in this embodiment includes the following steps.
步骤S601、当目标服务器的状态改变时,目标服务器向管理服务器发送当前的状态信息。Step S601: When the status of the target server changes, the target server sends the current status information to the management server.
该状态信息为运行态或者维护态。This status information is running status or maintenance status.
步骤S602、管理服务器根据状态信息判断目标服务器是否处于运行态。Step S602: The management server determines whether the target server is in a running state based on the status information.
若是,则执行步骤S603,若否,则执行步骤S609。If yes, execute step S603; if not, execute step S609.
步骤S603、管理服务器获取状态切换指示。Step S603: The management server obtains the status switching instruction.
状态切换指示用于指示目标服务器将运行态切换为维护态。在本步骤中,管理服务器可以获取管理员的身份认证信息,并对其进行认证,当认证成功,管理服务器可以获取到管理员输入的状态切换指示。The status switching indication is used to instruct the target server to switch the running state to the maintenance state. In this step, the management server can obtain the identity authentication information of the administrator and authenticate it. When the authentication is successful, the management server can obtain the status switching instructions input by the administrator.
步骤S604、管理服务器向目标服务器发送状态切换指示。Step S604: The management server sends a status switching instruction to the target server.
步骤S605、判断目标服务器上是否存在处于运行状态的程序。Step S605: Determine whether there is a running program on the target server.
若是,则执行步骤S606,若否,则执行步骤S607。If yes, execute step S606; if not, execute step S607.
步骤S606、目标服务器向管理服务器发送状态切换失败消息。Step S606: The target server sends a state switching failure message to the management server.
当确定存在处于运行状态的程序,该状态切换失败消息用于指示目标服务器有程序正在运行,无法将运行态切换为维护态。When it is determined that there is a program in the running state, the state switching failure message is used to indicate that the target server has a program running and cannot switch the running state to the maintenance state.
步骤S607、目标服务器将运行态切换为维护态。 Step S607: The target server switches the running state to the maintenance state.
当确定不存在处于运行状态的程序,则目标服务器将运行态切换为维护态。When it is determined that there is no program in the running state, the target server switches the running state to the maintenance state.
步骤S608、当状态切换成功,目标服务器向管理服务器发送状态切换完成消息。Step S608: When the status switching is successful, the target server sends a status switching completion message to the management server.
状态切换完成消息用于指示目标服务器将运行态切换为维护态,管理服务器可以对目标服务器进行相应的管理工作。The state switching completion message is used to instruct the target server to switch the running state to the maintenance state, and the management server can perform corresponding management work on the target server.
步骤S609、对目标服务器进行控制。Step S609: Control the target server.
在本实施例中,当目标服务器的状态改变时,目标服务器向管理服务器发送当前的状态信息,管理服务器根据状态信息判断目标服务器是否处于运行态,若是,则管理服务器获取状态切换指示并发送给目标服务器,使得目标服务器在其没有程序运行时将运行态切换为维护态,并向管理服务器发送状态切换完成消息,使得服务器处于运行态时不受干扰,处于维护态时管理服务器对其进行维护可以有效避免管理人员或者维护人员操作不当而带来的安全问题,提高了集群的安全性。In this embodiment, when the status of the target server changes, the target server sends the current status information to the management server. The management server determines whether the target server is in the running state based on the status information. If so, the management server obtains the status switching indication and sends it to The target server enables the target server to switch the running state to the maintenance state when no program is running, and sends a state switching completion message to the management server, so that the server is not disturbed when it is in the running state, and the management server maintains it when it is in the maintenance state. It can effectively avoid security problems caused by improper operations by managers or maintenance personnel, and improve the security of the cluster.
图7为本发明实施例六提供的一种管理服务器的结构示意图,如图7所示,管理服务器70包括:第一获取模块701、第二获取模块702、发送模块703和处理模块704。Figure 7 is a schematic structural diagram of a management server provided in Embodiment 6 of the present invention. As shown in Figure 7, the management server 70 includes: a first acquisition module 701, a second acquisition module 702, a sending module 703 and a processing module 704.
第一获取模块701,用于获取目标服务器当前的状态信息,状态信息为运行态或者维护态。The first acquisition module 701 is used to acquire the current status information of the target server, and the status information is a running state or a maintenance state.
第二获取模块702,用于当状态信息为运行态,则获取状态切换指示。The second acquisition module 702 is used to acquire the status switching indication when the status information is the running status.
发送模块703,用于向目标服务器发送状态切换指示,状态切换指示用于指示目标服务器将运行态切换为维护态。The sending module 703 is used to send a status switching instruction to the target server, where the status switching instruction is used to instruct the target server to switch the running state to the maintenance state.
处理模块704,用于接收目标服务器发送的状态切换完成消息,并根据状态切换完成消息对目标服务器进行控制。The processing module 704 is configured to receive the state switching completion message sent by the target server, and control the target server according to the state switching completion message.
可选的,处理模块704具体用于:Optionally, the processing module 704 is specifically used to:
根据状态切换消息,将目标服务器中存储的数据进行迁移,并将目标服务器从服务器集群中移除,以及,对目标服务器执行维护操作,以对目标服务器进行控制。Migrate data stored in the target server according to the status switching message, remove the target server from the server cluster, and perform maintenance operations on the target server to control the target server.
可选的,处理模块704还用于:Optionally, the processing module 704 is also used to:
获取目标服务器的维护态的状态等级。 Get the status level of the target server's maintenance status.
获取状态等级对应的维护操作。Get the maintenance operations corresponding to the status level.
对目标服务器执行维护操作。Perform maintenance operations on the target server.
可选的,管理服务器70还包括:认证模块。Optionally, the management server 70 also includes: an authentication module.
认证模块具体用于:The authentication module is specifically used for:
获取管理员的身份认证信息,并对身份认证消息进行认证,身份认证信息包括指纹信息和/或人脸信息。Obtain the identity authentication information of the administrator and authenticate the identity authentication message. The identity authentication information includes fingerprint information and/or face information.
确定对身份认证消息认证成功。Confirm that the authentication message is successfully authenticated.
可选的,管理服务器70还包括:维护模块。Optionally, the management server 70 also includes: a maintenance module.
维护模块具体用于:The maintenance module is specifically used for:
当状态信息为维护态,获取目标服务器的维护态的状态等级。When the status information is maintenance status, obtain the status level of the maintenance status of the target server.
获取状态等级对应的维护操作。Get the maintenance operations corresponding to the status level.
对目标服务器执行维护操作。Perform maintenance operations on the target server.
本实施例提供的管理服务器,用于执行实施例一或实施例二中的一种服务器的控制方法的步骤,其实现原理和技术效果类似,在此不再赘述。The management server provided in this embodiment is used to execute the steps of a server control method in Embodiment 1 or 2. Its implementation principles and technical effects are similar and will not be described again here.
图8为本发明实施例七提供的一种业务服务器的结构示意图,如图8所示,服务器80包括:第一发送模块801、接收模块802、切换模块803和第二发送模块804。Figure 8 is a schematic structural diagram of a service server provided in Embodiment 7 of the present invention. As shown in Figure 8, the server 80 includes: a first sending module 801, a receiving module 802, a switching module 803 and a second sending module 804.
第一发送模块801,用于当目标服务器的状态改变,则向管理服务器发送当前的状态信息,状态信息为运行态或者维护态。The first sending module 801 is used to send the current status information to the management server when the status of the target server changes. The status information is a running status or a maintenance status.
接收模块802,用于接收管理服务器发送的状态切换指示,状态切换指示用于指示目标服务器将状态切换为维护态。The receiving module 802 is configured to receive a state switching instruction sent by the management server, where the state switching instruction is used to instruct the target server to switch the state to the maintenance state.
切换模块803,用于根据状态切换指示进行状态切换。The switching module 803 is used to perform state switching according to the state switching instruction.
第二发送模块804,用于当状态切换成功,则向管理服务器发送状态切换完成消息。The second sending module 804 is used to send a state switching completion message to the management server when the state switching is successful.
可选的,切换模块803具体用于:Optionally, the switching module 803 is specifically used for:
检测是否存在处于运行状态的程序。Check whether there is a running program.
当确定存在处于运行状态程序,则输出警告信息,警告信息用于指示无法切换状态。When it is determined that there is a program in the running state, a warning message is output, and the warning message is used to indicate that the state cannot be switched.
当确定没有程序在运行,则将运行态切换为维护态。When it is determined that no program is running, the running state is switched to the maintenance state.
可选的,服务器80还包括:处理模块。 Optionally, the server 80 also includes: a processing module.
处理模块具体用于:The processing module is specifically used for:
当目标服务器的状态为维护态,若检测到目标服务器被添加到服务器集群,则将维护态切换为运行态。When the status of the target server is maintenance status, if it is detected that the target server is added to the server cluster, the maintenance status will be switched to the running status.
当目标服务器的状态为运行态,若检测到目标服务器从服务器集群中移除,则将运行态切换为维护态。When the status of the target server is running, if it is detected that the target server is removed from the server cluster, the running status will be switched to the maintenance status.
本实施例提供的业务服务器,用于执行实施例三或实施例四中的一种服务器的控制方法的步骤,其实现原理和技术效果类似,在此不再赘述。The business server provided in this embodiment is used to execute the steps of a server control method in Embodiment 3 or Embodiment 4. Its implementation principles and technical effects are similar and will not be described again here.
图9为本发明实施例八提供的一种管理服务器的结构示意图,如图9所示,该服务器可以包括:至少一个处理器901和存储器902。Figure 9 is a schematic structural diagram of a management server provided in Embodiment 8 of the present invention. As shown in Figure 9, the server may include: at least one processor 901 and a memory 902.
存储器902,用于存放程序。具体地,程序可以包括程序代码,程序代码包括计算机操作指令。Memory 902 is used to store programs. Specifically, the program may include program code, which includes computer operating instructions.
存储器902可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。The memory 902 may include high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
处理器901用于执行存储器902存储的计算机执行指令,以实现前述方法实施例所描述的方法。其中,处理器901可能是一个中央处理器(Central Processing Unit,简称为CPU),或者是特定集成电路(Application Specific Integrated Circuit,简称为ASIC),或者是被配置成实施本发明实施例的一个或多个集成电路。The processor 901 is configured to execute computer execution instructions stored in the memory 902 to implement the method described in the foregoing method embodiments. Among them, the processor 901 may be a central processing unit (Central Processing Unit, referred to as CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), or a device configured to implement embodiments of the present invention. Multiple integrated circuits.
可选的,该设备还可以包括通信接口903。在具体实现上,如果通信接口903、存储器902和处理器901独立实现,则通信接口903、存储器902和处理器901可以通过总线相互连接并完成相互间的通信。总线可以是工业标准体系结构(Industry Standard Architecture,简称为ISA)总线、外部设备互连(Peripheral Component,简称为PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,简称为EISA)总线等。总线可以分为地址总线、数据总线、控制总线等,但并不表示仅有一根总线或一种类型的总线。Optionally, the device may also include a communication interface 903. In terms of specific implementation, if the communication interface 903, the memory 902 and the processor 901 are implemented independently, the communication interface 903, the memory 902 and the processor 901 can be connected to each other through a bus and complete mutual communication. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into address bus, data bus, control bus, etc., but it does not mean that there is only one bus or one type of bus.
可选的,在具体实现上,如果通信接口903、存储器902和处理器901集成在一块芯片上实现,则通信接口903、存储器902和处理器901可以通过内部接口完成通信。Optionally, in terms of specific implementation, if the communication interface 903, the memory 902 and the processor 901 are integrated on one chip, the communication interface 903, the memory 902 and the processor 901 can complete communication through the internal interface.
本实施例的管理服务器,可用于执行实施例一或者实施例二 中一种服务器的控制方法的步骤,具体实现方式和技术效果类似,这里不再赘述。The management server of this embodiment can be used to execute Embodiment 1 or Embodiment 2. The specific implementation methods and technical effects of the steps of one of the server control methods are similar and will not be described again here.
图10为本发明实施例九提供的一种业务服务器的结构示意图,如图10所示,该业务服务器可以包括:至少一个处理器1001和存储器1002。Figure 10 is a schematic structural diagram of a service server provided in Embodiment 9 of the present invention. As shown in Figure 10, the service server may include: at least one processor 1001 and a memory 1002.
存储器1002,用于存放程序。具体地,程序可以包括程序代码,程序代码包括计算机操作指令。Memory 1002 is used to store programs. Specifically, the program may include program code, which includes computer operating instructions.
存储器1002可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。The memory 1002 may include high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
处理器1001用于执行存储器1002存储的计算机执行指令,以实现前述方法实施例所描述的方法。其中,处理器1001可能是一个中央处理器(Central Processing Unit,简称为CPU),或者是特定集成电路(Application Specific Integrated Circuit,简称为ASIC),或者是被配置成实施本发明实施例的一个或多个集成电路。The processor 1001 is configured to execute computer execution instructions stored in the memory 1002 to implement the method described in the foregoing method embodiments. Among them, the processor 1001 may be a central processing unit (Central Processing Unit, referred to as CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), or a device configured to implement embodiments of the present invention. Multiple integrated circuits.
可选的,该设备还可以包括通信接口1003。在具体实现上,如果通信接口1003、存储器1002和处理器1001独立实现,则通信接口1003、存储器1002和处理器1001可以通过总线相互连接并完成相互间的通信。总线可以是工业标准体系结构(Industry Standard Architecture,简称为ISA)总线、外部设备互连(Peripheral Component,简称为PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,简称为EISA)总线等。总线可以分为地址总线、数据总线、控制总线等,但并不表示仅有一根总线或一种类型的总线。Optionally, the device may also include a communication interface 1003. In terms of specific implementation, if the communication interface 1003, the memory 1002 and the processor 1001 are implemented independently, the communication interface 1003, the memory 1002 and the processor 1001 can be connected to each other through a bus and complete mutual communication. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into address bus, data bus, control bus, etc., but it does not mean that there is only one bus or one type of bus.
可选的,在具体实现上,如果通信接口1003、存储器1002和处理器1001集成在一块芯片上实现,则通信接口1003、存储器1002和处理器1001可以通过内部接口完成通信。Optionally, in terms of specific implementation, if the communication interface 1003, the memory 1002 and the processor 1001 are integrated on one chip, the communication interface 1003, the memory 1002 and the processor 1001 can complete communication through the internal interface.
本实施例的业务服务器,可用于执行实施例三或者实施例四中一种服务器的控制方法的步骤,具体实现方式和技术效果类似,这里不再赘述。The business server in this embodiment can be used to execute the steps of a server control method in Embodiment 3 or Embodiment 4. The specific implementation methods and technical effects are similar and will not be described again here.
本发明实施例十提供了一种计算机可读存储介质,该计算机可读存储介质可以包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁盘或 者光盘等各种可以存储计算机程序的介质,具体的,该计算机可读存储介质中存储有计算机执行指令,该计算机程序被处理器执行时用于实现实施例一至实施例五中任意一种服务器的控制方法的步骤,具体实现方式和技术效果类似,这里不再赘述。Embodiment 10 of the present invention provides a computer-readable storage medium. The computer-readable storage medium may include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or Or various media that can store computer programs such as optical disks. Specifically, the computer-readable storage medium stores computer execution instructions. When the computer program is executed by the processor, it is used to implement any one of the servers in Embodiment 1 to Embodiment 5. The steps of the control method, the specific implementation methods and technical effects are similar, and will not be repeated here.
本发明实施例十一提供一种计算机程序产品,包括计算机程序,计算机程序被处理器执行时,实现如上述实施例一至实施例五中任意一种服务器的控制方法的步骤,具体实现方式和技术效果类似,这里不再赘述。Embodiment 11 of the present invention provides a computer program product, including a computer program. When the computer program is executed by a processor, the steps of the server control method in any one of the above-mentioned Embodiments 1 to 5 are implemented. Specific implementation methods and technologies The effects are similar and will not be described again here.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。 Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention, but not to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features can be equivalently replaced; and these modifications or substitutions do not deviate from the essence of the corresponding technical solutions from the technical solutions of the embodiments of the present invention. scope.

Claims (13)

  1. 一种服务器的控制方法,其特征在于,应用于管理服务器,所述方法包括:A server control method, characterized in that it is applied to manage servers, and the method includes:
    获取目标服务器当前的状态信息,所述状态信息为运行态或者维护态;Obtain the current status information of the target server, which is the running state or maintenance state;
    当所述状态信息为运行态,则获取状态切换指示;When the status information is in the running state, obtain the status switching indication;
    向所述目标服务器发送所述状态切换指示,所述状态切换指示用于指示所述目标服务器将所述运行态切换为维护态;Send the state switching instruction to the target server, where the state switching instruction is used to instruct the target server to switch the running state to the maintenance state;
    接收所述目标服务器发送的状态切换完成消息,并根据所述状态切换完成消息对所述目标服务器进行控制。Receive the state switching completion message sent by the target server, and control the target server according to the state switching completion message.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述状态切换完成消息对所述目标服务器进行控制,包括:The method according to claim 1, characterized in that, controlling the target server according to the state switching completion message includes:
    根据所述状态切换消息,将所述目标服务器中存储的数据进行迁移,并将所述目标服务器从所述服务器集群中移除,以及,对所述目标服务器执行维护操作,以对所述目标服务器进行控制。Migrate data stored in the target server according to the status switching message, remove the target server from the server cluster, and perform maintenance operations on the target server to perform maintenance on the target server. The server takes control.
  3. 根据权利要求2所述的方法,其特征在于,对所述目标服务器执行维护操作,包括:The method according to claim 2, characterized in that performing maintenance operations on the target server includes:
    获取所述目标服务器的维护态的状态等级;Obtain the status level of the maintenance status of the target server;
    获取所述状态等级对应的所述维护操作;Obtain the maintenance operation corresponding to the status level;
    对所述目标服务器执行所述维护操作。Perform the maintenance operation on the target server.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述获取状态切换指示之前,还包括:The method according to any one of claims 1-3, characterized in that before obtaining the status switching indication, it further includes:
    获取管理员的身份认证信息,并对所述身份认证消息进行认证,所述身份认证信息包括指纹信息和/或人脸信息;Obtain the identity authentication information of the administrator and authenticate the identity authentication message, where the identity authentication information includes fingerprint information and/or face information;
    确定对所述身份认证消息认证成功。It is determined that the authentication of the identity authentication message is successful.
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method of claim 4, further comprising:
    当所述状态信息为所述维护态,获取所述目标服务器的维护态的状态等级;When the status information is the maintenance status, obtain the status level of the maintenance status of the target server;
    获取所述状态等级对应的所述维护操作;Obtain the maintenance operation corresponding to the status level;
    对所述目标服务器执行所述维护操作。Perform the maintenance operation on the target server.
  6. 一种服务器的控制方法,其特征在于,应用于目标服务器,包括: A server control method, characterized in that it is applied to a target server and includes:
    当目标服务器的状态改变时,则向管理服务器发送当前的状态信息,所述状态信息为运行态或者维护态;When the status of the target server changes, the current status information is sent to the management server, and the status information is the running state or the maintenance state;
    接收所述管理服务器发送的状态切换指示,所述状态切换指示用于指示目标服务器将运行态切换为维护态;Receive a state switching instruction sent by the management server, where the state switching instruction is used to instruct the target server to switch the running state to the maintenance state;
    根据所述状态切换指示进行状态切换;Perform state switching according to the state switching instruction;
    当状态切换成功,则向所述管理服务器发送状态切换完成消息。When the status switch is successful, a status switch completion message is sent to the management server.
  7. 根据权利要求6所述的方法,其特征在于,所述根据所述状态切换指示进行状态切换,包括:The method according to claim 6, characterized in that, performing state switching according to the state switching instruction includes:
    检测是否存在处于运行状态的程序;Detect whether there is a running program;
    当确定存在处于运行状态程序,则输出警告信息,所述警告信息用于指示无法切换状态;When it is determined that there is a program in the running state, warning information is output, and the warning information is used to indicate that the state cannot be switched;
    当确定没有程序在运行,则将运行态切换为维护态。When it is determined that no program is running, the running state is switched to the maintenance state.
  8. 根据权利要求7所述的方法,其特征在于,向管理服务器发送状态信息之前,还包括:The method according to claim 7, characterized in that before sending the status information to the management server, it further includes:
    当所述目标服务器的状态为维护态,若检测到所述目标服务器被添加到服务器集群,则将维护态切换为运行态;When the state of the target server is the maintenance state, if it is detected that the target server is added to the server cluster, the maintenance state is switched to the running state;
    当所述目标服务器的状态为运行态,若检测到所述目标服务器从所述服务器集群中移除,则将运行态切换为维护态。When the state of the target server is the running state, if it is detected that the target server is removed from the server cluster, the running state is switched to the maintenance state.
  9. 一种管理服务器,其特征在于,包括:A management server, which is characterized by including:
    第一获取模块,用于获取目标服务器当前的状态信息,所述状态信息为运行态或者维护态;The first acquisition module is used to acquire the current status information of the target server, where the status information is a running state or a maintenance state;
    第二获取模块,用于当所述状态信息为运行态,则获取状态切换指示;The second acquisition module is used to acquire the status switching indication when the status information is in the running state;
    发送模块,用于向所述目标服务器发送所述状态切换指示,所述状态切换指示用于指示所述目标服务器将所述运行态切换为维护态;A sending module, configured to send the state switching instruction to the target server, where the state switching instruction is used to instruct the target server to switch the running state to the maintenance state;
    处理模块,用于接收所述目标服务器发送的状态切换完成消息,并根据所述状态切换完成消息对所述目标服务器进行控制。A processing module, configured to receive a state switching completion message sent by the target server, and control the target server according to the state switching completion message.
  10. 一种业务服务器,其特征在于,包括:A business server is characterized by including:
    第一发送模块,用于当目标服务器的状态改变,则向管理服务器发送当前的状态信息,所述状态信息为运行态或者维护态;The first sending module is used to send the current status information to the management server when the status of the target server changes, and the status information is a running status or a maintenance status;
    接收模块,用于接收所述管理服务器发送的状态切换指示,所述状态切换指示用于指示目标服务器将状态切换为维护态; A receiving module, configured to receive a state switching instruction sent by the management server, where the state switching instruction is used to instruct the target server to switch the state to the maintenance state;
    切换模块,用于根据所述状态切换指示进行状态切换;A switching module, configured to perform state switching according to the state switching instruction;
    第二发送模块,用于当状态切换成功,则向所述管理服务器发送状态切换完成消息。The second sending module is configured to send a state switching completion message to the management server when the state switching is successful.
  11. 一种管理服务器,其特征在于,包括:处理器,以及与所述处理器通信连接的存储器;A management server, characterized in that it includes: a processor, and a memory communicatively connected to the processor;
    所述存储器存储计算机执行指令;The memory stores computer execution instructions;
    所述处理器执行所述存储器存储的计算机执行指令,以实现如权利要求1至5中任一项所述的服务器的控制方法。The processor executes computer execution instructions stored in the memory to implement the server control method according to any one of claims 1 to 5.
  12. 一种业务服务器,其特征在于,包括:处理器,以及与所述处理器通信连接的存储器;A business server, characterized in that it includes: a processor, and a memory communicatively connected to the processor;
    所述存储器存储计算机执行指令;The memory stores computer execution instructions;
    所述处理器执行所述存储器存储的计算机执行指令,以实现如权利要求6至8中任一项所述的服务器的控制方法。The processor executes the computer execution instructions stored in the memory to implement the control method of the server according to any one of claims 6 to 8.
  13. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机执行指令,所述计算机执行指令被处理器执行时用于实现如权利要求1至8任一项所述的服务器的控制方法。 A computer-readable storage medium, characterized in that computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, they are used to implement any one of claims 1 to 8. Server control method.
PCT/CN2023/089914 2022-07-28 2023-04-21 Server control method, server, and storage medium WO2024021703A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210899493.1 2022-07-28
CN202210899493.1A CN115277457A (en) 2022-07-28 2022-07-28 Server control method, server and storage medium

Publications (1)

Publication Number Publication Date
WO2024021703A1 true WO2024021703A1 (en) 2024-02-01

Family

ID=83769969

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/089914 WO2024021703A1 (en) 2022-07-28 2023-04-21 Server control method, server, and storage medium

Country Status (2)

Country Link
CN (1) CN115277457A (en)
WO (1) WO2024021703A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277457A (en) * 2022-07-28 2022-11-01 卡奥斯工业智能研究院(青岛)有限公司 Server control method, server and storage medium
CN117493119A (en) * 2023-11-16 2024-02-02 广州大一互联网络科技有限公司 Intelligent server management and control method, system and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109471655A (en) * 2017-12-25 2019-03-15 北京安天网络安全技术有限公司 A kind of service application update method and system based on closed Barrier Model
CN112100027A (en) * 2020-08-31 2020-12-18 新华三信息技术有限公司 Server maintenance method, device, equipment and machine readable storage medium
CN113220421A (en) * 2021-05-31 2021-08-06 深圳市恒扬数据股份有限公司 Management method, management server and management system of server cluster
CN114090987A (en) * 2021-10-20 2022-02-25 广州番禺电缆集团有限公司 Power grid equipment maintenance verification method and device, electronic equipment and storage medium
WO2022160745A1 (en) * 2021-01-30 2022-08-04 华为技术有限公司 Network security function detection method and related device
CN115277457A (en) * 2022-07-28 2022-11-01 卡奥斯工业智能研究院(青岛)有限公司 Server control method, server and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7403996B2 (en) * 2002-02-21 2008-07-22 Bea Systems, Inc. Systems and methods for migratable services
CN102843438A (en) * 2012-09-29 2012-12-26 深圳市博瑞得科技有限公司 Method and system for cloud computation node management
CN111343219B (en) * 2018-12-18 2022-08-02 同方威视技术股份有限公司 Computing service cloud platform
CN110502407A (en) * 2019-08-12 2019-11-26 广州小丑鱼信息科技有限公司 A kind of automation O&M monitoring method and system
CN113592337A (en) * 2021-08-09 2021-11-02 北京豆萌信息技术有限公司 Fault processing method and device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109471655A (en) * 2017-12-25 2019-03-15 北京安天网络安全技术有限公司 A kind of service application update method and system based on closed Barrier Model
CN112100027A (en) * 2020-08-31 2020-12-18 新华三信息技术有限公司 Server maintenance method, device, equipment and machine readable storage medium
WO2022160745A1 (en) * 2021-01-30 2022-08-04 华为技术有限公司 Network security function detection method and related device
CN113220421A (en) * 2021-05-31 2021-08-06 深圳市恒扬数据股份有限公司 Management method, management server and management system of server cluster
CN114090987A (en) * 2021-10-20 2022-02-25 广州番禺电缆集团有限公司 Power grid equipment maintenance verification method and device, electronic equipment and storage medium
CN115277457A (en) * 2022-07-28 2022-11-01 卡奥斯工业智能研究院(青岛)有限公司 Server control method, server and storage medium

Also Published As

Publication number Publication date
CN115277457A (en) 2022-11-01

Similar Documents

Publication Publication Date Title
WO2024021703A1 (en) Server control method, server, and storage medium
RU2649292C2 (en) Method of generation a list of update agents
US8254579B1 (en) Cryptographic key distribution using a trusted computing platform
CN104981784A (en) Software deployment and control method and system
EP3664373A1 (en) Method, device and system for processing network slice instance
KR20110074096A (en) Method, device and system for monitoring trouble of distributed home-network
CN111787038B (en) Method, system and computing device for providing edge service
US20140259167A1 (en) Behavior based application blacklisting
US11190359B2 (en) Device and system for accessing a distributed ledger
US9774600B1 (en) Methods, systems, and computer readable mediums for managing infrastructure elements in a network system
WO2020252724A1 (en) Log processing method and device, and computer-readable storage medium
CN108600156B (en) Server and security authentication method
CN108366087B (en) ISCSI service realization method and device based on distributed file system
WO2020038106A1 (en) Bmc management method and system and related device
US10325096B1 (en) Modifying a portion of a read-only file system
US20220046014A1 (en) Techniques for device to device authentication
US9880855B2 (en) Start-up control program, device, and method
CN115208590A (en) Cross-domain communication system, method and storage medium
CN109040145B (en) Method for safely accessing local area network, storage medium and application server
CN104811446A (en) Novel network safety protection system
CN113114588A (en) Data processing method and device, electronic equipment and storage medium
CN105871928A (en) Safety control method and safety control system of distributed network
CN113904942B (en) Management method and device of cloud platform system, electronic equipment and storage medium
US11829261B2 (en) Providing a logical data isolation with intermittent connectivity
US20220217175A1 (en) Software defined network whitebox infection detection and isolation

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23844919

Country of ref document: EP

Kind code of ref document: A1