Server fault diagnosis method and device and related equipment
By using the fault prediction model and policy table in the server, the running data transmitted by the BMC is automatically processed for troubleshooting and repair, and the problem of lag in the fault diagnosis process in the existing technology is solved, and the efficiency of diagnosis and repair of server faults is improved.
Patent Information
- Application Number
- CN202411058585.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-11-15
AI Technical Summary
In the prior art, server fault diagnosis relies on offline participation of technicians, resulting in long-term lag in the fault diagnosis process and low fault diagnosis and repair efficiency.
By installing BMC in the server, using the fault prediction model to predict and automatically repair the fault based on the current running data transmitted by the BMC, including data such as hardware status, network connection, system logs and memory utilization, using an isolated forest model to process the data to determine the fault Location and type, and determine the repair policy based on the policy table to achieve automatic fault repair of BMC.
It significantly improves the efficiency of server fault diagnosis and repair, reduces manual intervention, realizes automated fault detection and repair, and improves the operation stability and reliability of the server.
Smart Images

Figure CN118964079A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of fault diagnosis, and in particular to a server fault diagnosis method, apparatus and related equipment. Background Art
[0002] In the prior art, as the application scale and complexity of server clusters continue to increase, higher requirements are placed on the stability and reliability of server operations.
[0003] In actual implementation, a BMC (Baseboard Management Controller) is installed in the server to monitor the operation status of the server, diagnose faults of the server, and repair faults of the server.
[0004] According to practical experience, the fault diagnosis function that BMC can achieve is very limited. It can only determine whether there are abnormalities in data such as the server's temperature, fan speed, power status and voltage. If more locations and more types of faults in the server are to be predicted, technical personnel are required to determine them offline, causing the server's fault diagnosis process to be in a state of lag for a long time, which may eventually lead to the situation where the normal operation of the server is affected due to the low efficiency of fault diagnosis. Summary of the invention
[0005] In view of this, the purpose of the present application is to provide a server fault diagnosis method, device and related equipment to solve the technical problem in the prior art that the server fault diagnosis process is in a long-term lagging state due to the need for offline participation of technical personnel.
[0006] In a first aspect, the present application provides a server fault diagnosis method, which is applied to a first server, wherein the first server establishes a connection with a second server, wherein the second server includes a baseboard management controller BMC, and the method includes:
[0007] Receiving current operation data transmitted by the BMC;
[0008] The current operation data is obtained by the BMC monitoring the operation status of the second server in the current operation cycle;
[0009] According to the current operation data, a fault prediction model is used to perform a fault prediction on the second server to obtain fault prediction information;
[0010] The fault prediction information is transmitted to the BMC, so that the BMC performs fault repair on the second server according to the fault prediction information.
[0011] Preferably, the current operation data is collected by the BMC according to a target period during the process of monitoring the operation status of the second server;
[0012] The current operation data includes at least one of hardware status information, network connection information, system log, processor usage and memory utilization of the second server.
[0013] Preferably, the performing fault prediction on the second server through a fault prediction model according to the current operation data to obtain fault prediction information includes:
[0014] According to the current operation data, the current operation data is processed by an isolation forest model to obtain the fault prediction information;
[0015] The isolation forest model is trained based on historical current operation data of the second server.
[0016] Preferably, after obtaining fault prediction information by performing fault prediction on the second server through the fault prediction model, the method further includes:
[0017] Determining the fault repair strategy in a strategy table according to the fault prediction information;
[0018] Among them, the fault repair strategy includes: restarting the BMC, switching the standby BMC, adjusting the configuration parameters of the first server or adjusting the load balancing of the first server. The strategy table records the correspondence between the fault and the fault repair strategy determined based on the fault location and fault type indicated by the fault prediction information.
[0019] Preferably, the method further comprises:
[0020] receiving query requests;
[0021] The query request is used to request to query at least one of the current operation information, historical operation information, current fault prediction information, historical fault prediction information, current fault repair strategy, historical fault repair strategy, current fault repair result and historical fault repair result of the second server;
[0022] Determine target information according to the query request;
[0023] The target information is displayed visually.
[0024] In a second aspect, the present application provides a server fault diagnosis device, which is applied to a first server, wherein the first server establishes a connection with a second server, wherein the second server includes a baseboard management controller BMC, and the device includes a receiving module, a prediction module, and a transmission module;
[0025] The receiving module is used to receive the current operation data transmitted by the BMC;
[0026] The current operation data is obtained by the BMC monitoring the operation status of the second server in the current operation cycle;
[0027] The prediction module is used to perform fault prediction on the second server according to the current operation data by using a fault prediction model to obtain fault prediction information;
[0028] The transmission module is used to transmit the fault prediction information to the BMC, so that the BMC performs fault repair on the second server according to the fault prediction information.
[0029] Preferably, the current operation data is collected by the BMC according to a target period during the process of monitoring the operation status of the second server;
[0030] The current operation data includes at least one of hardware status information, network connection information, system log, processor usage and memory utilization of the second server.
[0031] In a third aspect, the present application provides an electronic device, comprising a processor and a memory, wherein the memory is used to store software programs, and the processor runs or executes the software programs stored in the memory so that the electronic device implements the server fault diagnosis method as described above.
[0032] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store program codes executed by a processor, wherein the program codes include codes for implementing the above-mentioned server fault diagnosis method.
[0033] In a fifth aspect, the present application provides a computer program product, including a program code, which enables a computer to execute the above-mentioned server fault diagnosis method when the computer runs the computer program product.
[0034] Beneficial effects:
[0035] The present application provides a server fault diagnosis method, which is applied to a first server, wherein the first server establishes a connection with a second server, and the second server includes: a baseboard management controller BMC, and the method includes: receiving current operation data transmitted by the BMC; wherein the current operation data is obtained by the BMC monitoring the operation status of the second server in the current operation cycle; according to the current operation data, performing fault prediction on the second server through a fault prediction model to obtain fault prediction information; transmitting the fault prediction information to the BMC, and causing the BMC to perform fault repair on the second server according to the fault prediction information;
[0036] In summary, the server fault diagnosis method provided in the present application is applied to the first server, can automatically receive the current operating data transmitted by the BMC, automatically process the current operating data to obtain fault prediction information, and automatically transmit the fault prediction information to the BMC. It can be seen that compared with the prior art that relies on offline participation of staff, the server fault diagnosis method provided in the present application is directly executed automatically, so that the server fault can be repaired in time, so the diagnosis efficiency of the server fault can be significantly improved; in addition, the fault prediction information is automatically transmitted to the BMC, so that the BMC can repair the fault for the second server according to the fault prediction information, so the repair efficiency of the server fault can also be significantly improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. The following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 A flow chart of a server fault diagnosis method provided in an embodiment of the present application;
[0039] Figure 2 A schematic diagram of the structure of a server fault diagnosis device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] In the prior art, although the BMC installed in the server can monitor the operation status of the server, diagnose and repair faults of the server, the fault diagnosis function that the BMC can achieve is very limited, and it can only determine whether data such as the temperature, fan speed, power status and voltage of the server are abnormal; if more locations and more types of faults in the server are to be predicted, technical personnel are required to determine offline; in actual applications, technical personnel are required to operate the BMC to repair the faults in the server, resulting in the server's fault diagnosis process and fault repair process being in a state of lag for a long time, which may eventually lead to the situation that the normal operation of the server is affected due to the low fault diagnosis efficiency and fault repair efficiency.
[0041] In order to solve the above technical problems, the present application proposes a server fault diagnosis solution, which is implemented based on a server fault diagnosis system. The system includes: a first server and a BMC, the BMC is installed in a second server, and the second server is a server monitored, fault diagnosed and repaired by the BMC; in actual applications, the number of the first server and the second server can be multiple.
[0042] The working principle of the server fault diagnosis system: BMC monitors the operation status of the second server, and transmits the current operation data of the second server collected at preset intervals to the first server. The first server predicts the fault status of the second server based on the current operation data to obtain fault prediction information, and BMC repairs the fault of the second server based on the fault prediction information.
[0043] During the operation of the server fault diagnosis system, its fault diagnosis depends on the first server and does not require offline confirmation by staff. After receiving the current operating data transmitted by the BMC, the first server can automatically confirm the fault prediction information based on the current operating data; the fault prediction information is subsequently used to guide the BMC to repair the fault of the second server in a timely manner, thereby improving the server's fault diagnosis efficiency and fault repair efficiency.
[0044] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.
[0045] First, the present application embodiment proposes a server fault diagnosis method, such as Figure 1 As shown, Figure 1The present invention provides a flow chart of a server fault diagnosis method according to an embodiment of the present invention. The method includes: S110 to S130, and the details are as follows:
[0046] S110: receiving current operation data transmitted by the BMC;
[0047] The current operation data is obtained by the BMC monitoring the operation status of the second server in the current operation cycle.
[0048] Specifically, the BMC in the embodiment of the present application is used to collect the current operation data of the second server. In actual implementation, the BMC transmits the current operation data collected within the target period to the first server at intervals of the operation cycle; wherein the length of the operation cycle can be determined according to actual needs, and can be 8 hours or 1 day, and the present application does not make specific restrictions on this.
[0049] The current operation data includes: at least one of the hardware status information, network connection information, system log, processor usage and memory utilization of the second server; in actual applications, the current operation data may also include other content, which is not limited in this application; it should be emphasized that the first server can also receive the current operation data about the second server transmitted by other devices, and S110 is only an example of a step of receiving the current operation data based on the communication relationship between the first server and the BMC.
[0050] S120: According to the current operation data, a fault prediction model is used to perform fault prediction on the second server to obtain fault prediction information.
[0051] Specifically, the current operation data can reflect the operation status of the second server in the current operation cycle; when the first server receives the current operation data, it inputs the current operation data into the fault prediction model, and processes the current operation data through the fault prediction model to obtain the fault prediction result. Since the fault prediction model is set on the first server, S120 can be automatically executed without the involvement of staff.
[0052] In one implementation, S120 includes: step (1), the details of which are as follows:
[0053] Step (1): Input the current operating data into the isolation forest model to obtain fault prediction information;
[0054] The isolation forest model is trained based on the historical operation data of the second server.
[0055] Specifically, before inputting the current running data into the isolation forest model, the current running data needs to be vectorized to obtain a vector, and then the vector is input into the isolation forest model; in an embodiment of the present application, the number of isolated trees in the isolation forest model is determined according to actual needs.
[0056] The multiple isolated trees in the isolation forest model segment the vector according to the preset segmentation rules and the randomly set segmentation thresholds. When the multiple isolated trees have completed the segmentation, the isolation forest model outputs the anomaly score corresponding to the current running data and the anomaly data in the current running data.
[0057] The anomaly score can indicate the degree of anomaly of the current operating data, and the anomaly data can indicate the fault location and fault type of the fault in the second server.
[0058] In one implementation, after S120, the method further includes: step (2), the details of which are as follows:
[0059] Step (2): Determine the fault repair strategy in the strategy table based on the fault prediction information;
[0060] Among them, the fault repair strategy includes: restarting the BMC, switching the standby BMC, adjusting the configuration parameters of the first server or adjusting the load balancing of the first server. The strategy table indicates the correspondence between the fault and the fault repair strategy determined based on the fault location and fault type indicated by the fault prediction information.
[0061] Specifically, the first server can not only predict the fault of the second server according to the current operation data to obtain a fault prediction result, but also determine a corresponding fault repair strategy according to the fault prediction result. The fault repair strategy is used to specifically guide the BMC to repair the fault of the second server.
[0062] In the embodiment of the present application, the fault repair strategy includes: restarting the BMC, switching the standby BMC, adjusting the configuration parameters of the first server, or adjusting at least one of the load balancing of the first server; it should be emphasized that the strategies included in the fault repair strategy explained above are only exhibited for exemplary purposes. In actual operation, other fault repair strategies can be determined according to actual needs, and it is only necessary to ensure that the BMC or other modules in the second server can be implemented.
[0063] S130: Transmit the fault prediction information to the BMC, and enable the BMC to perform fault repair on the second server according to the fault prediction information.
[0064] Specifically, after the first server determines the fault repair strategy, it transmits the fault repair strategy to the BMC, and the BMC automatically repairs the fault of the second server under the guidance of the fault repair strategy.
[0065] In one implementation, the method further includes: Steps (3) to (5), the details of which are as follows:
[0066] Step (3): receiving a query request;
[0067] The query request is used to request at least one of the operation information, fault prediction information, fault repair strategy, and fault repair result of the second server.
[0068] Specifically, the first server can be used to query the fault diagnosis and fault repair information of the second server; in actual implementation, the first server receives the user's query request through an input device connected thereto; the first server can also receive remote query requests.
[0069] The information that can be queried in the first server includes: at least one of the operating information, fault prediction information, fault repair strategy, and fault repair results of the second server; in actual applications, the query function that can be implemented by the first server can also be expanded according to actual needs, and this application does not make specific limitations on this.
[0070] Step (4): Determine the target information according to the query request.
[0071] Specifically, in actual applications, after the BMC performs fault repair on the second server according to the fault repair strategy, the BMC or the second server will transmit the fault repair result to the first server; the first server will store the received operating information of the second server, the fault prediction information diagnosed based on the operating information, the fault repair strategy determined based on the fault prediction information, and the received fault repair result.
[0072] When the first server receives the query request, it determines the target information corresponding to the query request from the stored information according to the query request.
[0073] Step (5): Visualize the target information.
[0074] Specifically, after the first server determines the target information, the target information can be visually displayed through a display device.
[0075] In summary, the server fault diagnosis method provided in the embodiment of the present application is applied to the first server, can automatically receive the current operating data transmitted by the BMC, automatically process the current operating data to obtain fault prediction information, and automatically transmit the fault prediction information to the BMC. It can be seen that compared with the prior art that relies on offline participation of staff, the server fault diagnosis method provided in the embodiment of the present application is directly executed automatically, so that the server fault can be repaired in time, so the diagnosis efficiency of the server fault can be significantly improved; in addition, the fault prediction information is automatically transmitted to the BMC, so that the BMC can repair the fault for the second server according to the fault prediction information, so the repair efficiency of the server fault can also be significantly improved.
[0076] Second, the embodiment of the present application also provides a server fault diagnosis device, which is applied to a first server, the first server is connected to a second server, and the second server includes: a baseboard management controller BMC, such as Figure 2 As shown, Figure 2 This is a schematic diagram of the structure of a server fault diagnosis device provided in an embodiment of the present application, the device includes: a receiving module 310, a prediction module 320 and a transmission module 330;
[0077] The receiving module 310 is used to receive the current operation data transmitted by the BMC;
[0078] The current operation data is obtained by monitoring the operation status of the second server in the current operation cycle by the BMC;
[0079] A prediction module 320, configured to perform a fault prediction on the second server according to the current operation data by using a fault prediction model to obtain fault prediction information;
[0080] The transmission module 330 is used to transmit the fault prediction information to the BMC, so that the BMC can perform fault repair on the second server according to the fault prediction information.
[0081] In one implementation, the current operation data is collected by the BMC according to a target period during monitoring of the operation status of the second server;
[0082] The current operation data includes: at least one of hardware status information, network connection information, system log, processor usage and memory utilization of the second server.
[0083] In one implementation, the prediction module 320 is further used to obtain fault prediction information by processing the current operation data through an isolation forest model according to the current operation data;
[0084] The isolation forest model is trained based on the historical current operation data of the second server.
[0085] In one implementation, the prediction module 320 is further configured to determine a fault repair strategy in a strategy table according to the fault prediction information;
[0086] The fault repair strategy includes at least one of restarting the BMC, switching the standby BMC, adjusting the configuration parameters of the first server, or adjusting the load balancing of the first server; the strategy table records the correspondence between the fault and the fault repair strategy determined based on the fault location and fault type indicated by the fault prediction information.
[0087] In one implementation, the apparatus further includes: a query module and a visualization module;
[0088] A query module, used for receiving a query request;
[0089] The query request is used to request to query at least one of the current operation information, historical operation information, current fault prediction information, historical fault prediction information, current fault repair strategy, historical fault repair strategy, current fault repair result and historical fault repair result of the second server;
[0090] The query module is also used to determine the target information according to the query request;
[0091] The visualization module is used to visualize the target information.
[0092] Third, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements steps S110 to S130 provided in the above embodiment when executing the computer program.
[0093] Fourthly, the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, steps S110 to S130 of the above embodiment are executed.
[0094] Fifth, the computer program product provided in the present application includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method in the previous method embodiment. The specific implementation can refer to steps S110 to S130 of the method embodiment, which will not be repeated here.
[0095] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0096] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0097] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0098] It should be noted that if the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM) random access memory (RAM), disk or optical disk, and other media that can store program codes.
[0099] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0100] The above are only embodiments of the present application and are not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the scope of protection of the present application.
Claims
1. A server fault diagnosis method, characterized in that: Applied to a first server, the first server establishes a connection with a second server, the second server includes: a baseboard management controller BMC, the method includes: Receiving current operation data transmitted by the BMC; The current operation data is obtained by monitoring the operation status of the second server in the current operation cycle by the BMC; According to the current operation data, performing fault prediction on the second server by using a fault prediction model to obtain fault prediction information; The fault prediction information is transmitted to the BMC, so that the BMC performs fault repair on the second server according to the fault prediction information.
2. The method according to claim 1, characterized in that The current operation data is collected by the BMC according to a target period during the process of monitoring the operation status of the second server; The current operation data includes at least one of hardware status information, network connection information, system log, processor usage and memory utilization of the second server.
3. The method according to claim 1, characterized in that The performing fault prediction on the second server by using a fault prediction model according to the current operation data to obtain fault prediction information includes: According to the current operation data, the current operation data is processed by an isolation forest model to obtain the fault prediction information; The isolation forest model is trained based on historical current operation data of the second server.
4. The method according to claim 1, characterized in that: After performing fault prediction on the second server by using the fault prediction model to obtain fault prediction information, the method further includes: Determining a fault repair strategy in a strategy table according to the fault prediction information; Among them, the fault repair strategy includes: restarting the BMC, switching the standby BMC, adjusting the configuration parameters of the first server or adjusting the load balancing of the first server. The strategy table records the correspondence between the fault and the fault repair strategy determined based on the fault location and fault type indicated by the fault prediction information.
5. The method according to claim 1, characterized in that The method further comprises: receiving a query request; The query request is used to request to query at least one of the current operation information, historical operation information, current fault prediction information, historical fault prediction information, current fault repair strategy, historical fault repair strategy, current fault repair result and historical fault repair result of the second server; Determine target information according to the query request; The target information is displayed visually.
6. A server fault diagnosis device, characterized in that: Applied to a first server, the first server establishes a connection with a second server, the second server comprises: a baseboard management controller BMC, the device comprises: a receiving module, a prediction module and a transmission module; The receiving module is used to receive the current operation data transmitted by the BMC; The current operation data is obtained by monitoring the operation status of the second server in the current operation cycle by the BMC; The prediction module is used to perform fault prediction on the second server according to the current operation data by using a fault prediction model to obtain fault prediction information; The transmission module is used to transmit the fault prediction information to the BMC, so that the BMC performs fault repair on the second server according to the fault prediction information.
7. The device according to claim 6, characterized in that The current operation data is collected by the BMC according to a target period during the process of monitoring the operation status of the second server; The current operation data includes at least one of hardware status information, network connection information, system log, processor usage and memory utilization of the second server.
8. An electronic device, characterized in that: The electronic device includes a processor and a memory, the memory is used to store software programs, and the processor runs or executes the software programs stored in the memory so that the electronic device implements the server fault diagnosis method as described in any one of claims 1 to 5.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program codes executed by a processor, wherein the program codes include code for implementing the server fault diagnosis method according to any one of claims 1 to 5.
10. A computer program product, characterized in that The computer program product comprises program codes, and when a computer runs the computer program product, the computer executes the server fault diagnosis method according to any one of claims 1 to 5.
Citation Information
Cited By
Computer board card system
CN119829351A
Computer board system
CN119829351B
Server starting control method and device
CN119917345A
