Server control method, server control device, electronic device, and storage medium

By obtaining the identity information of the operation and maintenance personnel and the server list, and automatically identifying and controlling the operating status of the server, the problem of lack of a server security downline mechanism in the existing technology is solved, and automated operation and maintenance and efficiency improvement is achieved.

CN113778798BActive Publication Date: 2025-06-20BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111040890.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-06
Publication Date
2025-06-20
Estimated Expiration
2041-09-06

AI Technical Summary

Technical Problem

The existing technology lacks a mechanism to control the security of server downline, which leads to operation and maintenance personnel need to perform server downline operations through subjective judgment, which is prone to errors in server downline due to information omission or human judgment errors.

Method used

By obtaining the identity information of the operation and maintenance personnel, a server list is constructed, the operation information of the first target server is determined, and the second target server is determined based on this information. Then, in response to the control command, the operating status of the second target server is controlled, including closing the data port, setting a silent period, and offline operations.

Benefits of technology

It realizes automatic discrimination and batch control of controllable servers, reduces errors caused by omission of server information or human judgment errors, effectively reduces operation and maintenance costs, and improves operation and maintenance operation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113778798B_ABST
    Figure CN113778798B_ABST
Patent Text Reader

Abstract

The present disclosure provides a server control method, including: obtaining a server list according to the identity information of an operation and maintenance personnel; determining a first target server in response to a batch selection operation of the operation and maintenance personnel on the servers in the server list; obtaining the operation information of the first target server; determining a second target server based on the operation information of the first target server; and controlling the running state of the second target server in response to a control instruction. In addition, the present disclosure also provides a server control device, an electronic device, a readable storage medium, and a computer program product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technologies, and more particularly, to a server control method, a server control device, an electronic device, a readable storage medium, and a computer program product. Background Art

[0002] In the operation and maintenance business, for servers with hardware failures, poor operating conditions, or those not used for a long time, operation and maintenance personnel need to take them offline for recycling. If there are still running tasks on the server, taking the server offline may have an adverse impact on the programs related to the task.

[0003] In the process of implementing the concept of the present disclosure, the inventors found that most of the related technologies perform server offline operations through the subjective judgment of operation and maintenance personnel, lacking a mechanism for controlling the safe offline of servers. Summary of the Invention

[0004] In view of this, the present disclosure provides a server control method, a server control device, an electronic device, a readable storage medium, and a computer program product.

[0005] One aspect of the present disclosure provides a server control method, including: obtaining a server list according to the identity information of operation and maintenance personnel; determining a first target server in response to a batch selection operation of the operation and maintenance personnel on the servers in the server list; obtaining the running information of the first target server; determining a second target server based on the running information of the first target server; and controlling the running state of the second target server in response to a control instruction.

[0006] According to an embodiment of the present disclosure, the obtaining a server list according to the identity information of operation and maintenance personnel includes: determining the management authority of the operation and maintenance personnel according to the identity information of the operation and maintenance personnel; obtaining the identification information of a third target server corresponding to the management authority from a database; and constructing the server list based on the identification information of all the third target servers.

[0007] According to an embodiment of the present disclosure, the running information of the first target server includes monitoring information, domain name binding information, scheduled task information, and non-system process information.

[0008] According to an embodiment of the present disclosure, the above-mentioned acquisition of the operating information of the above-mentioned first target server includes: acquiring the domain name binding information and monitoring information of the above-mentioned first target server from the information collection system, wherein the above-mentioned monitoring information at least includes the processor operating frequency, memory size and network import and export traffic; running each instruction in the instruction queue in sequence to obtain the scheduled task information and non-system process information of the above-mentioned first target server, wherein the above-mentioned instruction queue includes scheduled task query instructions and non-system process query instructions for each of the above-mentioned first target servers.

[0009] According to an embodiment of the present disclosure, the second target server is determined based on the running information of the first target server, including: determining the first target server as the second target server when the following conditions are all met: the domain name binding information of the first target server shows that there is no bound domain name; the processor operating frequency of the first target server is lower than the first preset threshold, or the memory size of the first target server is lower than the second preset threshold, or the network import and export traffic of the first target server is lower than the third preset threshold; the scheduled task information of the first target server shows that there is no scheduled task; the non-system process information of the first target server shows that there is no non-system process.

[0010] According to an embodiment of the present disclosure, the above-mentioned control instructions include the above-mentioned closing instructions of the operation and maintenance personnel and the offline instructions of the recycling personnel.

[0011] According to an embodiment of the present disclosure, the above-mentioned response to the control instruction to control the operating status of the above-mentioned second target server includes: in response to the closing instruction of the above-mentioned operation and maintenance personnel, closing the data port of the above-mentioned second target server; sending a notification of data port closure to the user of the above-mentioned second target server; if no request for unblocking the above-mentioned data port is received from the above-mentioned user within a preset time range, sending a work order for taking the above-mentioned second target server offline to the above-mentioned recycling personnel; in response to the above-mentioned recycling personnel approving the above-mentioned work order, transferring the management authority of the above-mentioned second target server to the above-mentioned recycling personnel; and in response to the offline instruction of the above-mentioned recycling personnel, controlling the above-mentioned second target server to go offline.

[0012] According to an embodiment of the present disclosure, the above-mentioned control instruction also includes the above-mentioned rollback instruction of the operation and maintenance personnel.

[0013] According to an embodiment of the present disclosure, the above method further includes: when a request from the user to unlock the data port is received within a preset time range, or in response to the recycling personnel not approving the work order, sending feedback information to terminate the offline process of the second target server to the operation and maintenance personnel; and in response to the rollback instruction of the operation and maintenance personnel, unlocking the data port of the second target server to enable the second target server to roll back to the operating state before the data port was closed.

[0014] Another aspect of the present disclosure provides a server control device, including: a first acquisition module, a first determination module, a second acquisition module, a second determination module, and a control module. Among them, the first acquisition module is used to acquire a server list according to the identity information of the operation and maintenance personnel; the first determination module is used to determine a first target server in response to a batch selection operation of the operation and maintenance personnel on the servers in the server list; the second acquisition module is used to acquire the operation information of the first target server; the second determination module is used to determine a second target server based on the operation information of the first target server; and the control module is used to control the operating state of the second target server in response to a control instruction.

[0015] Another aspect of the present disclosure provides an electronic device, including: one or more processors; a memory for storing one or more instructions, wherein when the one or more instructions are executed by the one or more processors, the one or more processors are caused to implement the method as described above.

[0016] Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions that are used to implement the method as described above when executed.

[0017] Another aspect of the present disclosure provides a computer program product, the computer program product including computer-executable instructions that are used to implement the method as described above when executed.

[0018] According to an embodiment of the present disclosure, in the operation and maintenance service, operation and maintenance personnel can manage multiple servers. After receiving the operation and maintenance personnel's operation of batch selecting servers, the first target server to be controlled can be determined; then, based on the operation information of the first target server, the controllable second target server can be determined; in response to the control instruction of the person with the server management permission, the operating state of the second target server can be controlled. Through the above technical means, automatic discrimination of controllable servers and batch control of servers are realized, at least partially overcoming the technical problem of incorrect server offline caused by server information omission or human judgment error, effectively reducing the operation and maintenance cost, and improving the operation and maintenance operation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, the above and other objects, features, and advantages of the present disclosure will become clearer. In the drawings:

[0020] Figure 1 An exemplary system architecture 100 to which the server control method according to an embodiment of the present disclosure can be applied is schematically shown.

[0021] Figure 2 A flowchart of the server control method according to an embodiment of the present disclosure is schematically shown.

[0022] Figure 3 A flowchart of the server control method according to another embodiment of the present disclosure is schematically shown.

[0023] Figure 4 A schematic structural diagram of a server control system according to another embodiment of the present disclosure is schematically shown.

[0024] Figure 5 A block diagram of a server control device according to an embodiment of the present disclosure is schematically shown.

[0025] Figure 6 A block diagram of an electronic device suitable for implementing the server control method according to an embodiment of the present disclosure is schematically shown. Detailed Embodiments

[0026] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present disclosure. In the following detailed description, for the sake of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is obvious that one or more embodiments can also be implemented without these specific details. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily obscuring the concepts of the present disclosure.

[0027] The terms used herein are merely for describing specific embodiments and are not intended to limit the present disclosure. The terms "including", "comprising", etc. used herein indicate the presence of the described features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0028] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0029] In the case of using expressions such as "at least one of A, B, and C, etc.", generally, it should be interpreted according to the meaning that those skilled in the art usually understand this expression (for example, "a system having at least one of A, B, and C" should include, but not be limited to, a system having only A, only B, only C, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.). In the case of using expressions such as "at least one of A, B, or C, etc.", generally, it should be interpreted according to the meaning that those skilled in the art usually understand this expression (for example, "a system having at least one of A, B, or C" should include, but not be limited to, a system having only A, only B, only C, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.).

[0030] In the operation and maintenance scenario for servers, the related technology often relies on operation and maintenance personnel to control the running state of the servers. The operation and maintenance personnel judge whether the servers can be taken offline based on work experience. During the judgment process, usually, monitoring metrics such as the processor working frequency and traffic of the servers are used as the judgment criteria. These metrics cannot intuitively reflect the situation of the tasks running on the servers, and manual judgment may cause information omission. During the process of taking the servers offline, the servers are usually temporarily put into the recycling pool, and emails are sent to wait for confirmation from the users. If the users never confirm, it is difficult to determine whether the servers can be taken offline. At the same time, during the process of the operation and maintenance personnel performing offline control, usually, the operation and maintenance personnel need to operate on each server separately, lacking a batch operation mechanism, which affects the efficiency of operation and maintenance.

[0031] In view of this, the embodiments of the present disclosure provide a server control method. By comprehensively presenting the running situation of the servers from four aspects: monitoring information, bound domain names, processes, and scheduled tasks, information omission is avoided; the system can automatically judge whether it is possible to take the servers offline according to the index data of the above four dimensions, improving the ability of automated operation and maintenance; after judging that the offline conditions are met, the ports are pre-blocked and a silent period is set to improve the recovery time efficiency and shorten the recovery cycle; the task queue method is used to batch process operations such as taking the servers offline, blocking and unblocking ports, and viewing the running situation, eliminating the step of logging in to each server to view the operations one by one, and improving the efficiency of operation and maintenance operations; the operation log and work order approval process are used to refine the responsibility chain and professionalize the offline process.

[0032] Specifically, embodiments of the present disclosure provide a server control method, a server control device, an electronic device, a readable storage medium, and a computer program product. The method includes: obtaining a server list according to the identity information of an operation and maintenance personnel; determining a first target server in response to a batch selection operation of the operation and maintenance personnel on the servers in the server list; obtaining the running information of the first target server; determining a second target server based on the running information of the first target server; and controlling the running state of the second target server in response to a control instruction.

[0033] Figure 1 FIG. 1 schematically shows an exemplary system architecture 100 to which the server control method according to an embodiment of the present disclosure can be applied. It should be noted that, Figure 1 The figure shown is only an example of the system architecture to which the embodiments of the present disclosure can be applied, to help those skilled in the art understand the technical content of the present disclosure, but does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.

[0034] As Figure 1 shown, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and multiple servers 105. The network 104 is used as a medium to provide a communication link between the terminal devices 101, 102, 103 and the servers 105. The network 104 may include various connection types, such as wired and / or wireless communication links, etc.

[0035] The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, and desktop computers, etc.

[0036] The servers 105 may be servers that provide various services.

[0037] Various client applications may be installed on the terminal devices 101, 102, 103. Users can log in to the application to determine their access or control permissions, so as to determine the servers 105 that they can access or control; thereafter, users can access or control the servers 105 through the network 104.

[0038] It should be noted that the server control method provided by the embodiments of the present disclosure can generally be executed by any one of the terminal devices 101, 102, and 103; correspondingly, the server control device provided by the embodiments of the present disclosure can generally be set in any one of the terminal devices 101, 102, and 103. Alternatively, the server control method provided by the embodiments of the present disclosure can also be executed by other terminal devices or servers different from the terminal devices 101, 102, and 103 and capable of connecting to the network 104; correspondingly, the server control device provided by the embodiments of the present disclosure can also be set in other terminal devices or servers different from the terminal devices 101, 102, and 103 and capable of connecting to the network 104.

[0039] It should be understood that Figure 1 the numbers of the terminal devices, networks, and servers in

[0040] Figure 2 FIG. schematically shows a flowchart of a server control method according to an embodiment of the present disclosure.

[0041] As Figure 2 shown, the method includes operations S201 to S205.

[0042] In operation S201, a server list is obtained according to the identity information of the operation and maintenance personnel.

[0043] In operation S202, in response to a batch selection operation of the operation and maintenance personnel for the servers in the server list, a first target server is determined.

[0044] In operation S203, the running information of the first target server is obtained.

[0045] In operation S204, a second target server is determined based on the running information of the first target server.

[0046] In operation S205, in response to a control instruction, the running state of the second target server is controlled.

[0047] According to an embodiment of the present disclosure, the server list may include identification information of multiple servers. During the operation and maintenance process, each server can be managed by a corresponding operation and maintenance personnel, and a relationship table recording this corresponding relationship can be stored in a database.

[0048] According to an embodiment of the present disclosure, the server list can be displayed on the operation interface of the operation and maintenance personnel's terminal device, and this operation interface supports a multiple-selection function, so as to facilitate the operation and maintenance personnel to select the first target server to be controlled from the server list.

[0049] According to an embodiment of the present disclosure, the number of the first target servers may be one or more.

[0050] According to an embodiment of the present disclosure, the operation information of the first target server may include the hardware information of the server, for example, information about the processor, memory, etc. of the server; the operation information may also include information about the services running in the server, for example, scheduled task information, process information, etc.; the operation information may further include information about the network where the server is located, for example, domain name information of the server.

[0051] According to an embodiment of the present disclosure, the obtained operation information of the first target server may be quantified, and a threshold may be set. When it is determined that the quantified value of the server operation information is lower than the threshold, the server is considered as the controllable second target server.

[0052] According to an embodiment of the present disclosure, the control instruction may be issued by a person with the management authority of the server. The operation state of the server may include offline, rollback, etc.

[0053] According to an embodiment of the present disclosure, in the operation and maintenance service, the operation and maintenance personnel may manage multiple servers. After receiving the operation of the operation and maintenance personnel to batch-select servers, the first target servers to be controlled may be determined; then, according to the operation information of the first target servers, the controllable second target servers may be determined; in response to the control instruction of the person with the management authority of the server, the operation state of the second target servers may be controlled. Through the above technical means, the automatic discrimination of controllable servers and the batch control of servers are realized, at least partially overcoming the technical problem of incorrect server offline caused by server information omission or human judgment error, effectively reducing the operation and maintenance cost, and improving the operation and maintenance operation efficiency.

[0054] Next, with reference to Figure 3 and Figure 4 , in combination with specific embodiments, a further description is made for the Figure 2 shown method.

[0055] Figure 3 Schematically shows a flowchart of a server control method according to another embodiment of the present disclosure.

[0056] As Figure 3 shown, the method includes operations S301 to S309.

[0057] It should be noted that unless it is clearly stated that there is a sequential execution order between different operations in the flowchart shown in the embodiments of the present disclosure, or there is a sequential execution order between different operations in the technical implementation, the execution order between multiple operations may be unsequenced, and multiple operations may also be executed simultaneously.

[0058] In operation S301, a server list is obtained according to the identity information.

[0059] In operation S302, a first target server is determined according to a batch selection operation.

[0060] In operation S303, a second target server is determined according to the operation information of the first target server.

[0061] In operation S304, the port of the second target server is blocked and a silent period is set.

[0062] In operation S305, it is determined whether the server user has requested a rollback during the silent period. If it is determined that the server user has not requested a rollback during the silent period, operation S306 is performed; if it is determined that the server user has requested a rollback during the silent period, operation S307 is performed.

[0063] In operation S306, a offline work order is sent to the recycling personnel.

[0064] In operation S307, the port is unblocked and the server is controlled to roll back.

[0065] In operation S308, it is determined whether the recycling personnel have passed the approval. If it is determined that the recycling personnel have passed the approval, operation S309 is executed; if it is determined that the recycling personnel have not passed the approval, operation S307 is executed.

[0066] In operation S309, the control authority is changed to control the server offline.

[0067] According to an embodiment of the present disclosure, operations S301 to S303 may be implemented according to the method of operations S201 to S204.

[0068] According to the embodiments of the present disclosure, the identity information may be the identity information of any user who accesses the system implementing the server control method in the embodiments of the present disclosure, and may include operation and maintenance personnel, recycling personnel, server users, and other personnel. Among them, the operation and maintenance personnel and recycling personnel may have the management authority to perform online and offline operations on the server, and the server users and other personnel may only view the operating status of the server through the interface of the system.

[0069] According to an embodiment of the present disclosure, after obtaining identity information and determining that the accessing personnel is an operation and maintenance personnel, the server list can be obtained through the following operations: determining the management authority of the operation and maintenance personnel based on the identity information of the operation and maintenance personnel; obtaining the identification information of the third target server corresponding to the management authority from the configuration management database (CMDB); and constructing a server list based on the identification information of all third target servers.

[0070] According to an embodiment of the present disclosure, the running information of the first target server may include monitoring information, domain name binding information, scheduled task information, and non-system process information.

[0071] According to an embodiment of the present disclosure, the domain name binding information and monitoring information of the first target server can be obtained through an information collection system. Among them, the monitoring information may include the processor working frequency, memory size, and network inlet and outlet traffic.

[0072] According to an embodiment of the present disclosure, after the system receives the list of selected first target servers, it can initiate an instruction queue to a specified server through a unified management service to display the scheduled task information and non-system process information of the server. The instruction queue may include crontab scheduled task commands and PS non-system process list commands.

[0073] According to an embodiment of the present disclosure, for the running information of the first target server, the system can determine whether the first target server can be taken offline according to the following method: no bound domain name is displayed in the domain name binding information of the first target server; the processor working frequency of the first target server is lower than a first preset threshold, or the memory size of the first target server is lower than a second preset threshold, or the network inlet and outlet traffic of the first target server is lower than a third preset threshold; no scheduled task is displayed in the scheduled task information of the first target server; no non-system process is displayed in the non-system process information of the first target server. When all the above conditions are met, it can be considered that the first target server is a second target server that can be taken offline.

[0074] In some embodiments, the second target server may also be a server directly specified by an operation and maintenance personnel from the server list.

[0075] According to an embodiment of the present disclosure, after receiving the closing command for the second target server from the operation and maintenance personnel, the system can block the data port of the server through iptable instructions to ensure that no more traffic enters or exits, and send a notice of data port closure to the users of the second target server.

[0076] According to an embodiment of the present disclosure, when the system blocks the data port of the server, a silent period can be set. The silent period has a preset time range, and the duration of the silent period can be freely set by the operation and maintenance personnel.

[0077] According to an embodiment of the present disclosure, during the silent period, if the user of the second target server does not give feedback information indicating the need to lift the ban on the data port, it can be determined that the offline of the second target server has no impact on the user and it can be safely taken offline. Subsequently, a request to take the second target server offline can be submitted to the recycling personnel for review in the form of a work order. After the recycling personnel approve the review, the system can transfer the management authority of the second target server to the recycling personnel, and the recycling personnel can perform subsequent operations to shut down the server.

[0078] According to an embodiment of the present disclosure, in the case where the user of the second target server requests to lift the ban, or the recycling personnel do not pass the review of the work order, the system can terminate the operation of taking the server offline and lift the ban on the data port of the server, so that the server can roll back to the operating state before the data port was closed.

[0079] According to an embodiment of the present disclosure, when the system performs a server rollback operation, it can be carried out by sending an iptable command to the specified server through the unified management service.

[0080] According to an embodiment of the present disclosure, all requests or instructions sent by the operation and maintenance personnel, server users, and recycling personnel can be written into the database and stored in the form of a log file, so that after the server status is changed and when there are operation problems with the online service, the cause of the operation problem can be determined through the log file and the operation problem can be solved thereby.

[0081] Figure 4 Schematically shows a structural diagram of a server control system according to another embodiment of the present disclosure.

[0082] As Figure 4 shown, each user in the user group 401 can access the control system 403 through the communication link 402.

[0083] The control system 403 includes a storage module 4031, a monitoring module 4032, a work order module 4033, a port operation module 4034, and a log module 4035.

[0084] Among them, the storage module 4031 can store information such as the operation and maintenance group, offline status, operation logs, etc.; the monitoring module 4032 can obtain monitoring information by adding commands to the command execution queue 405 through the peripheral system 404; the work order module 4033 can generate a work order sent to the recycling personnel for approval; the port operation module 4034 can add a ban or lift ban command to the command execution queue 405 according to the instructions of the operation and maintenance personnel in the user group 401; the log module 4035 can record the operations sent in the control system 403 and store them in the storage module 4031.

[0085] The peripheral system 404 may include a Domain Name System, a monitoring and acquisition system, and a monitoring information display system, which can obtain the monitoring information and domain name information of the server, return this information to the monitoring model 4032, and can also display the information in the monitoring module 4032 to each user in the user group 401.

[0086] The command execution queue 405 can establish a communication connection with the server management platform 406 through the communication link 402, and sequentially execute the received commands for the servers under the server management platform 406.

[0087] Figure 5 A block diagram of a server control device according to an embodiment of the present disclosure is schematically shown.

[0088] As Figure 5 shown, the server control device includes a first acquisition module 510, a first determination module 520, a second acquisition module 530, a second determination module 540, and a control module 550.

[0089] The first acquisition module 510 is configured to obtain a server list according to the identity information of the operation and maintenance personnel.

[0090] The first determination module 520 is configured to determine a first target server in response to a batch selection operation of the operation and maintenance personnel for the servers in the server list.

[0091] The second acquisition module 530 is configured to obtain the running information of the first target server.

[0092] The second determination module 540 is configured to determine a second target server based on the running information of the first target server.

[0093] The control module 550 is configured to control the running state of the second target server in response to a control instruction.

[0094] According to an embodiment of the present disclosure, in the operation and maintenance service, the operation and maintenance personnel can manage multiple servers. After receiving the operation of the operation and maintenance personnel to batch select servers, the first target server to be controlled can be determined; then, according to the running information of the first target server, the second target server that can be controlled can be determined; in response to the control instruction of the person with the server management authority, the running state of the second target server can be controlled. Through the above technical means, the automatic discrimination of controllable servers and the batch control of servers are realized, at least partially overcoming the technical problem of incorrect server offline caused by server information omission or human judgment error, effectively reducing the operation and maintenance cost, and improving the operation and maintenance operation efficiency.

[0095] According to an embodiment of the present disclosure, the first acquisition module 510 includes a first acquisition unit, a second acquisition unit, and a third acquisition unit.

[0096] A first acquisition unit, configured to determine the management authority of an operation and maintenance personnel according to the identity information of the operation and maintenance personnel.

[0097] A second acquisition unit, configured to acquire the identification information of a third target server corresponding to the management authority from a database.

[0098] A third acquisition unit, configured to construct a server list based on the identification information of all third target servers.

[0099] According to an embodiment of the present disclosure, the operation information of the first target server includes monitoring information, domain name binding information, scheduled task information, and non-system process information.

[0100] According to an embodiment of the present disclosure, the second determination module 530 includes a fourth acquisition unit and a fifth acquisition unit.

[0101] The fourth acquisition unit is configured to acquire the domain name binding information and monitoring information of the first target server from an information collection system, where the monitoring information includes at least the processor working frequency, the memory size, and the network import and export traffic.

[0102] The fifth acquisition unit is configured to sequentially run each instruction in the instruction queue to acquire the scheduled task information and non-system process information of the first target server, where the instruction queue includes a scheduled task query instruction and a non-system process query instruction for each first target server.

[0103] According to an embodiment of the present disclosure, the second determination module 540 is further configured to determine that the first target server is a second target server when all of the following conditions are met: the domain name binding information of the first target server shows no bound domain name; the processor working frequency of the first target server is lower than a first preset threshold, or the memory size of the first target server is lower than a second preset threshold, or the network import and export traffic of the first target server is lower than a third preset threshold; the scheduled task information of the first target server shows no scheduled tasks; the non-system process information of the first target server shows no non-system processes.

[0104] According to an embodiment of the present disclosure, the control instruction includes a closing instruction for the operation and maintenance personnel and a logging-off instruction for the recycling personnel.

[0105] According to an embodiment of the present disclosure, the control module 550 includes a first control unit, a second control unit, a third control unit, a fourth control unit, and a fifth control unit.

[0106] The first control unit is configured to close the data port of the second target server in response to the closing instruction of the operation and maintenance personnel.

[0107] The second control unit is used to send a notification of data port closure to a user of the second target server.

[0108] The third control unit is used to send a work order for taking the second target server offline to the recycling personnel if no request for unblocking the data port is received from the user within a preset time range.

[0109] The fourth control unit is used to transfer the management authority of the second target server to the recycling personnel in response to the recycling personnel approving the work order.

[0110] The fifth control unit is used to control the second target server to go offline in response to the offline instruction of the recycling personnel.

[0111] According to an embodiment of the present disclosure, the control instruction also includes a rollback instruction from the operation and maintenance personnel.

[0112] The control module 550 further includes a sixth control unit and a seventh control unit.

[0113] The sixth control unit is used to send feedback information to the operation and maintenance personnel to terminate the offline process of the second target server when a request to unblock the data port is received from the user within a preset time range, or in response to the recycling personnel not approving the work order.

[0114] The seventh control unit is used to respond to the rollback instruction of the operation and maintenance personnel and unblock the data port of the second target server so that the second target server rolls back to the operating state before the data port is blocked.

[0115] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.

[0116] For example, any combination of the first acquisition module 510, the first determination module 520, the second acquisition module 530, the second determination module 540, and the control module 550 can be combined and implemented in one module / unit / sub-unit, or any one of the modules / units / sub-units can be split into multiple modules / units / sub-units. Alternatively, at least part of the functions of one or more of these modules / units / sub-units can be combined with at least part of the functions of other modules / units / sub-units and implemented in one module / unit / sub-unit. According to an embodiment of the present disclosure, at least one of the first acquisition module 510, the first determination module 520, the second acquisition module 530, the second determination module 540, and the control module 550 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on chip, a system on substrate, a system on package, an application specific integrated circuit (ASIC), or can be implemented by any other reasonable means of integrating or packaging circuits, etc., in hardware or firmware, or can be implemented in any one of the three implementation manners of software, hardware, and firmware, or in an appropriate combination of any several of them. Alternatively, at least one of the first acquisition module 510, the first determination module 520, the second acquisition module 530, the second determination module 540, and the control module 550 can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding functions can be executed.

[0117] It should be noted that the server control device part in the embodiments of the present disclosure corresponds to the server control method part in the embodiments of the present disclosure. For the description of the server control device part, please refer to the server control method part specifically, and details will not be repeated here.

[0118] Figure 6 The block diagram of an electronic device suitable for implementing the server control method according to an embodiment of the present disclosure is schematically shown. Figure 6 The electronic device shown is only an example and should not impose any limitation on the functions and usage scope of the embodiments of the present disclosure.

[0119] Such as Figure 6As shown, the computer electronic device 600 according to an embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage section 608 into a random access memory (RAM) 603. The processor 601 can include, for example, a general microprocessor (such as a CPU), an instruction set processor, and / or a related chipset, and / or a dedicated microprocessor (such as an application-specific integrated circuit (ASIC)), and so on. The processor 601 can also include on-board memory for caching purposes. The processor 601 can include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0120] In the RAM 603, various programs and data required for the operation of the electronic device 600 are stored. The processor 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. The processor 601 performs various operations of the method flow according to an embodiment of the present disclosure by executing the program in the ROM 602 and / or the RAM 603. It should be noted that the program can also be stored in one or more memories other than the ROM 602 and the RAM 603. The processor 601 can also perform various operations of the method flow according to an embodiment of the present disclosure by executing the program stored in the one or more memories.

[0121] According to an embodiment of the present disclosure, the electronic device 600 can further include an input / output (I / O) interface 605, and the input / output (I / O) interface 605 is also connected to the bus 604. The electronic device 600 can further include one or more of the following components connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including, for example, a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed so that a computer program read from it can be installed into the storage section 608 as needed.

[0122] According to an embodiment of the present disclosure, the method flow according to the embodiments of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program includes program codes for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the processor 601, the above functions defined in the system of the embodiments of the present disclosure are executed. According to an embodiment of the present disclosure, the above-described systems, devices, apparatuses, modules, units, etc. can be implemented by computer program modules.

[0123] The present disclosure also provides a computer-readable storage medium, which can be included in the device / device / system described in the above embodiments; or can exist separately without being assembled into the device / device / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiments of the present disclosure is implemented.

[0124] According to an embodiment of the present disclosure, the computer-readable storage medium can be a non-volatile computer-readable storage medium. For example, it can include but is not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In the present disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, device, or device.

[0125] For example, according to an embodiment of the present disclosure, the computer-readable storage medium can include the above-described ROM 602 and / or RAM 603 and / or one or more memories other than ROM 602 and RAM 603.

[0126] An embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program includes program codes for executing the method provided by the embodiments of the present disclosure. When the computer program product runs on an electronic device, the program codes are used to enable the electronic device to implement the server control method provided by the embodiments of the present disclosure.

[0127] When the computer program is executed by the processor 601, the above functions defined in the system / device of the embodiments of the present disclosure are executed. According to an embodiment of the present disclosure, the above-described systems, devices, modules, units, etc. can be implemented by computer program modules.

[0128] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices and magnetic storage devices. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 609, and / or installed from the removable medium 611. The program code included in the computer program may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0129] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiments of the present disclosure may be written in any combination of one or more programming languages. Specifically, these computing programs may be implemented using high-level procedures and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include but are not limited to, such as Java, C++, Python, the "C" language, or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (for example, by using an Internet service provider to connect through the Internet).

[0130] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a portion of code, which contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions noted in the blocks may occur in a different order than noted in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and combinations of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions. Those skilled in the art will understand that the features recited in the various embodiments and / or claims of the present disclosure can be combined and / or combined in various ways, even if such combinations or combinations are not explicitly recited in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features recited in the various embodiments and / or claims of the present disclosure can be combined and / or combined in various ways. All such combinations and / or combinations fall within the scope of the present disclosure.

[0131] The embodiments of the present disclosure have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments have been described separately above, this does not mean that the measures in the respective embodiments cannot be used advantageously in combination. The scope of the present disclosure is defined by the appended claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art can make various substitutions and modifications, and all such substitutions and modifications should fall within the scope of the present disclosure.

Claims

1. A server control method, comprising: Obtain the server list based on the identity information of the operation and maintenance personnel; In response to a batch selection operation by the operation and maintenance personnel on servers in the server list, determining a first target server; Obtaining operation information of the first target server, wherein the operation information of the first target server includes monitoring information, domain name binding information, scheduled task information, and non-system process information, and the monitoring information includes at least processor operating frequency, memory size, and network import and export traffic; Determining the second target server based on the running information of the first target server includes: determining the first target server as the second target server when all of the following conditions are met: the domain name binding information of the first target server shows that there is no bound domain name; the operating frequency of the processor of the first target server is lower than a first preset threshold, or the memory size of the first target server is lower than a second preset threshold, or the network import and export traffic of the first target server is lower than a third preset threshold; the scheduled task information of the first target server shows that there is no scheduled task; the non-system process information of the first target server shows that there is no non-system process; and In response to the control instructions including the closing instruction of the operation and maintenance personnel and the offline instruction of the recycling personnel, controlling the operation state of the second target server includes: In response to a closing instruction from the operation and maintenance personnel, closing a data port of the second target server; Sending a notification of data port closure to a user of the second target server; If no request for unblocking the data port is received from the user within a preset time range, sending a work order for deactivating the second target server to the recycling personnel; In response to the recycling personnel approving the work order, transferring the management authority of the second target server to the recycling personnel; and In response to the offline instruction of the recycling personnel, the second target server is controlled to go offline.

2. The method according to claim 1, wherein, The step of obtaining a server list according to the identity information of the operation and maintenance personnel includes: Determining the management authority of the operation and maintenance personnel according to the identity information of the operation and maintenance personnel; Acquire identification information of a third target server corresponding to the management authority from a database; and The server list is constructed based on the identification information of all the third target servers.

3. The method according to claim 1, wherein, The obtaining the operation information of the first target server includes: Acquire domain name binding information and monitoring information of the first target server from the information collection system; The instructions in the instruction queue are sequentially executed to obtain the scheduled task information and non-system process information of the first target server, wherein the instruction queue includes a scheduled task query instruction and a non-system process query instruction for each of the first target servers.

4. The method according to claim 1, wherein, The control instructions also include rollback instructions from the operation and maintenance personnel; The method further comprises: In the case of receiving a request from the user to unblock the data port within a preset time range, or in response to the recovery personnel not approving the work order, sending feedback information to the operation and maintenance personnel to terminate the offline process of the second target server; and In response to the rollback instruction of the operation and maintenance personnel, the data port of the second target server is unblocked, so that the second target server is rolled back to the running state before the data port is blocked.

5. A server control device, comprising: The first acquisition module is used to obtain a server list according to the identity information of the operation and maintenance personnel; A first determination module, configured to determine a first target server in response to a batch selection operation of the operation and maintenance personnel on the servers in the server list; A second acquisition module is used to acquire the operation information of the first target server, wherein the operation information of the first target server includes monitoring information, domain name binding information, scheduled task information and non-system process information, and the monitoring information includes at least processor operating frequency, memory size and network import and export traffic; a second determination module, configured to determine a second target server based on the operation information of the first target server, the second determination module further configured to determine that the first target server is the second target server when the following conditions are all met: the domain name binding information of the first target server shows that there is no bound domain name; the operating frequency of the processor of the first target server is lower than a first preset threshold, or the memory size of the first target server is lower than a second preset threshold, or the network import and export traffic of the first target server is lower than a third preset threshold; the scheduled task information of the first target server shows that there is no scheduled task; the non-system process information of the first target server shows that there is no non-system process; and A control module, used to control the operating state of the second target server in response to a control instruction, wherein the control instruction includes a closing instruction of the operation and maintenance personnel and an offline instruction of the recycling personnel, and the control module includes: A first control unit, configured to close a data port of the second target server in response to a closing instruction from the operation and maintenance personnel; A second control unit, used for sending a notification of data port closure to a user of the second target server; A third control unit is configured to send a work order for offline the second target server to the recycling personnel if no request for unblocking the data port is received from the user within a preset time range; a fourth control unit, configured to transfer the management authority of the second target server to the recycling personnel in response to the recycling personnel approving the work order; and The fifth control unit is used to control the second target server to go offline in response to the offline instruction of the recycling personnel.

6. An electronic device, comprising: one or more processors; a memory for storing one or more instructions, Wherein, when the one or more instructions are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 4.

7. A computer-readable storage medium having executable instructions stored thereon, and when the executable instructions are executed by a processor, the processor implements the method according to any one of claims 1 to 4.

8. A computer program product, the computer program product including computer-executable instructions, and the computer-executable instructions are used to implement the method according to any one of claims 1 to 4 when being executed.

Citation Information

Patent Citations

  • Operation and maintenance method and device of server cluster, electronic equipment and storage medium

    CN109861842A

  • Operation and maintenance system, operation and maintenance method, electronic equipment and storage medium

    CN111526049A