Server operation and maintenance method and device, electronic equipment and storage medium
Patent Information
- Application Number
- CN202411154554.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-12-31
AI Technical Summary
In server clusters, the asymmetry of software and hardware operation and maintenance information causes slow response from operation and maintenance personnel, making it difficult to quickly locate and deal with abnormal problems.
By obtaining the software load information and hardware load information of the server cluster, calculating the comprehensive load information, filtering out abnormal states, determining the target operation and maintenance policy, and executing the corresponding policies in the controller and the server to handle the abnormal states simultaneously.
It improves the response speed and processing speed of abnormal states, maximizes the utilization of server resources, reduces energy consumption, and realizes the comprehensive operation and maintenance of hardware and software states.
Smart Images

Figure CN119232550A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of servers, and in particular to a server operation and maintenance method, device, electronic equipment and storage medium. Background Art
[0002] The operation and maintenance of the server is mainly divided into the server's software operation and maintenance and the server's hardware status monitoring operation and maintenance. Among them, software operation and maintenance mainly focuses on the server's resource scheduling and other situations, balancing the server's resources with the needs of the user end; hardware operation and maintenance mainly focuses on the server's hardware environment and whether the hardware of each part is working normally.
[0003] With the establishment and centralization of server networks, operation and maintenance are generally carried out through remote operation and maintenance. Operation and maintenance personnel query and maintain the status of all servers through remote terminals. Usually, the software running on the server does not provide the operating status information of the server system hardware, and the operation and maintenance personnel need to query and maintain the hardware operation and maintenance information. Therefore, server maintenance is usually separated from software and hardware, and the information of the two is not synchronized. In computing centers with increasingly large server clusters, occasional problems make the operation and maintenance of server clusters and problem analysis and location more difficult, and the response of operation and maintenance personnel is slower. Summary of the invention
[0004] In view of the above problems, embodiments of the present invention are proposed to provide a server operation and maintenance method, device, electronic device and storage medium that overcome the above problems or at least partially solve the above problems.
[0005] In a first aspect, an embodiment of the present invention discloses a server operation and maintenance method, which is applied to a server in the operation and maintenance of the server, and the method includes:
[0006] Obtain software load information and hardware load information of each server in the server cluster;
[0007] Determine first comprehensive load information of each server based on the software load information and the hardware load information of each server, and a first target server in an abnormal state;
[0008] Determining a target operation and maintenance strategy for handling the abnormal state based on the target comprehensive load information of the first target server; the target operation and maintenance strategy includes a controller strategy executed in the controller and a server strategy executed in the server;
[0009] The target operation and maintenance policy is sent to the target controller corresponding to the second target server so that the target controller executes the corresponding controller policy, and the corresponding server policy is sent to the corresponding second target server so that the second target server executes the corresponding server policy; the second target server includes at least the first target server.
[0010] Optionally, each server has a corresponding controller, and the obtaining of software load information and hardware load information of each server in the server cluster includes:
[0011] The software load information and hardware load information of each server are obtained through the controller corresponding to each server.
[0012] Optionally, the determining the first comprehensive load information of each server and the first target server in an abnormal state based on the software load information and the hardware load information of each server includes:
[0013] Filtering the abnormal information in the software load information and the hardware load information based on a preset filtering rule to obtain software load abnormality information and hardware load abnormality information;
[0014] Determine the server corresponding to the software load abnormality information and the hardware load abnormality information as the first target server;
[0015] The first comprehensive load information of each server is calculated based on the software load information and the hardware load information of each server.
[0016] Optionally, the determining a target operation and maintenance strategy for handling the abnormal state based on the target comprehensive load information of the first target server includes:
[0017] Matching the target comprehensive load information with the comprehensive load information in an operation and maintenance strategy set; the operation and maintenance strategy set includes at least one operation and maintenance strategy and the comprehensive load information corresponding to each operation and maintenance strategy;
[0018] If there is a matching item, the operation and maintenance strategy corresponding to the matching item is determined as the target operation and maintenance strategy.
[0019] Optionally, the controller policy includes at least one controller sub-policy, the server policy includes at least one server sub-policy, and the number of the controller sub-policies, the number of the server sub-policies and the number of the second target servers are the same;
[0020] The sending of the target operation and maintenance strategy to a target controller corresponding to the second target server so that the target controller executes the corresponding controller strategy, and sending the corresponding server strategy to the corresponding second target server so that the second target server executes the corresponding server strategy, includes:
[0021] Sending each controller sub-strategy in the target operation and maintenance strategy to each target controller so that each target controller executes the corresponding controller sub-strategy;
[0022] Detecting whether the abnormal state exists;
[0023] If so, each server sub-policy is sent to the second target server corresponding to each target controller, so that each second target server executes the corresponding server sub-policy.
[0024] Optionally, also include:
[0025] Acquire second comprehensive load information from the first comprehensive load information; the second comprehensive load information is comprehensive load information of other servers in the same area as the first target server;
[0026] Generate an operation and maintenance report based on the comprehensive load information of the first target server and the second comprehensive load information Generate an operation and maintenance report based on the comprehensive load information of the first target server and the second comprehensive load information.
[0027] In a second aspect, an embodiment of the present invention discloses an operation and maintenance device for a server, the device comprising:
[0028] An acquisition module is used to acquire software load information and hardware load information of each server in the server cluster;
[0029] A first determination module, configured to determine first comprehensive load information of each server and a first target server in an abnormal state based on the software load information and the hardware load information of each server;
[0030] A second determination module is used to determine a target operation and maintenance strategy for processing the abnormal state based on the target comprehensive load information of the first target server; the target operation and maintenance strategy includes a controller strategy executed in the controller and a server strategy executed in the server;
[0031] A sending module is used to send the target operation and maintenance strategy to the target controller corresponding to the second target server so that the target controller executes the corresponding controller strategy, and send the corresponding server strategy to the corresponding second target server so that the second target server executes the corresponding server strategy; the second target server at least includes the first target server.
[0032] In a third aspect, the present invention further discloses an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the steps of the server operation and maintenance method as described above when executed by the processor.
[0033] In a fourth aspect, the present invention further discloses a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the server operation and maintenance method as described above are implemented.
[0034] The embodiments of the present invention include the following advantages:
[0035] The operation and maintenance host obtains the software load information and hardware load information of each server in the server cluster, determines the first comprehensive load information of each server based on the software load information and the hardware load information of each server, and the first target server with an abnormal state, and determines the target operation and maintenance strategy for handling the abnormal state based on the target comprehensive load information of the first target server; the target operation and maintenance strategy includes the controller strategy executed in the controller, and the server strategy executed in the server; the target operation and maintenance strategy is sent to the target controller corresponding to the second target server, so that the target controller executes the corresponding controller strategy, and the corresponding server strategy is sent to the corresponding second target server, so that the second target server executes the corresponding server strategy; the second target server at least includes the first target server. In this way, the hardware load information of the server is obtained through the controller, and the software load information is associated with the hardware load information to calculate the comprehensive load information, so as to compare and comprehensively analyze the server cluster and the server monomer, quickly locate the problem and determine the cause of the problem. Then, by matching the comprehensive load information with abnormalities with the operation and maintenance strategy set, the target operation and maintenance strategy for solving the abnormal information can be quickly determined, and different operation and maintenance strategies can be issued to the server and controller to maximize the resource utilization of the server cluster and minimize energy consumption. At the same time, the status of hardware and software is comprehensively considered to make the most suitable processing solution for server operation and maintenance, thereby improving the response speed and processing speed of abnormal conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1It is a flow chart of the steps of a server operation and maintenance method provided by an embodiment of the present invention;
[0037] Figure 2 It is a structural diagram of an operation and maintenance host and a server cluster provided by an embodiment of the present invention;
[0038] Figure 3 It is a flowchart of another method for operating and maintaining a server provided by an embodiment of the present invention;
[0039] Figure 4 is a structural block diagram of an electronic device provided by an embodiment of the present invention;
[0040] Figure 5 It is a structural block diagram of a computer-readable storage medium provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0041] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0042] like Figure 1 , shows a flow chart of the steps of a server operation and maintenance method provided by an embodiment of the present invention, which is applied to an operation and maintenance host. The operation and maintenance host can operate and maintain each server in a server cluster. The structure of the operation and maintenance host and the server cluster is as follows Figure 2 As shown, each server has a one-to-one corresponding controller, and the controller can obtain software load information and hardware load information from the server. Each controller exchanges data with the operation and maintenance host through the network.
[0043] Furthermore, one controller may correspond to one server or multiple servers, for example, controller A corresponds to server A, controller B corresponds to server B, and controller C corresponds to servers C to N. In practical applications, the specific number of servers corresponding to one controller may be set according to actual needs, and the embodiment of the present invention does not limit this.
[0044] Furthermore, each controller can be connected to the network through EMAC (Ethernet Media Access Controller), and thus connected to the operation and maintenance host. Of course, it can also be connected to the network in other ways. In practical applications, the specific connection method can be set according to actual needs, and the embodiment of the present invention does not limit this.
[0045] The method may include the following steps:
[0046] Step 101: Obtain software load information and hardware load information of each server in the server cluster.
[0047] During operation, the operation and maintenance host can obtain the software load information and hardware load information of each server in the server cluster in real time. The software load information is used to characterize the load of the software such as the system in the server, and the hardware load information is used to characterize the load of the hardware in the server.
[0048] In one embodiment, the obtaining of software load information and hardware load information of each server in the server cluster includes:
[0049] The software load information and hardware load information of each server are obtained through the controller corresponding to each server.
[0050] Specifically, since each server has a one-to-one corresponding controller, each controller can obtain the software load information and hardware load information of the corresponding server, and then summarize the software load information and hardware load information and send them to the operation and maintenance host. In this way, the hardware load information of the server is obtained through the controller, and the software load information is associated with the hardware load information, so that in subsequent operation and maintenance, the server cluster and the server single body can be compared and comprehensively analyzed, and the problem can be located and the cause of the problem can be determined more quickly.
[0051] Step 102: determining first comprehensive load information of each server and a first target server in an abnormal state based on the software load information and the hardware load information of each server.
[0052] After obtaining the software load information and hardware load information of each server, the operation and maintenance host can determine the server with abnormal status based on the software load information and hardware load information (recorded as the "first target server" for the convenience of partitioning), and can calculate the comprehensive load information of each server based on the software load information and hardware load information (recorded as the "first comprehensive load information").
[0053] It should be noted that after the server is detected based on the software load information and the hardware load information, the server may not be in an abnormal state, that is, it is in a normal state. In this case, no subsequent processing is required.
[0054] In one embodiment, the determining the first comprehensive load information of each server and the first target server in an abnormal state based on the software load information and the hardware load information of each server includes:
[0055] Filtering the abnormal information in the software load information and the hardware load information based on a preset filtering rule to obtain software load abnormality information and hardware load abnormality information;
[0056] Determine the server corresponding to the software load abnormality information and the hardware load abnormality information as the first target server;
[0057] The first comprehensive load information of each server is calculated based on the software load information and the hardware load information of each server.
[0058] Specifically, after obtaining the software load information and the hardware load information, the operation and maintenance host can filter the abnormal information according to the preset filtering rules. For example, the filtering rule is to filter out the temperature data that is higher than the temperature threshold, thereby obtaining the software load abnormal information and the hardware load abnormal information. Of course, in actual applications, it is also possible to obtain one of the software load abnormal information and the hardware load abnormal information after filtering.
[0059] After the software load anomaly information and the hardware load anomaly information are screened, the server with the software load anomaly information and the hardware load anomaly information can be used as the first target server. The number of the first target servers can be one or more.
[0060] At the same time, the first comprehensive load information of each server may be calculated using the software load information and hardware load information corresponding to each server. The calculation method may be as follows:
[0061] L total =αL+βS-γC
[0062] Among them, α is the weight coefficient of software load, which is used to reflect the proportion of software load in the comprehensive load; L is the load condition of the software class; β is the environmental weight coefficient; S is the environmental parameter, including hardware information of the server in the current state such as temperature, voltage, current, etc., which represents the environmental state of the server; γ is the control weight coefficient; C is the influence of the control quantity that the server / controller can use to control, such as fan speed, voltage, current and other power control quantities, which represents the mechanism and action ability that the server can improve by itself.
[0063] In this way, the hardware load information of the server is obtained through the controller, and the software load information is associated with the hardware load information to calculate the comprehensive load information, so that in subsequent operation and maintenance, the server cluster and server single body can be compared and comprehensively analyzed, and the problem can be located and the cause of the problem can be determined more quickly.
[0064] Step 103, determining a target operation and maintenance strategy for handling the abnormal state based on the target comprehensive load information of the first target server; the target operation and maintenance strategy includes a controller strategy executed in the controller and a server strategy executed in the server.
[0065] After determining the first target server, the operation and maintenance host can determine an operation and maintenance strategy (referred to as "target operation and maintenance strategy") based on the comprehensive load information of the first target server (referred to as "target comprehensive load information"), and the target operation and maintenance strategy is used to handle abnormal conditions in the first target server. Among them, the target operation and maintenance strategy may include a strategy executed in the controller corresponding to the first target server (referred to as "controller strategy"), and a strategy executed in the first target server (referred to as "server strategy"). Since the controller can control the hardware of the server and the server can control its own software, the first target server can process software load abnormality information by executing the server strategy, and the controller corresponding to the first target server can process hardware load abnormality information of the first target server.
[0066] In one embodiment, determining a target operation and maintenance strategy for handling the abnormal state based on the target comprehensive load information of the first target server includes:
[0067] Matching the target comprehensive load information with the comprehensive load information in an operation and maintenance strategy set; the operation and maintenance strategy set includes at least one operation and maintenance strategy and the comprehensive load information corresponding to each operation and maintenance strategy;
[0068] If there is a matching item, the operation and maintenance strategy corresponding to the matching item is determined as the target operation and maintenance strategy.
[0069] Specifically, an operation and maintenance strategy set can be pre-set, and the operation and maintenance strategy set can include at least one operation and maintenance strategy, wherein each operation and maintenance strategy has at least one corresponding comprehensive load information. In this way, after obtaining the target comprehensive load information of the first target server, the target comprehensive load information can be matched with the comprehensive load information in the operation and maintenance strategy set. If there is a match, the operation and maintenance strategy corresponding to the match can be determined as the target operation and maintenance strategy. In this way, by matching the abnormal comprehensive load information with the operation and maintenance strategy set, the target operation and maintenance strategy for solving the abnormal information can be quickly determined, thereby improving the operation and maintenance efficiency.
[0070] Step 104, sending the target operation and maintenance policy to the target controller corresponding to the second target server so that the target controller executes the corresponding controller policy, and sending the corresponding server policy to the corresponding second target server so that the second target server executes the corresponding server policy; the second target server includes at least the first target server.
[0071] After the operation and maintenance host determines the target operation and maintenance strategy, it can send the target operation and maintenance strategy to the controller (referred to as the "target controller") corresponding to the server that needs to execute the target operation and maintenance strategy (referred to as the "second target server"), and the controller can execute the corresponding controller strategy, and send the server strategy in the target operation and maintenance strategy to the corresponding second target server, and the second target server executes the server strategy.
[0072] Among them, since the target operation and maintenance strategy may not only need to be executed by the first target server, but may also need to be executed by other servers, the second target server at least includes the first target server. In other words, the second target server may include the first target server and other servers, or the second target server may be the same as the first target server.
[0073] In one embodiment, the controller policy includes at least one controller sub-policy, the server policy includes at least one server sub-policy, and the number of the controller sub-policies, the number of the server sub-policies and the number of the second target servers are the same;
[0074] The sending of the target operation and maintenance strategy to a target controller corresponding to the second target server so that the target controller executes the corresponding controller strategy, and sending the corresponding server strategy to the corresponding second target server so that the second target server executes the corresponding server strategy, includes:
[0075] Sending each controller sub-strategy in the target operation and maintenance strategy to each target controller so that each target controller executes the corresponding controller sub-strategy;
[0076] Detecting whether the abnormal state exists;
[0077] If so, each server sub-policy is sent to the second target server corresponding to each target controller, so that each second target server executes the corresponding server sub-policy.
[0078] Specifically, as mentioned above, since there may be more than one controller and server executing the target operation and maintenance strategy, in this case, the operation and maintenance strategies executed by different controllers are different, and the operation and maintenance strategies executed by each server are also different. Therefore, the controller policy includes at least one controller sub-strategy, and correspondingly, the server policy also includes at least one server sub-strategy. The number of controller sub-policies and the number of server sub-policies are the same as the number of the second target servers.
[0079] For example, if the processor load of server A is too high, and the processor loads of servers B and C are low, then the processor load of server A can be reduced, while the processor loads of servers B and C can be increased. Then, server A is the first target server, and servers A, B, and C are the second target servers. The controllers corresponding to servers A, B, and C are the target controllers, and the number of controller sub-policies and server sub-policies are both 3.
[0080] After determining the target operation and maintenance strategy, the operation and maintenance host can send each controller sub-strategy in the target operation and maintenance strategy to each target controller, so that each target controller executes the corresponding controller sub-strategy.
[0081] After each target controller executes the corresponding controller sub-strategy, it can detect whether the first target server is still in an abnormal state. If it is, each server sub-strategy can be sent to each second target server through the corresponding target controller, so that each second target server executes the corresponding server sub-strategy.
[0082] Of course, before sending each server sub-policy to the second target server corresponding to each target controller, it is also possible not to detect whether the abnormal state exists. In other words, each server sub-policy can be directly sent to each second target server through the corresponding target controller, so that each second target server executes the corresponding server sub-policy. In practical applications, whether it is necessary to detect the abnormal state can be adjusted according to actual needs, and the embodiment of the present invention does not limit this. In this way, the operation and maintenance host sends different operation and maintenance policies to the server and controller, and handles the abnormal state from both software and hardware aspects, thereby improving the response speed and processing speed of the abnormal state.
[0083] In an embodiment of the present invention, the operation and maintenance host obtains the software load information and hardware load information of each server in the server cluster, determines the first comprehensive load information of each server based on the software load information and the hardware load information of each server, and the first target server with an abnormal state, and determines the target operation and maintenance strategy for processing the abnormal state based on the target comprehensive load information of the first target server; the target operation and maintenance strategy includes the controller strategy executed in the controller, and the server strategy executed in the server; the target operation and maintenance strategy is sent to the target controller corresponding to the second target server, so that the target controller executes the corresponding controller strategy, and the corresponding server strategy is sent to the corresponding second target server, so that the second target server executes the corresponding server strategy; the second target server at least includes the first target server. In this way, the hardware load information of the server is obtained through the controller, and the software load information is associated with the hardware load information to calculate the comprehensive load information, so as to compare and comprehensively analyze the server cluster and the server monomer, and quickly locate the problem and determine the cause of the problem. Then, by matching the comprehensive load information with abnormalities with the operation and maintenance strategy set, the target operation and maintenance strategy for solving the abnormal information can be quickly determined, and different operation and maintenance strategies can be issued to the server and controller to maximize the resource utilization of the server cluster and minimize energy consumption. At the same time, the status of hardware and software is comprehensively considered to make the most suitable processing solution for server operation and maintenance, thereby improving the response speed and processing speed of abnormal conditions.
[0084] like Figure 3 , shows a flowchart of another server operation and maintenance method provided by an embodiment of the present invention, the method may include the following steps:
[0085] Step 301, obtaining software load information and hardware load information of each server in the server cluster;
[0086] Step 302, determining first comprehensive load information of each server and a first target server in an abnormal state based on the software load information and the hardware load information of each server;
[0087] Step 303: determining a target operation and maintenance strategy for processing the abnormal state based on the target comprehensive load information of the first target server; the target operation and maintenance strategy includes a controller strategy executed in the controller and a server strategy executed in the server;
[0088] Step 304, sending the target operation and maintenance policy to the target controller corresponding to the second target server so that the target controller executes the corresponding controller policy, and sending the corresponding server policy to the corresponding second target server so that the second target server executes the corresponding server policy; the second target server includes at least the first target server.
[0089] Among them, steps 301 to 304 are substantially the same as steps 101 to 104, and will not be described here for avoiding repetition.
[0090] Step 305: acquiring second comprehensive load information from the first comprehensive load information; the second comprehensive load information is comprehensive load information of other servers in the same area as the first target server;
[0091] Step 306: Generate an operation and maintenance report based on the comprehensive load information of the first target server and the second comprehensive load information.
[0092] Specifically, after obtaining the first comprehensive load information of each server, the operation and maintenance host can select the comprehensive load information of some servers from the first comprehensive load information (recorded as "second comprehensive load information"), where the servers corresponding to the second comprehensive load information are in the same area as the first target server, and the number of second comprehensive load information can be one or more.
[0093] After obtaining the second comprehensive load information, the operation and maintenance host can generate an operation and maintenance report based on the comprehensive load information of the first target server and the second comprehensive load information. For example, server A (the first target server) is in an abnormal state. According to the comprehensive load information of server A, it is determined that the temperature of server A exceeds the temperature threshold. Servers B, C, and D are in the same cabinet as server A. Therefore, the comprehensive load information of servers B, C, and D is obtained to determine that the temperature of servers B, C, and D is close to the temperature threshold. Then, according to the comprehensive load information of servers A, B, C, and D, it can be determined that the cause of the abnormal state is an air conditioning failure. Therefore, an operation and maintenance report is generated based on the air conditioning failure.
[0094] In this way, after obtaining the comprehensive load information of the server in the abnormal state, we can further obtain the comprehensive load information of other servers in the same area. Combining the comprehensive load information of the server in the abnormal state with the comprehensive load information of other servers can more accurately locate the problem and determine the cause of the problem, and generate an operation and maintenance report, further improving the response speed and processing speed of the abnormal state.
[0095] The present invention also provides an operation and maintenance device for a server, the device comprising:
[0096] An acquisition module is used to acquire software load information and hardware load information of each server in the server cluster;
[0097] A first determination module, configured to determine first comprehensive load information of each server and a first target server in an abnormal state based on the software load information and the hardware load information of each server;
[0098] A second determination module is used to determine a target operation and maintenance strategy for processing the abnormal state based on the target comprehensive load information of the first target server; the target operation and maintenance strategy includes a controller strategy executed in the controller and a server strategy executed in the server;
[0099] A sending module is used to send the target operation and maintenance strategy to the target controller corresponding to the second target server so that the target controller executes the corresponding controller strategy, and send the corresponding server strategy to the corresponding second target server so that the second target server executes the corresponding server strategy; the second target server at least includes the first target server.
[0100] In one embodiment, each server has a corresponding controller, and the acquisition module is specifically used to:
[0101] The software load information and hardware load information of each server are obtained through the controller corresponding to each server.
[0102] In one embodiment, the first determining module is specifically configured to:
[0103] Filtering the abnormal information in the software load information and the hardware load information based on a preset filtering rule to obtain software load abnormality information and hardware load abnormality information;
[0104] Determine the server corresponding to the software load abnormality information and the hardware load abnormality information as the first target server;
[0105] The first comprehensive load information of each server is calculated based on the software load information and the hardware load information of each server.
[0106] In one embodiment, the second determining module is specifically configured to:
[0107] Matching the target comprehensive load information with the comprehensive load information in an operation and maintenance strategy set; the operation and maintenance strategy set includes at least one operation and maintenance strategy and the comprehensive load information corresponding to each operation and maintenance strategy;
[0108] If there is a matching item, the operation and maintenance strategy corresponding to the matching item is determined as the target operation and maintenance strategy.
[0109] In one embodiment, the controller policy includes at least one controller sub-policy, the server policy includes at least one server sub-policy, and the number of the controller sub-policies, the number of the server sub-policies and the number of the second target servers are the same;
[0110] The sending module is specifically used for:
[0111] Sending each controller sub-strategy in the target operation and maintenance strategy to each target controller so that each target controller executes the corresponding controller sub-strategy;
[0112] Detecting whether the abnormal state exists;
[0113] If so, each server sub-policy is sent to the second target server corresponding to each target controller, so that each second target server executes the corresponding server sub-policy.
[0114] In one embodiment, it also includes:
[0115] The acquisition module is further configured to acquire second comprehensive load information from the first comprehensive load information; the second comprehensive load information is comprehensive load information of other servers in the same area as the first target server;
[0116] A generation module is used to generate an operation and maintenance report based on the comprehensive load information of the first target server and the second comprehensive load information.
[0117] like Figure 4 , showing a structural block diagram of an electronic device 40 provided in an embodiment of the present invention, including:
[0118] A processor 401, a memory 402, and a computer program 4021 stored in the memory 402 and capable of running on the processor 401. When the computer program 4021 is executed by the processor 401, each process of the above-mentioned server operation and maintenance method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0119] like Figure 5 , shows a structural block diagram of a computer-readable storage medium 50 provided in an embodiment of the present invention. A computer program 501 is stored on the computer-readable storage medium 50. When the computer program 501 is executed by the processor, the various processes of the above-mentioned server operation and maintenance method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0120] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0121] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0122] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0123] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0124] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0125] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0126] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0127] The above is a detailed introduction to the operation and maintenance method, device, electronic device and storage medium of a server provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in the field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A server operation and maintenance method, characterized in that: The method comprises: Obtain software load information and hardware load information of each server in the server cluster; Determine first comprehensive load information of each server based on the software load information and the hardware load information of each server, and a first target server in an abnormal state; Determining a target operation and maintenance strategy for handling the abnormal state based on the target comprehensive load information of the first target server; the target operation and maintenance strategy includes a controller strategy executed in the controller and a server strategy executed in the server; The target operation and maintenance policy is sent to the target controller corresponding to the second target server so that the target controller executes the corresponding controller policy, and the corresponding server policy is sent to the corresponding second target server so that the second target server executes the corresponding server policy; the second target server includes at least the first target server.
2. The server operation and maintenance method according to claim 1, characterized in that: Each server has a corresponding controller, and the step of obtaining software load information and hardware load information of each server in the server cluster includes: The software load information and hardware load information of each server are obtained through the controller corresponding to each server.
3. The server operation and maintenance method according to claim 1, characterized in that: The determining the first comprehensive load information of each server based on the software load information and the hardware load information of each server, and the first target server in an abnormal state, comprises: Filtering the abnormal information in the software load information and the hardware load information based on a preset filtering rule to obtain software load abnormality information and hardware load abnormality information; Determine the server corresponding to the software load abnormality information and the hardware load abnormality information as the first target server; The first comprehensive load information of each server is calculated based on the software load information and the hardware load information of each server.
4. The server operation and maintenance method according to claim 1, characterized in that: The determining, based on the target comprehensive load information of the first target server, a target operation and maintenance strategy for handling the abnormal state includes: Matching the target comprehensive load information with the comprehensive load information in an operation and maintenance strategy set; the operation and maintenance strategy set includes at least one operation and maintenance strategy and the comprehensive load information corresponding to each operation and maintenance strategy; If there is a matching item, the operation and maintenance strategy corresponding to the matching item is determined as the target operation and maintenance strategy.
5. The server operation and maintenance method according to claim 1, characterized in that: The controller policy includes at least one controller sub-policy, the server policy includes at least one server sub-policy, and the number of the controller sub-policies, the number of the server sub-policies and the number of the second target servers are the same; The target operation and maintenance strategy is sent to the target controller corresponding to the second target server so that the target controller executes the corresponding controller strategy, and the corresponding server strategy is sent to the corresponding second target server so that the second target server executes the corresponding server strategy. include: Sending each controller sub-strategy in the target operation and maintenance strategy to each target controller so that each target controller executes the corresponding controller sub-strategy; Detecting whether the abnormal state exists; If so, each server sub-policy is sent to the second target server corresponding to each target controller, so that each second target server executes the corresponding server sub-policy.
6. The server operation and maintenance method according to claim 1, characterized in that: Also includes: Acquire second comprehensive load information from the first comprehensive load information; The second comprehensive load information is comprehensive load information of other servers in the same area as the first target server; Generate an operation and maintenance report based on the comprehensive load information of the first target server and the second comprehensive load information.
7. A server operation and maintenance device, characterized in that: The device comprises: An acquisition module is used to acquire software load information and hardware load information of each server in a server cluster; a first determination module is used to determine first comprehensive load information of each server and a first target server in an abnormal state based on the software load information and the hardware load information of each server; a second determination module is used to determine a target operation and maintenance strategy for handling the abnormal state based on the target comprehensive load information of the first target server; the target operation and maintenance strategy includes a controller strategy executed in a controller and a server strategy executed in a server; A sending module is used to send the target operation and maintenance strategy to the target controller corresponding to the second target server so that the target controller executes the corresponding controller strategy, and send the corresponding server strategy to the corresponding second target server so that the second target server executes the corresponding server strategy; the second target server at least includes the first target server.
8. The server operation and maintenance method according to claim 1, characterized in that: Each server has a corresponding controller, and the acquisition module is specifically used to: The software load information and hardware load information of each server are obtained through the controller corresponding to each server.
9. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the server operation and maintenance method as described in any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the server operation and maintenance method according to any one of claims 1 to 6 are implemented.
