Server failure early warning method, device, computer equipment and storage medium
By obtaining the server hardware failure rate and failure causes within a scheduled period, a failure analysis report is formed, which solves the problem in the existing technology of being unable to quickly identify common problems of batch machines, achieves rapid response and efficient maintenance of server failures, and improves machine availability. and stability.
Patent Information
- Application Number
- CN202010122319.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-02-27
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2040-02-27
AI Technical Summary
The existing server hardware fault monitoring system cannot quickly and accurately detect common problems in batches of machines, resulting in frequent faults affecting availability, increasing operation and maintenance costs and low maintenance efficiency.
Obtain the server hardware failure rate within a scheduled period, monitor the hardware status based on IPMI commands, form a fault cause sorting table and periodic fault analysis report, extract the cause of model or component failure, flexibly respond to different fault levels, and take maintenance measures in a timely manner.
It achieves rapid and accurate identification and response to batch machine failures, improves server availability and robust operation, and reduces operation and maintenance costs and failure rates.
Smart Images

Figure CN111444031B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of server operation and maintenance technology, and in particular to a server failure early warning method, device, computer equipment and storage medium. Background Art
[0002] Server hardware fault monitoring is an important part of server operation and maintenance. Server hardware failures can affect machine performance and send error messages, or even cause machine downtime, seriously affecting business operations and availability. All server manufacturers provide hardware monitoring and hardware logging services. BMC (Baseboard Management Controller) monitors various components of the server in real time. When a hardware failure occurs on the server, the BMC will detect the hardware failure component, record the log, and issue an alarm to notify the user. Existing server hardware fault monitoring can detect fault problems. In the case of minor faults, hardware problems can be repaired by replacing hardware or upgrading firmware to avoid more serious situations (such as downtime, data loss, etc.) caused by further deterioration of hardware failures. In the case of serious faults, the problem can also be determined through logs to solve the problem.
[0003] The current BMCs all monitor a single server. In an IDC (Internet Data Center), there may be tens of thousands of servers, and the same potential fault defects may occur in tens of thousands of servers. How to promptly discover common problems to improve server availability and reduce the occurrence of major problems has become a difficult problem in server operation and maintenance. Traditional server management platforms cannot issue early warnings or discover common problems, resulting in frequent failures that affect availability. The model of maintaining one machine at a time is not only inefficient, but also keeps operation and maintenance costs high. How to quickly and accurately obtain common problems of batch machines and improve machine availability has become an issue that needs to be solved urgently. Summary of the invention
[0004] The embodiments of the present invention provide a server fault early warning method, device, computer equipment and storage medium to solve the problem of quickly and accurately obtaining common problems of batch machines and improving machine availability.
[0005] A server failure early warning method, comprising:
[0006] Obtaining a server fault warning request, the server fault warning request includes a periodic task and a timing cycle, wherein the periodic task includes reading log information from a server system event log library;
[0007] Monitor the server hardware status through IPMI commands, obtain hardware monitoring data, and add the hardware monitoring data to the log information;
[0008] If the current system time meets the timing period, the periodic task is activated to obtain the log information corresponding to the timing period;
[0009] Based on the log information corresponding to the timing period, obtain the model warning level or component warning level;
[0010] If the machine model warning level or component warning level reaches the preset report level, the periodic fault causes of each online machine model within the timing period are extracted based on the machine model maintenance record table;
[0011] Count the number of faults corresponding to the fault cause in each timing cycle, arrange all fault occurrences in descending order, and form a fault cause ranking table;
[0012] Add the fault cause sorting table to the preset periodic fault analysis template to form a periodic fault analysis report.
[0013] A server failure early warning device, comprising:
[0014] The module for obtaining early warning requests is used to obtain early warning requests for server failures. The early warning requests for server failures include periodic tasks and timing cycles. The periodic tasks include reading log information from a server system event log library.
[0015] The monitoring data acquisition module is used to monitor the server hardware status through IPMI commands, obtain hardware monitoring data, and add the hardware monitoring data to the log information;
[0016] Activate the periodic task module, which is used to activate the periodic task if the current system time meets the timing period, and obtain the log information corresponding to the timing period;
[0017] The module for obtaining the warning level is used to obtain the warning level of the model or the warning level of the component based on the log information corresponding to the timing period;
[0018] A fault cause extraction module is used to extract the periodic fault cause of each online model within a timing period based on the model maintenance record table if the model warning level or component warning level reaches the preset report level;
[0019] A cause ranking table module is formed, which is used to count the number of fault occurrences corresponding to the fault cause in each timing period, and arrange all fault occurrences in descending order to form a fault cause ranking table;
[0020] The analysis report forming module is used to add the fault cause sorting table to the preset periodic fault analysis template to form a periodic fault analysis report.
[0021] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the server failure early warning method is implemented.
[0022] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the server failure warning method is implemented.
[0023] The above-mentioned server fault warning method, device, computer equipment and storage medium can flexibly respond to different component problems that affect safety applications by obtaining the current model failure rate or the current component failure rate corresponding to different model warning levels within a regular period, thereby ensuring the normal and stable operation of the machine; at the same time, the server can obtain a periodic fault analysis report based on a preset report level, which is beneficial for maintenance personnel to obtain common problems of models or component types from the periodic fault analysis report, and take maintenance or upgrade measures in time to reduce the current model failure rate or current component failure rate caused by common problems of batch machines, thereby improving the applicability of the machine. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0025] Figure 1 Schematic diagram of the application environment of the server failure early warning method in one embodiment of the present invention;
[0026] Figure 2 is a flow chart of a server failure early warning method in one embodiment of the present invention;
[0027] Figure 3 is another flow chart of a server failure early warning method in one embodiment of the present invention;
[0028] Figure 4 is another flow chart of a server failure early warning method in one embodiment of the present invention;
[0029] Figure 5 is another flow chart of a server failure early warning method in one embodiment of the present invention;
[0030] Figure 6 is another flow chart of a server failure early warning method in one embodiment of the present invention;
[0031] Figure 7is another flow chart of a server failure early warning method in one embodiment of the present invention;
[0032] Figure 8 is another flow chart of a server failure early warning method in one embodiment of the present invention;
[0033] Fig. 9 is a schematic diagram of a server failure early warning device in one embodiment of the present invention;
[0034] Fig.10 is a schematic diagram of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION
[0035] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0036] The server failure early warning method provided by the embodiment of the present invention can be applied in the following aspects: Figure 1 In the application environment, the server fault warning method is applied in a server fault warning system, which includes a client and a server, wherein the client communicates with the server through a network. The client, also known as the user end, refers to a program corresponding to the server that provides local services for the client. The client can be installed on, but not limited to, various personal computers, laptops, smart phones, tablet computers, portable wearable devices and other computer devices. The server can be implemented as an independent server or a server cluster consisting of multiple servers.
[0037] In one embodiment, if Figure 2 As shown, a server failure early warning method is provided, and the method is applied in Figure 1 The server in the example is used as an example, and the specific steps include the following:
[0038] S10. Obtain a server fault warning request, where the server fault warning request includes a periodic task and a timing cycle, wherein the periodic task includes reading log information from a server system event log library.
[0039] Among them, the server fault warning request is a request sent by the client to warn the server of hardware failure. The periodic task is a task that the server executes automatically when the current system time meets the preset timing cycle. The timing cycle is the period of each activation of the periodic task.
[0040] Log information is a record of various server operation information, such as software and hardware operation information.
[0041] S20. Monitor the server hardware status through IPMI commands, obtain hardware monitoring data, and add the hardware monitoring data to the log information.
[0042] Among them, IPMI (Intelligent Platform Management Interface) is a new generation of universal interface standard that makes hardware management "intelligent". Users can use IPMI to monitor the physical characteristics of the server, such as temperature, voltage, fan working status, power supply, and chassis intrusion. The biggest advantage of IPMI is that it is independent of CPU BIOS and OS, so users can monitor the server as long as the power is turned on, whether the server is turned on or off. IPMI is a standardized standard, and the most important physical component is BMC (Baseboard Management Controller). Figure 1 ), an embedded management microcontroller, is equivalent to the "brain" of the entire platform management. Through it, IPMI can monitor the data of various sensors and record logs of various events.
[0043] Hardware monitoring data is data that records the operating status of each component in the server, including information such as machine ID, component ID, and faults generated during operation.
[0044] S30. If the current system time meets the timing period, the periodic task is activated to obtain the log information corresponding to the timing period.
[0045] Specifically, when the current system time meets the timing period, the server can automatically activate the scheduled task and execute the task corresponding to the scheduled task without manual startup.
[0046] S40. Based on the log information corresponding to the timing period, obtain the model warning level or component warning level.
[0047] Among them, the model warning level is a different safety level preset by the server based on the failure rate of the current model, which is used to start different warning response behaviors based on different safety levels. Each warning response behavior is a level warning response. Examples are as follows:
[0048] Aircraft model warning levels: Level 1 warning level, Level 2 warning level, Level 3 warning level.
[0049] Level warning response: For the first warning level, maintenance is carried out immediately.
[0050] For the second-level warning level, maintenance can be performed at the preset second-level cycle response time at 8 pm every day.
[0051] For the third level warning level, maintenance can be carried out at 8 pm every Friday night during the preset third level cycle response time.
[0052] The component warning level is a different security level preset by the server based on the current component failure rate. It is used to start different warning response behaviors based on different security levels. Each warning response behavior is a level warning response. Examples are as follows:
[0053] Aircraft model warning levels: Level 1 warning level, Level 2 warning level, Level 3 warning level.
[0054] Level warning response: For the first warning level, maintenance is carried out immediately.
[0055] For the second-level warning level, maintenance can be performed at the preset second-level cycle response time at 8 pm every day.
[0056] For the third level warning level, maintenance can be carried out at 8 pm every Friday night during the preset third level cycle response time.
[0057] S50. If the machine model warning level or component warning level reaches the preset report level, extract the periodic failure cause of each online machine model within the timing period based on the machine model maintenance record table.
[0058] The preset report level is a level set by the server to meet the need to form a periodic fault analysis report. For example, in this embodiment, the first warning level and the second warning level can be set as the preset report level.
[0059] The periodic fault cause is the fault cause of the same machine model or the same component type in the current cycle formed based on the timing cycle. Furthermore, the periodic fault cause can also sort the fault causes by the similarity of the causes, so that maintenance personnel can timely obtain the common problems existing in the same machine model or the same component type in the timing cycle from the periodic fault cause. It can be understood that the periodic fault analysis cause is conducive to maintenance personnel to perform maintenance and upgrade measures such as system upgrades based on common problems.
[0060] In step S50, when the server detects that the machine model warning level or component warning level meets the preset report level, a periodic fault cause should be formed in time so that maintenance personnel can obtain common problems of the machine model or component type from the periodic fault cause.
[0061] S60. Count the number of fault occurrences corresponding to the fault cause in each timing period, arrange all fault occurrences in descending order, and form a fault cause ranking table.
[0062] Specifically, the server may mark each type of error with an error type, and count the number of occurrences of each error type mark, thereby forming a fault cause ranking table (for example, the errors may be arranged in descending order of the number of errors).
[0063] S70. Add the fault cause ranking table to the preset periodic fault analysis template to form a periodic fault analysis report.
[0064] The preset periodic fault analysis template is a template for adding error information set according to actual application scenarios and suitable for maintenance personnel to view. The server adds the various information obtained above to the preset periodic fault analysis template to form a periodic fault analysis report.
[0065] In the server fault warning method provided in this embodiment, the server obtains the current model failure rate or the current component failure rate corresponding to different model warning levels in a regular period, and flexibly responds to different component problems that affect safety applications, which can ensure the normal and stable operation of the machine. At the same time, the server can obtain a periodic fault analysis report based on a preset report level, which is beneficial for maintenance personnel to obtain common problems of models or component types from the periodic fault analysis report, and take maintenance or upgrade measures in time to reduce the current model failure rate or current component failure rate caused by common problems of batch machines, thereby improving the applicability of the machine.
[0066] In one embodiment, if Figure 3 As shown, in step S40, that is, obtaining the model warning level or component warning level, the following steps are specifically included:
[0067] S41. Obtain the number of online models, the number of problematic models, and the number of problematic components corresponding to each online model within a timing period.
[0068] Among them, the online machine model data table is a status record table that records the machines that have been online during the timing period. For example, if machine A has been online during the timing period, the online status corresponding to machine A in the online machine model data table can be updated to the logged-in status. It can be understood that at the end of each timing period, the server automatically updates the online status corresponding to each machine in the online machine model data table to the unlogged-in status, so that the server can count the number of machines that have been online during the new timing period and determine it as the number of online machine models. That is, the definition of the number of online machine models is the total number of machines whose online status is the logged-in status in the online machine model data table during the current timing period.
[0069] The model maintenance data table is a record table that records the problems with the components in the machine and the specific causes of the problems. The specific registration content also includes the machine ID, model, component ID, component type and cause of failure, so that the server can subsequently obtain the number of problem models based on the same model, or the number of problem components based on the same component type based on the continued maintenance data table. For example, the server can filter in the model maintenance data table based on the same model, and count the total number of failures that have occurred in the model during the current timing period as the number of problem models. The server can filter in the model maintenance data table based on the same component type, and count the total number of failures that have occurred in the component type during the current timing period as the number of problem components.
[0070] In step S41, the server can timely obtain the number of online models, the number of problem models corresponding to the same model, and the number of problem parts corresponding to the same part type according to the online model data table and the model maintenance record table, avoiding manual screening and calculation, which is convenient and accurate.
[0071] S42. Based on the number of online models, the number of problematic models, and the number of problematic components, obtain the current model failure rate and the current component failure rate within a timing period.
[0072] Among them, the current model failure rate is the percentage of the number of problematic models to the number of online models, and the current component failure rate is the percentage of the number of problematic components to the number of online models.
[0073] Specifically, the number of online models N, the number of problematic models n, and the number of problematic components m within the timing period:
[0074] The overall failure rate and component failure rate of this machine per month are:
[0075] Current model failure rate = n / N*100%
[0076] Current component failure rate = m / N*100%
[0077] In step S42, the server can quickly obtain the current model failure rate and the current component failure rate according to a preset formula, and prepare a data basis for subsequently determining the model warning level based on the current model failure rate and the current component failure rate.
[0078] S43. Based on the number of online models corresponding to the timing period and the failure rate of the current model, obtain the model warning level, and perform a level warning response based on the model warning level.
[0079] In step S43, the server sets different machine warning levels and different level warning responses corresponding to different current machine model failure rates. Flexible level warning responses can be used to maintain the machine, which is conducive to timely maintenance of critical machine problems and centralized maintenance of minor machine problems at preset times. This can effectively ensure the normal operation of the machine and reduce operating time delayed by maintenance.
[0080] S44. Based on the number of online models corresponding to the timing period and the current component failure rate, obtain the component warning level, and perform a level warning response based on the component warning level.
[0081] Among them, the component warning level is a different safety level preset by the server based on the current component failure rate, which is used to start different warning response behaviors based on different safety levels. Each warning response behavior is a level warning response, as shown below:
[0082] Aircraft model warning levels: Level 1 warning level, Level 2 warning level, Level 3 warning level.
[0083] Level warning response: For the first warning level, maintenance is carried out immediately.
[0084] For the second-level warning level, maintenance can be performed at the preset second-level cycle response time at 8 pm every day.
[0085] For the third level warning level, maintenance can be carried out at 8 pm every Friday night during the preset third level cycle response time.
[0086] In step S44, the server sets different machine model warning levels and different level warning responses corresponding to different current component failure rates. Flexible level warning responses can be adopted to maintain machine components, which is conducive to timely maintenance of critical machine component problems and centralized maintenance of minor machine component problems at preset times, which can effectively ensure the normal operation of the machine and reduce operating time delayed by maintenance.
[0087] In steps S41 to S44, the server can timely obtain the number of online models, the number of problem models corresponding to the same model, and the number of problem parts corresponding to the same part type according to the online model data table and the model maintenance record table, avoiding manual screening and calculation, which is convenient and accurate. The server can quickly obtain the current model failure rate and the current part failure rate according to the preset formula, and prepare the data basis for the subsequent determination of the model warning level based on the current model failure rate and the current part failure rate. The server sets different model warning levels and different level warning responses corresponding to different current model failure rates, and can adopt flexible level warning responses to maintain the machine, which is conducive to timely maintenance of critical machine problems and centralized maintenance of minor machine problems at preset times, which can effectively ensure the normal operation of the machine and reduce the operation time delayed by maintenance. The server is set up with different machine warning levels and different warning response levels corresponding to different current component failure rates. Flexible warning response levels can be used to maintain machine components, which is conducive to timely maintenance of critical machine component problems. Minor machine component problems can be maintained in a centralized manner at preset times, which can effectively ensure the normal operation of the machine and reduce operating time delayed by maintenance.
[0088] In one embodiment, if Figure 4 As shown, in step S43, based on the number of online models corresponding to the timing period and the current model failure rate, the model warning level is obtained, and a level warning response is performed based on the model warning level, which specifically includes the following steps:
[0089] S431. If the number of online models within the timing period is greater than the preset comparison number, and the current model failure rate is greater than the preset first failure rate, a first-level model warning is obtained, and a first-level warning response is performed based on the first-level model warning.
[0090] The preset comparison number is a comparison number preset according to an actual application scenario and is not specifically limited here. Similarly, the preset first failure rate can be obtained.
[0091] The first-level aircraft warning is a reminder of the urgency of the warning set according to the time application scenario. In this embodiment, the warning with a larger level can be set as a more urgent event. Therefore, the first-level warning response is the response method corresponding to the first-level aircraft warning, which can specifically include various corresponding response measures.
[0092] S432. If the number of online models within the timing period is not greater than the preset comparison number, and the current model failure rate is greater than the preset first failure rate, then the previous model failure rate is obtained.
[0093] Among them, the previous model failure rate refers to the model failure rate of the current online model in the previous cycle.
[0094] S433. If the previous model failure rate is greater than the preset first failure rate, a first-level model warning is obtained, and a first-level warning response is performed based on the first-level model warning.
[0095] S434. If the previous model failure rate is not greater than the preset first failure rate, a second-level model warning is obtained, and a second-level warning response is performed based on the second-level model warning.
[0096] Among them, the second-level aircraft warning is a warning that is more urgent or less urgent than the first-level aircraft warning. In this embodiment, it is a warning that is more urgent than the first-level aircraft warning. Similarly, a second-level warning response corresponding to the second-level aircraft warning can be obtained, that is, the urgency of the second-level warning response should be greater than the first-level warning response.
[0097] In steps S431 to S434, the server sets different machine warning levels and different level warning responses corresponding to different current machine failure rates. Flexible level warning responses can be used to maintain the machine, which is conducive to timely maintenance of critical machine problems and centralized maintenance of minor machine problems at preset times. This can effectively ensure the normal operation of the machine and reduce operating time delayed by maintenance.
[0098] In one embodiment, if Figure 5 As shown, in step S44, based on the number of online models corresponding to the timing period and the current component failure rate, the component warning level is obtained, and a level warning response is performed based on the component warning level, which specifically includes the following steps:
[0099] S441. If the number of online models within the timing period is greater than the preset comparison number, and the current component failure rate is greater than the preset second failure rate, a first-level component warning is obtained, and a first-level warning response is performed based on the first-level component warning.
[0100] Among them, the first-level component warning is a reminder of the warning urgency set according to the time application scenario. In this embodiment, the warning with a larger level can be set as a more urgent event. Therefore, the first-level warning response is the response method corresponding to the first-level component warning, which can specifically include various corresponding response measures.
[0101] S442. If the number of models within the timing period is not greater than the preset comparison number, and the current component failure rate is greater than the preset second failure rate, then obtain the previous component failure rate.
[0102] The previous component failure rate refers to the component failure rate of the current component in the previous cycle.
[0103] S443. If the previous component failure rate is greater than the preset second failure rate, obtain a first-level component warning, and perform a first-level warning response based on the first-level component warning
[0104] S444. If the previous component failure rate is not greater than the preset second failure rate, a second-level component warning is obtained, and a second-level warning response is performed based on the second-level component warning.
[0105] In steps S441 to S444, the server sets different machine model warning levels and different level warning responses corresponding to different current component failure rates. Flexible level warning responses can be adopted to maintain machine components, which is conducive to timely maintenance of critical machine component problems and centralized maintenance of minor machine component problems at preset times, which can effectively ensure the normal operation of the machine and reduce operating time delayed by maintenance.
[0106] In one embodiment, if Figure 6 As shown, before step S10, that is, before obtaining the server fault warning request, the server fault warning method further specifically includes the following steps:
[0107] S111. Obtain a fault reporting request, where the fault reporting request includes a fault reporting date and fault reporting information, and the fault reporting information includes a machine ID, a component ID, and a fault cause.
[0108] The fault reporting date is the date when the machine or component sends the fault and reports it to the server. The fault reporting information is information such as the specific fault cause. The machine ID and component ID are unique identifiers used by the server to distinguish each machine or component. The fault cause is the specific cause of the fault.
[0109] S112. Obtain the machine model corresponding to the machine ID and the component type corresponding to the component ID.
[0110] Each machine ID corresponds to a machine model, and each component ID corresponds to a component type. Obtaining the machine model corresponding to the machine ID and the component type corresponding to the component ID facilitates subsequent classification statistics of machine model or component failures based on each machine model or component type.
[0111] S113. Associate and save the fault reporting date, machine ID, model, component ID, component type and fault cause to form the current model maintenance information, and add the current model maintenance information to the model maintenance record table.
[0112] The current model maintenance information includes all information related to the occurrence of the fault, such as various information such as machine ID, model, component ID or component type.
[0113] The model maintenance record sheet is used to record and maintain each model or component, which helps maintenance personnel to find and locate various problems based on the sheet.
[0114] In steps S111 to S113, the server can record the problem model of the online model, the problem component corresponding to the problem model, and the fault cause corresponding to the problem component based on the fault reporting request, so as to facilitate the subsequent server to count the problem models and problem components of the current period within a scheduled period, obtain a periodic fault analysis report, and find common problems.
[0115] In one embodiment, if Figure 7 As shown, before step S10, that is, before obtaining the server fault warning request, the server fault warning method further specifically includes the following steps:
[0116] S121. Count the number of online models corresponding to each online model in the online model data table that is in the logged-in state within the timing period corresponding to the current time of the system, and determine it as the number of online models.
[0117] Specifically, not every model is online during the timing period. Only the models online during the positioning period can be recorded in the online model data table during the current timing period, and the login status corresponding to the online model is updated to the logged-in status.
[0118] S122. Within the timing period corresponding to the current time of the statistical system, the sum of the number of machines corresponding to the problem model corresponding to each online model in the model maintenance record table is determined as the number of problem models, and the sum of the number of parts corresponding to the problem part type corresponding to each online model is determined as the number of problem parts.
[0119] In steps S121 to S122, the server can timely obtain the number of online models based on the online model data table, and timely obtain the number of problem models and problem parts based on the model maintenance record table, avoiding manual statistics, improving the degree of calculation automation, and being accurate and efficient.
[0120] In one embodiment, if Figure 8 As shown, in step S50, that is, if the machine type warning level or the component warning level reaches the preset report level, a periodic fault analysis is performed on the online machine type in the machine type maintenance record table to obtain a periodic fault analysis report, which specifically includes the following steps:
[0121] S51. If the model warning level is the preset report level, based on the model maintenance record table, obtain the model failure cause corresponding to the problem model corresponding to the online model.
[0122] The preset report level is the level at which a report is required for the model warning level. Since the urgency of each model or component failure is different, it is not necessary to generate a report level for each failure. Only the model level that belongs to the preset report level is added to the model maintenance record table to draw the attention of the table check maintenance personnel.
[0123] or,
[0124] S52. If the component warning level is the preset report level, based on the machine model maintenance record table, obtain the component failure cause corresponding to the problem component type corresponding to the online machine model.
[0125] In steps S51 to S52, the server can sort the fault causes in the periodic fault causes according to the similarity of the causes, so that maintenance personnel can promptly obtain common problems existing in the same model or the same component type within the timing period from the periodic fault analysis report, which is beneficial for maintenance personnel to perform maintenance and upgrade measures such as system upgrades based on common problems.
[0126] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0127] In the server fault warning method provided in this embodiment, the server obtains the current model failure rate or the current component failure rate corresponding to different model warning levels in a regular period, and flexibly responds to different component problems that affect safety applications, which can ensure the normal and stable operation of the machine. At the same time, the server can obtain a periodic fault analysis report based on a preset report level, which is beneficial for maintenance personnel to obtain common problems of models or component types from the periodic fault analysis report, and take maintenance or upgrade measures in time to reduce the current model failure rate or current component failure rate caused by common problems of batch machines, thereby improving the applicability of the machine.
[0128] Furthermore, the server sets different warning levels for different current machine models based on different failure rates, as well as different warning response levels. Flexible warning responses can be used to maintain the machine, which is conducive to timely maintenance of critical machine problems and centralized maintenance of minor machine problems at preset times. This can effectively ensure the normal operation of the machine and reduce operating time delayed by maintenance.
[0129] Furthermore, the server sets different machine warning levels and different levels of warning responses based on different current component failure rates. Flexible level warning responses can be used to maintain machine components, which is conducive to timely maintenance of critical machine component problems and centralized maintenance of minor machine component problems at preset times. This can effectively ensure the normal operation of the machine and reduce operating time delayed by maintenance.
[0130] Furthermore, the server can record the problem model of the online model, the problem component corresponding to the problem model, and the fault cause corresponding to the problem component based on the fault reporting request, so that the subsequent server can count the problem models and problem components of the current period within a scheduled period, obtain a periodic fault analysis report, and find common problems.
[0131] Furthermore, the server can timely obtain the number of online models based on the online model data table, and timely obtain the number of problem models and problem parts based on the model maintenance record table, avoiding manual statistics, improving the degree of calculation automation, and being accurate and efficient.
[0132] Furthermore, the server can sort the causes of periodic failures by cause similarity, so that maintenance personnel can promptly obtain common problems existing in the same model or the same component type within the scheduled period from the periodic failure analysis report, which is beneficial for maintenance personnel to perform maintenance and upgrade measures such as system upgrades based on common problems.
[0133] In one embodiment, a server failure early warning device is provided, which corresponds one-to-one to the server failure early warning method in the above embodiment. Fig. 9 As shown, the server fault warning device includes a warning request acquisition module 10, a monitoring data acquisition module 20, a periodic task activation module 30, a warning level acquisition module 40, a fault cause extraction module 50, a cause ranking table formation module 60 and an analysis report formation module 70. The functional modules are described in detail as follows:
[0134] The warning request acquisition module 10 is used to acquire a server fault warning request, which includes a periodic task and a timing cycle, wherein the periodic task includes reading log information of a server system event log library.
[0135] The monitoring data acquisition module 20 is used to monitor the server hardware status through IPMI commands, acquire hardware monitoring data, and add the hardware monitoring data to the log information.
[0136] The periodic task activation module 30 is used to activate the periodic task and obtain the log information corresponding to the timing period if the current system time meets the timing period.
[0137] The warning level acquisition module 40 is used to acquire the machine model warning level or component warning level based on the log information corresponding to the timing period.
[0138] The fault cause extraction module 50 is used to extract the periodic fault cause of each online machine model within a timing period based on the machine model maintenance record table if the machine model warning level or component warning level reaches a preset report level.
[0139] The cause ranking table forming module 60 is used to count the number of fault occurrences corresponding to the fault cause in each timing period, and arrange all fault occurrences in descending order to form a fault cause ranking table.
[0140] The analysis report forming module 70 is used to add the fault cause ranking table to the preset periodic fault analysis template to form a periodic fault analysis report.
[0141] Preferably, the module 40 for obtaining the warning level includes:
[0142] The statistical record table unit is used to regularly perform statistics on the online model data table and the model maintenance record table to obtain the number of online models, the number of problem models and the number of problem parts corresponding to each online model within a timing period.
[0143] The component failure rate acquisition unit is used to acquire the current model failure rate and the current component failure rate within a timing period based on the number of online models, the number of problem models and the number of problem components.
[0144] The machine type level acquisition unit is used to obtain the machine type warning level based on the number of online models corresponding to the timing period and the current model failure rate, and to make a level warning response based on the machine type warning level.
[0145] The component level acquisition unit is used to obtain the component warning level based on the number of online models corresponding to the timing period and the current component failure rate, and to perform a level warning response based on the component warning level.
[0146] Preferably, the module for obtaining the model grade includes:
[0147] A first-level warning unit is obtained, which is used to obtain a first-level model warning if the number of online models within a timing period is greater than a preset comparison number and the current model failure rate is greater than a preset first failure rate, and a first-level warning response is performed based on the first-level model warning.
[0148] The unit for obtaining the machine model failure rate is used to obtain the previous machine model failure rate if the number of online models within the timing period is not greater than the preset comparison number and the current machine model failure rate is greater than the preset first failure rate.
[0149] A first-level response unit is used to obtain a first-level model warning if the previous model failure rate is greater than a preset first failure rate, and to perform a first-level warning response based on the first-level model warning.
[0150] A secondary response unit is provided to obtain a secondary model warning if the previous model failure rate is not greater than the preset first failure rate, and to perform a secondary warning response based on the secondary model warning.
[0151] Preferably, obtaining a component level module includes:
[0152] A component warning unit is obtained, which is used to obtain a first-level component warning if the number of online models within a timing period is greater than a preset comparison number and the current component failure rate is greater than a preset second failure rate, and to perform a first-level warning response based on the first-level component warning.
[0153] The component failure rate acquisition unit is used to acquire the previous component failure rate if the number of models within the timing period is not greater than the preset comparison number and the current component failure rate is greater than the preset second failure rate.
[0154] An early warning response unit is used to obtain a first-level component early warning if the previous component failure rate is greater than the preset second failure rate, and to perform a first-level early warning response based on the first-level component early warning
[0155] A secondary response unit is provided to obtain a secondary component warning if the previous component failure rate is not greater than a preset second failure rate, and to perform a secondary warning response based on the secondary component warning.
[0156] Preferably, the server failure early warning device further includes:
[0157] The reporting request acquisition module is used to obtain a fault reporting request, wherein the fault reporting request includes a fault reporting date and fault reporting information, and the fault reporting information includes a machine ID, a component ID and a fault cause.
[0158] The component type acquisition module is used to obtain the machine model corresponding to the machine ID and the component type corresponding to the component ID.
[0159] A maintenance information module is formed to associate and save the fault reporting date, machine ID, model, component ID, component type and fault cause to form the current model maintenance information, and add the current model maintenance information to the model maintenance record table.
[0160] Preferably, the statistical record table module includes:
[0161] The unit for determining the number of models is used to count the number of each online model in the online model data table whose login status is logged in within the timing period corresponding to the current time of the system, and determine it as the number of online models.
[0162] The component quantity determination unit is used to count the sum of the number of machines corresponding to the problem model corresponding to each online model in the model maintenance record table within the timing period corresponding to the current time of the system, and determine it as the number of problem models, as well as the sum of the number of components corresponding to the problem component type corresponding to each online model, and determine it as the number of problem components.
[0163] Preferably, the fault cause extraction module includes:
[0164] The machine model cause obtaining unit is used to obtain the machine model failure cause corresponding to the problem model corresponding to the online model based on the machine model maintenance record table if the machine model warning level is the preset report level.
[0165] or,
[0166] The component cause acquisition unit is used to acquire the component failure cause corresponding to the problem component type corresponding to the online model based on the model maintenance record table if the component warning level is the preset report level.
[0167] For the specific definition of the server fault warning device, please refer to the definition of the server fault warning method above, which will not be repeated here. Each module in the above-mentioned server fault warning device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0168] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.10 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used for data related to the server fault early warning method. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a server fault early warning method is implemented.
[0169] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the server failure early warning method of the above embodiment is implemented, for example Figure 2 Alternatively, when the processor executes the computer program, the functions of each module / unit of the server failure warning device in the above embodiment are realized, for example Fig. 9 The functions of the modules 10 to 70 are shown in Figure 1. To avoid repetition, they will not be described in detail here.
[0170] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the server failure early warning method of the above embodiment is implemented, for example Figure 2Alternatively, when the computer program is executed by the processor, the functions of each module / unit in the server fault warning device in the above device embodiment are realized, for example Fig. 9 The functions of the modules 10 to 70 are shown in Figure 1. To avoid repetition, they will not be described in detail here.
[0171] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments of the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0172] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0173] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.
Claims
1. A server failure early warning method, characterized in that: include: Obtaining a server fault warning request, wherein the server fault warning request includes a periodic task and a timing cycle, wherein the periodic task includes reading log information of a server system event log library; Monitor the server hardware status through IPMI commands, obtain hardware monitoring data, and add the hardware monitoring data to the log information; If the current system time meets the timing period, the periodic task is activated to obtain the log information corresponding to the timing period; Based on the log information corresponding to the timing period, the number of online models, the number of problem models and the number of problem components corresponding to each online model within the timing period are obtained; based on the number of online models, the number of problem models and the number of problem components, the current model failure rate and the current component failure rate within the timing period are obtained; based on the number of online models corresponding to the timing period and the current model failure rate, the model warning level is obtained, and a level warning response is performed based on the model warning level; based on the number of online models corresponding to the timing period and the current component failure rate, the component warning level is obtained, and a level warning response is performed based on the component warning level; If the warning level of the machine model or the warning level of the component reaches the preset report level, extracting the periodic fault cause of each online machine model within the timing period based on the machine model maintenance record table; Counting the number of fault occurrences corresponding to each of the timing period fault causes, arranging all the fault occurrences in descending order, and forming a fault cause ranking table; The fault cause ranking table is added to a preset periodic fault analysis template to form a periodic fault analysis report.
2. The server failure early warning method according to claim 1, characterized in that: The acquiring a model warning level based on the number of online models corresponding to the timing period and the failure rate of the current model, and performing a level warning response based on the model warning level, includes: If the number of online models within the timing period is greater than the preset comparison number, and the failure rate of the current model is greater than the preset first failure rate, a first-level model warning is obtained, and a first-level warning response is performed based on the first-level model warning; If the number of online models within the timing period is not greater than the preset comparison number, and the current model failure rate is greater than the preset first failure rate, then obtaining the previous model failure rate; If the previous model failure rate is greater than the preset first failure rate, obtaining a first-level model warning, and performing a first-level warning response based on the first-level model warning; If the previous model failure rate is not greater than the preset first failure rate, a second-level model warning is obtained, and a second-level warning response is performed based on the second-level model warning.
3. The server failure early warning method according to claim 1, characterized in that: The obtaining of a component warning level based on the number of online models corresponding to the timing period and the current component failure rate, and performing a level warning response based on the component warning level, includes: If the number of online models within the timing period is greater than the preset comparison number, and the current component failure rate is greater than the preset second failure rate, a first-level component warning is obtained, and a first-level warning response is performed based on the first-level component warning; If the number of the models within the timing period is not greater than the preset comparison number, and the current component failure rate is greater than the preset second failure rate, then obtaining the previous component failure rate; If the previous component failure rate is greater than the preset second failure rate, a first-level component warning is obtained, and a first-level warning response is performed based on the first-level component warning. If the early component failure rate is not greater than the preset second failure rate, a second-level component warning is obtained, and a second-level warning response is performed based on the second-level component warning.
4. The server failure early warning method according to claim 1, characterized in that: Before obtaining the server fault warning request, the server fault warning method further includes: Obtain a fault reporting request, wherein the fault reporting request includes a fault reporting date and fault reporting information, wherein the fault reporting information includes a machine ID, a component ID, and a fault cause; Obtain the machine model corresponding to the machine ID and the component type corresponding to the component ID; The fault reporting date, the machine ID, the machine model, the component ID, the component type and the fault cause are associated and saved to form current model maintenance information, and the current model maintenance information is added to the model maintenance record table.
5. The server failure early warning method according to claim 1, characterized in that: Before obtaining the server fault warning request, the server fault warning method further includes: Counting the number of each of the online models whose login status in the online model data table is logged in during the timing period corresponding to the current time of the system, and determining it as the number of online models; Within the timing period corresponding to the current time of the statistical system, the sum of the number of machines corresponding to the problem models corresponding to each of the online models in the model maintenance record table is determined as the number of problem models, and the sum of the number of parts corresponding to the problem part type corresponding to each of the online models is determined as the number of problem parts.
6. The server failure early warning method according to claim 1, characterized in that: The extracting the periodic fault cause of each online model within the timing period based on the model maintenance record table includes: If the model warning level is the preset report level, obtaining the model failure cause corresponding to the problem model corresponding to the online model based on the model maintenance record table; or, If the component warning level is a preset report level, the component failure cause corresponding to the problem component type corresponding to the online model is obtained based on the model maintenance record table.
7. A server failure early warning device, characterized in that: include: The module for obtaining warning requests is used to obtain server fault warning requests, which include periodic tasks and timing cycles, wherein the periodic tasks include reading log information from the server system event log library; The monitoring data acquisition module is used to monitor the server hardware status through IPMI commands, obtain hardware monitoring data, and add the hardware monitoring data to the log information; Activate the periodic task module, which is used to activate the periodic task if the current system time meets the timing period, and obtain the log information corresponding to the timing period; A warning level acquisition module is used to obtain the number of online models, the number of problem models and the number of problem components corresponding to each online model within the timing period based on the log information corresponding to the timing period; based on the number of online models, the number of problem models and the number of problem components, obtain the current model failure rate and the current component failure rate within the timing period; based on the number of online models corresponding to the timing period and the current model failure rate, obtain the model warning level, and perform a level warning response based on the model warning level; based on the number of online models corresponding to the timing period and the current component failure rate, obtain the component warning level, and perform a level warning response based on the component warning level; A fault cause extraction module is used to extract the periodic fault cause of each online model within the timing period based on the model maintenance record table if the model warning level or the component warning level reaches the preset report level; A cause ranking table forming module is used to count the number of fault occurrences corresponding to each of the timing period fault causes, and arrange all the fault occurrences in descending order to form a fault cause ranking table; The analysis report forming module is used to add the fault cause ranking table to a preset periodic fault analysis template to form a periodic fault analysis report.
8. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the server failure warning method according to any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the server failure warning method according to any one of claims 1 to 6 is implemented.
