A server and hardware failure prediction method, program product and storage medium thereof

Through the combination of the target gated cycle unit and power consumption parameter information, the server hardware current is monitored in real time, and the problems of low hardware monitoring accuracy and high maintenance cost in the existing technology are solved, and accurate prediction and automatic protection of server hardware failures are achieved. Improves the reliability and stability of the server.

CN118535424BActive Publication Date: 2024-11-01JINAN INSPUR DATA TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411009327.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-11-01
Estimated Expiration
2044-07-26

AI Technical Summary

Technical Problem

The existing server hardware monitoring methods rely on SMART parameters defined by hardware manufacturers, which are difficult to accurately reflect the hard disk status, and cannot detect potential faults in time, with limited monitoring accuracy and high maintenance costs.

Method used

Use target gated cycle unit and power consumption parameter information to monitor the current status of the server hardware in real time, predict current through preset gated cycle unit and current specification information, judge fault risk, and output current abnormality prompt information to automatically prevent power off. Data is lost.

Benefits of technology

Accurate prediction of server hardware failures is achieved, the reliability and stability of the server is improved, maintenance costs are reduced, and monitoring accuracy is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535424B_ABST
    Figure CN118535424B_ABST
Patent Text Reader

Abstract

The present invention discloses a server and a hardware fault prediction method, a program product and a storage medium thereof, and relates to the technical field of servers. The method comprises: after the server is turned on, detecting power parameter information and working condition information of hardware to be predicted; wherein the power parameter information comprises current information or current information and supply voltage information, and the hardware to be predicted is a hardware in the server; according to a target gated cycle unit and the power parameter information, predicting the working current of the hardware to be predicted, and obtaining predicted current information; wherein the target gated cycle unit is a preset gated cycle unit corresponding to the working condition information; according to the predicted current information and the target current specification information, obtaining the fault prediction result of the hardware to be predicted; the present invention adopts a gated cycle unit to perform efficient and accurate current prediction on the current monitored in real time by the hardware in the server, thereby realizing accurate prediction of hardware faults and improving the reliability and stability of the server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of servers, and in particular to a server and a method for predicting hardware failures thereof, a program product and a storage medium. Background Art

[0002] With the advent of the big data era, the performance and stability of servers are crucial to data storage and processing. However, failures in server hardware (such as hard disks and network cards) can lead to data loss and business interruptions, causing huge losses to companies. Therefore, how to monitor the current status of server hardware in real time and accurately predict potential failures is of great significance to improving server reliability.

[0003] At present, the monitoring of server hardware generally adopts the monitoring method based on rules. Taking the hard disk monitoring of the server as an example, most of them adopt the methods of monitoring SMART (Self-Monitoring Analysis And Reporting Technology) information or monitoring the performance of the hardware. Although these methods can provide some information about the status of the hard disk, they still have some shortcomings, such as relying on the SMART parameters defined by the hardware manufacturer, which are often not comprehensive and accurate, and it is difficult to reflect the actual status of the hard disk; only obvious fault phenomena can be detected, and it is difficult to discover and deal with some potential fault risks in time, and the monitoring accuracy is limited; it is necessary to regularly adjust and optimize the monitoring rules and thresholds, which requires a lot of manpower and material resources, and the maintenance cost is high. Therefore, how to monitor the current of the hardware in the server in real time, accurately predict hardware failures, and improve the reliability and stability of the server is an urgent problem to be solved today. Summary of the invention

[0004] The purpose of the present invention is to provide a server hardware failure prediction method, server, computer program product and computer readable storage medium to monitor the current of the hardware in the server in real time and accurately predict hardware failures to improve the reliability and stability of the server.

[0005] In order to solve the above technical problems, the present invention provides a method for predicting hardware failure of a server, comprising:

[0006] After the server is powered on, power usage parameter information and working condition information of the hardware to be predicted are detected; wherein the power usage parameter information includes current information or the current information and supply voltage information, and the hardware to be predicted is a hardware in the server;

[0007] According to the target gated cycle unit and the power consumption parameter information, the operating current of the hardware to be predicted is predicted to obtain predicted current information; wherein the target gated cycle unit is a preset gated cycle unit corresponding to the working condition information;

[0008] According to the predicted current information and the target current specification information, a fault prediction result of the hardware to be predicted is obtained; wherein the target current specification information is preset current specification information corresponding to the working condition information.

[0009] On the other hand, the predicting of the operating current of the hardware to be predicted according to the target gated cycle unit and the power usage parameter information, before obtaining the predicted current information, further includes:

[0010] Determine a target working model according to the working condition information; wherein the target working model is any preset working model, all of which include preset working modes under various working scenarios corresponding to the target product model, and the target product model is the product model of the hardware to be predicted;

[0011] The target gated cycle unit is determined according to the target working model; wherein the target gated cycle unit is a preset gated cycle unit corresponding to the target working model, and the target current specification information is preset current specification information corresponding to the target working model.

[0012] On the other hand, the hardware to be predicted is a hard disk, and the working status information includes read and write process information and / or read and write physical block information.

[0013] On the other hand, the detecting of the power usage parameter information and the working condition information of the hardware to be predicted includes:

[0014] A block tracking tool is used to monitor the input / output requests of the hardware to be predicted to obtain the working status information.

[0015] On the other hand, the detecting of the power usage parameter information and the working condition information of the hardware to be predicted includes:

[0016] After the object storage service is started, the baseboard management controller sends a sampling enable signal to the field programmable gate array;

[0017] Using the field programmable gate array, sampling the power usage parameters of the hardware to be predicted according to the sampling enable signal, obtaining the power usage parameter information, and transmitting the power usage parameter information to the operating system;

[0018] The operating system is used to synchronously obtain working condition information corresponding to the power usage parameter information.

[0019] On the other hand, predicting the operating current of the hardware to be predicted based on the target gated cycle unit and the power usage parameter information to obtain the predicted current information includes:

[0020] pass , calculate and obtain the predicted current information of the current time step; where, is the update gate for the current time step, ; is the candidate hidden state of the current time step, ; is the current information of the current time step in the power consumption parameter information, is the predicted current information of the previous time step stored, is the reset gate for the current time step, ; , , , , and are respectively the preset weight parameters of the target gated recurrent unit, , and are preset bias parameters of the target gated recurrent unit, ⊙ is the Hadamard product operator, is the S-type threshold function, is the hyperbolic tangent function.

[0021] On the other hand, obtaining the fault prediction result of the hardware to be predicted according to the predicted current information and the target current specification information includes:

[0022] Determine whether there is an abnormal current signal in the predicted current information; wherein the abnormal current signal is not within the target current range in the target current specification information, and the target current range is a preset specified current range corresponding to the supply voltage of the abnormal current signal;

[0023] If so, the fault prediction result is that there is a current abnormality.

[0024] On the other hand, the predicting of the operating current of the hardware to be predicted according to the target gated cycle unit and the power usage parameter information, before obtaining the predicted current information, further includes:

[0025] According to the target current specification information, determine whether there is an abnormal current signal in the power usage parameter information; wherein the abnormal current signal is not within the target current range in the target current specification information, and the target current range is a preset specified current range corresponding to the power supply voltage of the abnormal current signal;

[0026] If not, the step of predicting the operating current of the hardware to be predicted based on the target gated cycle unit and the power usage parameter information to obtain the predicted current information is executed.

[0027] On the other hand, after judging whether there is an abnormal current signal in the power usage parameter information according to the target current specification information, the method further includes:

[0028] When there is no abnormal current signal in the power usage parameter information, the power usage parameter information and the working condition information are stored in the training data set of the target working model, so as to use the training data set to update the target working model and adjust the target gated cycle unit; wherein the target working model is a preset working model corresponding to the working condition information, and all the preset working models include preset working modes under various working scenarios corresponding to the target product model, and the target product model is the product model of the hardware to be predicted; the target gated cycle unit is the preset gated cycle unit corresponding to the target working model, and the target current specification information is the preset current specification information corresponding to the target working model.

[0029] On the other hand, after obtaining the fault prediction result of the hardware to be predicted according to the predicted current information and the target current specification information, the method further includes:

[0030] If the fault prediction result is that there is a current abnormality, then current abnormality prompt information is output; wherein the current abnormality prompt information includes identification information of the hardware to be predicted.

[0031] In another aspect, the method further comprises:

[0032] If it is detected that the number of times the current anomaly occurs within a preset time period reaches a number threshold, the power supply to the hardware to be predicted is disconnected, and hardware power-off prompt information is output.

[0033] On the other hand, the output current abnormality prompt information includes:

[0034] The current abnormality prompt information is displayed on the web page of the baseboard management controller; and / or, the current abnormality prompt information is displayed on the interface of the management software of the server; and / or, the color corresponding to the current abnormality prompt information is displayed on the target indicator light of the server; wherein, the target indicator light is the indicator light corresponding to the hardware to be predicted.

[0035] The present invention also provides a computer program product, including a computer program / instruction, which implements the steps of the server hardware failure prediction method as described above when executed by a processor.

[0036] The present invention also provides a server, comprising:

[0037] Memory for storing computer programs;

[0038] The processor is used to implement the steps of the server hardware failure prediction method as described above when executing the computer program.

[0039] In addition, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the server hardware failure prediction method as described above are implemented.

[0040] A method for predicting hardware faults of a server provided by the present invention comprises: after the server is turned on, detecting power consumption parameter information and working condition information of the hardware to be predicted; wherein the power consumption parameter information comprises current information or current information and supply voltage information, and the hardware to be predicted is a hardware in the server; according to a target gated cycle unit and the power consumption parameter information, predicting the working current of the hardware to be predicted, and obtaining predicted current information; wherein the target gated cycle unit is a preset gated cycle unit corresponding to the working condition information; according to the predicted current information and the target current specification information, obtaining a fault prediction result of the hardware to be predicted; wherein the target current specification information is the preset current specification information corresponding to the working condition information.

[0041] It can be seen that the present invention predicts the working current of the hardware to be predicted according to the target gated cycle unit and the power parameter information, obtains the predicted current information, and can use the gated cycle unit to perform efficient and accurate current prediction on the current monitored by the hardware in the server in real time, thereby achieving accurate prediction of hardware failures, and can effectively improve the reliability and stability of the server. In addition, the present invention also provides a server, a computer program product, and a computer-readable storage medium, which also have the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0043] Figure 1 A flowchart of a method for predicting hardware failure of a server provided by an embodiment of the present invention;

[0044] Figure 2 A schematic flow chart of another server hardware failure prediction method provided by an embodiment of the present invention;

[0045] Figure 3 A schematic diagram of the system architecture of another server hardware failure prediction method provided by an embodiment of the present invention;

[0046] Figure 4 A schematic diagram of a data processing process of a gated recurrent unit provided by an embodiment of the present invention;

[0047] Figure 5 A simplified structural diagram of a server provided by an embodiment of the present invention;

[0048] Figure 6 A schematic diagram of the specific structure of a server provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments 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.

[0050] Please refer to Figure 1 , Figure 1 A flowchart of a method for predicting hardware failure of a server provided by an embodiment of the present invention. The method may include:

[0051] Step 101: After the server is powered on, power usage parameter information and working status information of the hardware to be predicted are detected; wherein the power usage parameter information includes current information or current information and supply voltage information, and the hardware to be predicted is a piece of hardware in the server.

[0052] It is understandable that the hardware to be predicted in this embodiment can be any hardware in the server that needs to be predicted for faults, such as a hard disk, a network card, or a RAID (Redundant Array of Independent Disks) card, etc. The power parameter information in this step can be the power parameters of the hardware to be predicted, such as the working current (i.e., current information) of the server for the hardware to be predicted or the working current and the corresponding supply voltage (i.e., supply voltage information).

[0053] Correspondingly, the working status information in this step may be information related to the working status of the hardware to be predicted; for example, when the hardware to be predicted is a hard disk, the working status information may include read and write process information (such as the process name and process number for reading and writing, etc.) and / or read and write physical block (block) information (such as the physical block number and block size for reading and writing, etc.), and may also include working scenarios (such as sequential reading, sequential writing, random reading or random writing, etc.); when the hardware to be predicted is a network card, the working status information may include working mode information and / or transmission rate information.

[0054] That is to say, in this step, after the server is powered on, the real-time power consumption parameter information and corresponding working condition information of the hardware to be predicted can be detected to obtain the power consumption parameter information and working condition information of the hardware to be predicted at each sampling time. The specific method of detecting the power consumption parameter information and working condition information of the hardware to be predicted after the server is powered on in this step can be set by the designer according to the practical scenario and user needs. For example, in this step, the BMC (Baseboard Management Controller) of the server can be used to send a sampling enable signal to the FPGA (Field-Programmable Gate Array) in the server after the server is powered on and the OSD (Object-based Storage Device) service of the management software (such as distributed storage cluster management software) is started; the FPGA is used to sample the power consumption parameters of the hardware to be predicted according to the sampling enable signal to obtain the power consumption parameter information, and the power consumption parameter information is transmitted to the OS (Operating System) of the server, such as the Linux system (an operating system); the OS is used to synchronously obtain the working condition information corresponding to the power consumption parameter information to realize the detection of the real-time power consumption parameter information and corresponding working condition information of the hardware to be predicted.

[0055] For example, when the hardware to be predicted is a hard disk, Figure 2 and Figure 3As shown, after the server is normally powered on and enters the cluster, the operating system can detect the status of the OSD service of the management software. After the OSD service starts running, the information is synchronized to the BMC, so that the BMC can send a sampling enable signal to the FPGA (i.e., the sampling circuit); the FPGA can sample the real-time current signal of the hardware to be predicted according to the sampling enable signal, and after conversion by the ADC (analog / digital converter) module, the obtained data (i.e., power parameter information) is transmitted to the operating system; the operating system can synchronously detect the working status information of the management software to obtain the power parameter information and working status information at each sampling moment; for example, in order to facilitate the detection of the working status information of the hard disk, the operating system can use a block tracking tool (such as the blktrace tool) to monitor the input / output (I / O) request of the hardware to be predicted and obtain the working status information, such as the process name, process number, execution time, physical block number and block size of the reading and writing, etc.

[0056] Step 102: predicting the operating current of the hardware to be predicted based on the target gated cycle unit and the power usage parameter information, and obtaining predicted current information; wherein the target gated cycle unit is a preset gated cycle unit corresponding to the working condition information.

[0057] It can be understood that this embodiment innovatively applies the GRU (Gate Recurrent Unit) model to the field of hardware current monitoring of the server. Compared with other models suitable for time series detection, such as long short-term memory networks (LSTM) and recurrent neural networks (RNN), the GRU model has the characteristics of fast training speed, accurate prediction and easy implementation. It can perform efficient and accurate current prediction on the current monitored in real time by the hardware in the server, thereby using the predicted current information to predict hardware failures.

[0058] Correspondingly, the target gated cycle unit in this step can be a preset gated cycle unit corresponding to the detected working condition information; that is, in this embodiment, the detected working condition information can be used to determine a preset gated cycle unit from all the preset gated cycle units as the target gated cycle unit, so as to use the target gated cycle unit to predict the working current of the hardware to be predicted, thereby improving the accuracy of current prediction; for example, when all the preset gated cycle units include preset gated cycle units corresponding to various working scenarios of each product model, the target gated cycle unit can be a preset gated cycle unit corresponding to the working condition information in the preset gated cycle units under various working scenarios corresponding to the target product model, and the target product model is the product model of the hardware to be predicted.

[0059] Correspondingly, this embodiment may also include a process for determining a target gated cycle unit; for example, before this step, a target working model may be determined based on working condition information; wherein the target working model is any preset working model, and all preset working models include preset working modes under various working scenarios corresponding to the target product model, and the target product model is the product model of the hardware to be predicted; according to the target working model, a target gated cycle unit is determined; wherein the target gated cycle unit is the preset gated cycle unit corresponding to the target working model, and the target current specification information is the preset current specification information corresponding to the target working model, that is, each preset working model may correspond to a preset gated cycle unit and a target current specification information, respectively.

[0060] For example, when the hardware to be predicted is a hard disk, Figure 2 and Figure 3 As shown, the server can use the operating system (OS) to determine and identify the hard disk IO (input and output) model (i.e., the target working model) corresponding to the current working scenario (such as random reading and writing or sequential reading and writing) of the hardware to be predicted based on the working status information collected by the blktrace tool, thereby determining the GRU (i.e., the target gated recurrent unit) corresponding to the hard disk IO model, that is, the GRU with the GRU parameters corresponding to the hard disk IO model, so as to use the GRU to predict the working current of the hardware to be predicted.

[0061] Correspondingly, this embodiment does not limit the specific number and type of preset working models. For example, all preset working models include a preset working mode for each of the various working scenarios corresponding to the target product model. For example, when the hardware to be predicted is a hard disk, the working scenarios may include random read scenarios, random write scenarios, sequential read scenarios, and sequential write scenarios. All preset working models may include a preset working mode for each of the hard disk in the random read scenario, random write scenario, sequential read scenario, and sequential write scenario. All preset working models may also include multiple preset working modes for each of the various working scenarios corresponding to the target product model. For example, when the hardware to be predicted is a hard disk, all preset working models may include multiple preset working modes for the hard disk in the random read scenario, such as preset working modes corresponding to different physical block sizes (such as 4k / 1M) of reading, so as to further improve the accuracy of current prediction.

[0062] It should be noted that the specific method of predicting the working current of the hardware to be predicted based on the target gated recurrent unit and the power parameter information in this step and obtaining the predicted current information can be set by the designer according to the practical scenario and user needs. For example, the core idea of ​​GRU is to construct an update gate and a reset gate. The update gate determines how to combine the past information with the current input information to control the degree of retention of the old information. The value of the update gate is between 0 and 1, 0 means completely ignoring the past information, and 1 means completely retaining the past information. The reset gate can be used to decide whether to ignore the past state. Its function is to control the degree of influence of the past state on the current state. The reset gate can help the model capture long-term dependencies to a certain extent. Therefore, Figure 4 As shown, according to the preset time step length, it is assumed that the input is a small batch of data for the current time step (i.e., electricity consumption information), the hidden state of the previous time step (i.e., the previous time step) is , then the update gate of the current time step is and reset gate The calculation formula is as follows:

[0063] ;

[0064] .

[0065] in, , , and are preset weight parameters, namely is the first preset weight parameter, is the second preset weight parameter, is the third preset weight parameter, is the fourth preset weight parameter; and are preset bias parameters, namely is the first preset bias parameter, is the second preset bias parameter. After summing, the sigmoid (S-type threshold) function is used to convert the input value to the interval (0,1); each preset weight parameter and each preset bias parameter can be automatically learned through the training process of the model without manual setting.

[0066] Correspondingly, the candidate hidden state of the current time step It is a temporary hidden state introduced in GRU, which is composed of the input of the current time step and the hidden state of the previous time step. and reset gate The calculation formula is as follows:

[0067] .

[0068] in, and are preset weight parameters, namely is the fifth preset weight parameter, is the sixth preset weight parameter; is the preset bias parameter, that is is the third preset bias parameter; ⊙ is the Hadamard product operator, that is, element-wise multiplication. And the hyperbolic tangent function is used here As an activation function, the value of the candidate hidden state is kept between the interval (-1, 1).

[0069] Hidden State (i.e. the predicted current information at the current time step) is the hidden state of the previous moment and the current candidate hidden state The weighted sum of The calculation formula is as follows:

[0070] .

[0071] That is to say, in this step, , calculate and obtain the predicted current information of the current time step; where, is the update gate for the current time step, ; is the candidate hidden state of the current time step, ; is the current information of the current time step in the power consumption parameter information, is the predicted current information of the previous time step stored, is the reset gate for the current time step, ; , , , , and are the preset weight parameters of the target gated recurrent unit, , and are the preset bias parameters of the target gated recurrent unit, ⊙ is the Hadamard product operator, is the S-type threshold function, is the hyperbolic tangent function.

[0072] Furthermore, this embodiment may also include a data preprocessing process of the detected power parameter information and working condition information to improve the accuracy of current prediction. For example, in this step, the power parameter information and working condition information may be preprocessed (such as processing missing values, duplicate values, abnormal values, and invalid values) to obtain preprocessed power parameter information and working condition information; based on the target gated cycle unit corresponding to the preprocessed working condition information and the preprocessed power parameter information, the working current of the hardware to be predicted is predicted to obtain the predicted current information.

[0073] Step 103: Obtain a fault prediction result of the hardware to be predicted based on the predicted current information and the target current specification information; wherein the target current specification information is preset current specification information corresponding to the working condition information.

[0074] It can be understood that the target current specification information in this step can be the preset current specification information currently used for the current fault check of the hardware to be predicted, such as the preset current specification information corresponding to the current target working model of the hardware to be predicted, such as Figure 2 and Figure 3 The preset current specification information can be the electrical parameters of the hardware in various working scenarios specified in the hardware component specification; for example, when the hardware to be predicted is a hard disk, as shown in Table 1, the preset current specification information can be the electrical parameters of different hard disk product models in different working scenarios (such as random read scenarios and random write scenarios), such as the ST10000NM017B model HDD (mechanical hard disk) in the random read scenario, the maximum value of 5V / 12V current can be 0.374A / 0.827A respectively.

[0075] Table 1 Display of some preset current specification information

[0076]

[0077] Correspondingly, the specific method of obtaining the fault prediction result of the hardware to be predicted according to the predicted current information and the target current specification information in this step can be set by the designer according to the practical scenario and user needs. For example, it can be determined whether there is an abnormal current signal in the predicted current information; if so, the fault prediction result is that there is a current abnormality; if not, the fault prediction result is determined to be that there is no current abnormality; wherein, the abnormal current signal is not within the target current range in the target current specification information, and the target current range is a preset specified current range corresponding to the power supply voltage of the abnormal current signal, such as the preset specified current range of the 5V current of the HDD of the ST10000NM017B model can be less than or equal to 0.374A. When there is a 5V current greater than 0.374A in the predicted current information of the hardware to be predicted (i.e., the hard disk), it can be determined that the fault prediction result is that there is a current abnormality.

[0078] Furthermore, the present embodiment may also include an alarm process for hardware failures; for example, after step 103, if the fault prediction result is that there is a current anomaly, then current anomaly prompt information is output; wherein the current anomaly prompt information may include identification information of the hardware to be predicted. The present embodiment does not limit the specific output alarm method of the current anomaly prompt information. For example, the current anomaly prompt information may be displayed on the BMC Web page, or on the interface of the server's management software (such as Hadoop storage cluster management software), or the color corresponding to the current anomaly prompt information may be displayed on the server's target indicator light; wherein the target indicator light is the indicator light corresponding to the hardware to be predicted. Figure 2 and Figure 3 As shown, when the predicted current signal is abnormal, the OS can transmit the drive letter (i.e., identification information) and error information of the abnormal hard disk (such as HDD) to the BMC, and the BMC displays the abnormal current prompt information on its own web page and lights up the corresponding fault indicator light. At the same time, the BMC can report the fault to the management software, so as to display the abnormal current prompt information on the interface of the management software, and prompt the user through the management software that the hard disk has sent a fault.

[0079] Correspondingly, in actual business use, there may be situations where the hardware has abnormal current signals for multiple times in a short period of time, or the customer is unable to handle the abnormal hardware in time. The method provided in this embodiment may also include an automatic power-off process for the faulty hardware. For example, if it is detected that the number of current anomalies within a preset time period reaches a threshold, the power supply to the predicted hardware is disconnected, and a hardware power-off prompt message is output. Figure 2 and Figure 3As shown, the BMC can continuously accumulate the number of times the abnormal current signal is recognized. When the accumulated number reaches the threshold within the preset time period, the BMC sends a power-off instruction to the CPLD (Complex Programmable Logic Device), and the CPLD actively disconnects the power supply of the abnormal hard disk (i.e., the hardware to be predicted), completes the physical isolation of the faulty hard disk, and avoids customer data loss. At the same time, the BMC can pass this operation to the management software, notifying the management software to prompt the customer to replace the hard disk; accordingly, after the customer completes the hard disk replacement, the BMC can control the CPLD to restore the power supply of the hard disk slot to complete the fault processing.

[0080] That is, the server can use the BMC to control the CPLD to disconnect the power supply of the hardware to be predicted, so as to achieve physical isolation of the faulty hardware.

[0081] Furthermore, the method provided in this embodiment may also include a fault detection process for the collected power parameter information before step 102 or step 103; for example, before step 102, it is possible to determine whether there is an abnormal current signal in the power parameter information based on the target current specification information; wherein the abnormal current signal is not within the target current range in the target current specification information, and the target current range is a preset specified current range corresponding to the supply voltage of the abnormal current signal; if not, proceed to step 102; if so, the current abnormality prompt information can be directly output, i.e., there is no need to continue to use the power parameter information with abnormal current signals for prediction.

[0082] Correspondingly, the method provided in this embodiment may also include a training process of a preset gated recurrent unit and the above preset working model, such as Figure 3 The OS can use GPU (graphics processing unit, graphics processor) to train the preset gated loop unit and the preset working model. For example, in order to improve the accuracy of current prediction, in this embodiment, when it is determined that there is no abnormal current signal in the power parameter information, the power parameter information and the working condition information can also be stored in the training data set of the target working model, so as to update the target working model using the training data set and adjust the target gated loop unit; wherein the target working model is a preset working model corresponding to the working condition information, and all preset working models include preset working modes under various working scenarios corresponding to the target product model, and the target product model is the product model of the hardware to be predicted; the target gated loop unit is the preset gated loop unit corresponding to the target working model, and the target current specification information is the preset current specification information corresponding to the target working model.

[0083] That is to say, in this embodiment, the power consumption parameter information and working status information collected in real time at each sampling moment can be recorded as a group of data. After being compared with the target current specification information and confirmed to be correct (that is, there is no abnormal current signal), the data is saved to the training data set of the corresponding preset working model (that is, the target working model), so that the target working model can be automatically trained and optimized later, so as to use the optimized target working model to tune the GRU parameters (such as various preset weight parameters and bias parameters) in the corresponding preset gated recurrent unit, thereby improving the accuracy of subsequent current prediction.

[0084] Correspondingly, the specific training method for training the preset working models and the preset gated cycle units corresponding to each preset working model using the training data in the training data set of each preset working model (such as the power consumption parameter information and working condition information at each sampling moment) can be set by the designer himself, such as by adopting the same or similar method as the model training method in the prior art. As long as the corresponding target working model can be identified by utilizing the power consumption parameter information and working condition information collected in real time, and the working current can be predicted by using the target gated cycle unit corresponding to the target working model, this embodiment does not impose any restrictions on this.

[0085] In this embodiment, the embodiment of the present invention predicts the operating current of the hardware to be predicted according to the target gated cycle unit and power consumption parameter information to obtain predicted current information. The gated cycle unit can be used to perform efficient and accurate current prediction on the current monitored in real time by the hardware in the server, thereby achieving accurate prediction of hardware failures and effectively improving the reliability and stability of the server.

[0086] Corresponding to the above method embodiment, the embodiment of the present invention further provides a server, and the server described below and the hardware failure prediction method of the server described above can refer to each other.

[0087] Please refer to Figure 5 , Figure 5 A simplified structural diagram of a server provided by an embodiment of the present invention. The server may include:

[0088] A memory D1, for storing computer programs;

[0089] The processor D2 is used to implement the steps of the server hardware failure prediction method provided by the above method embodiment when executing a computer program.

[0090] Accordingly, please refer to Figure 6 , Figure 6A specific structural diagram of a server provided in an embodiment of the present invention. The server 310 may have relatively large differences due to different configurations or performances, and may include one or more processors 322 (for example, one or more central processing units CPU) and memory 332, and one or more storage media 330 (for example, one or more mass storage devices) storing application programs 342 or data 344. Among them, the memory 332 and the storage medium 330 can be short-term storage or permanent storage. The program stored in the storage medium 330 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the host. Furthermore, the processor 322 can be configured to communicate with the storage medium 330 and execute a series of instruction operations in the storage medium 330 on the server 310.

[0091] The server 310 may further include one or more power supplies 326, one or more wired or wireless network interfaces 350, one or more input and output interfaces 358, and / or one or more operating systems 341, such as Linux system.

[0092] The server 310 in this embodiment may specifically be a server in a distributed storage system.

[0093] The steps in the server hardware failure prediction method described above can be implemented by the structure of the server.

[0094] Corresponding to the above method embodiment, the embodiment of the present invention further provides a computer program product. The computer program product described below and the server hardware failure prediction method described above can refer to each other.

[0095] A computer program product includes a computer program / instruction, which, when executed by a processor, implements the steps of the server hardware failure prediction method provided by the above method embodiment.

[0096] Corresponding to the above method embodiment, an embodiment of the present invention further provides a computer-readable storage medium. The computer-readable storage medium described below and the server hardware failure prediction method described above can refer to each other.

[0097] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the server hardware failure prediction method of the above method embodiment.

[0098] The computer-readable storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc., which can store program codes.

[0099] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the server, computer program product, and computer-readable storage medium disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0100] The above is a detailed introduction to a server hardware fault prediction method, server, computer program product and computer-readable storage medium provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the present invention.

Claims

1. A method for predicting hardware failure of a server, characterized in that: include: After the server is powered on, power usage parameter information and working condition information of the hardware to be predicted are detected; wherein the power usage parameter information includes current information or the current information and supply voltage information, and the hardware to be predicted is a hardware in the server; According to the target gated cycle unit and the power consumption parameter information, the operating current of the hardware to be predicted is predicted to obtain predicted current information; wherein the target gated cycle unit is a preset gated cycle unit corresponding to the working condition information; According to the predicted current information and the target current specification information, a fault prediction result of the hardware to be predicted is obtained; wherein the target current specification information is the preset current specification information corresponding to the working condition information; The step of predicting the operating current of the hardware to be predicted according to the target gated cycle unit and the power usage parameter information, and obtaining the predicted current information, further includes: Determine a target working model according to the working condition information; wherein the target working model is any preset working model, all of which include preset working modes under various working scenarios corresponding to the target product model, and the target product model is the product model of the hardware to be predicted; The target gated cycle unit is determined according to the target working model; wherein the target gated cycle unit is a preset gated cycle unit corresponding to the target working model, and the target current specification information is preset current specification information corresponding to the target working model.

2. The server hardware failure prediction method according to claim 1, characterized in that: The hardware to be predicted is a hard disk, and the working status information includes read-write process information and / or read-write physical block information.

3. The server hardware failure prediction method according to claim 2, characterized in that: The detecting of the power usage parameter information and working condition information of the hardware to be predicted includes: A block tracking tool is used to monitor the input / output requests of the hardware to be predicted to obtain the working status information.

4. The server hardware failure prediction method according to claim 1, characterized in that: The detecting of the power usage parameter information and working condition information of the hardware to be predicted includes: After the object storage service is started, the baseboard management controller sends a sampling enable signal to the field programmable gate array; Using the field programmable gate array, sampling the power usage parameters of the hardware to be predicted according to the sampling enable signal, obtaining the power usage parameter information, and transmitting the power usage parameter information to the operating system; The operating system is used to synchronously obtain working condition information corresponding to the power usage parameter information.

5. The server hardware failure prediction method according to claim 1, characterized in that: The step of predicting the operating current of the hardware to be predicted based on the target gated cycle unit and the power usage parameter information to obtain the predicted current information includes: pass , calculate and obtain the predicted current information of the current time step; where, is the update gate for the current time step, ; is the candidate hidden state of the current time step, ; is the current information of the current time step in the power consumption parameter information, is the predicted current information of the previous time step stored, is the reset gate for the current time step, ; , , , , and are respectively the preset weight parameters of the target gated recurrent unit, , and are preset bias parameters of the target gated recurrent unit, ⊙ is the Hadamard product operator, is the S-type threshold function, is the hyperbolic tangent function.

6. The server hardware failure prediction method according to claim 1, characterized in that: The obtaining, according to the predicted current information and the target current specification information, a fault prediction result of the hardware to be predicted includes: Determine whether there is an abnormal current signal in the predicted current information; wherein the abnormal current signal is not within the target current range in the target current specification information, and the target current range is a preset specified current range corresponding to the supply voltage of the abnormal current signal; If so, the fault prediction result is that there is a current abnormality.

7. The server hardware failure prediction method according to claim 1, characterized in that: The step of predicting the operating current of the hardware to be predicted according to the target gated cycle unit and the power usage parameter information, and obtaining the predicted current information, further includes: According to the target current specification information, determine whether there is an abnormal current signal in the power usage parameter information; wherein the abnormal current signal is not within the target current range in the target current specification information, and the target current range is a preset specified current range corresponding to the power supply voltage of the abnormal current signal; If not, the step of predicting the operating current of the hardware to be predicted based on the target gated cycle unit and the power usage parameter information to obtain the predicted current information is executed.

8. The server hardware failure prediction method according to claim 7, characterized in that: After judging whether there is an abnormal current signal in the power usage parameter information according to the target current specification information, the method further includes: When there is no abnormal current signal in the power usage parameter information, the power usage parameter information and the working condition information are stored in the training data set of the target working model, so as to use the training data set to update the target working model and adjust the target gated cycle unit; wherein the target working model is a preset working model corresponding to the working condition information, and all the preset working models include preset working modes under various working scenarios corresponding to the target product model, and the target product model is the product model of the hardware to be predicted; the target gated cycle unit is the preset gated cycle unit corresponding to the target working model, and the target current specification information is the preset current specification information corresponding to the target working model.

9. The server hardware failure prediction method according to any one of claims 1 to 8, characterized in that: After obtaining the fault prediction result of the hardware to be predicted according to the predicted current information and the target current specification information, the method further includes: If the fault prediction result is that there is a current abnormality, then current abnormality prompt information is output; wherein the current abnormality prompt information includes identification information of the hardware to be predicted.

10. The server hardware failure prediction method according to claim 9, characterized in that: Also includes: If it is detected that the number of times the current anomaly occurs within a preset time period reaches a number threshold, the power supply to the hardware to be predicted is disconnected, and hardware power-off prompt information is output.

11. The server hardware failure prediction method according to claim 9, characterized in that: The output current abnormality prompt information includes: The current abnormality prompt information is displayed on the web page of the baseboard management controller; and / or, the current abnormality prompt information is displayed on the interface of the management software of the server; and / or, the color corresponding to the current abnormality prompt information is displayed on the target indicator light of the server; wherein, the target indicator light is the indicator light corresponding to the hardware to be predicted.

12. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of the server hardware failure prediction method as described in any one of claims 1 to 11 are implemented.

13. A server, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the server hardware failure prediction method as described in any one of claims 1 to 11 when executing the computer program.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the server hardware failure prediction method according to any one of claims 1 to 11 are implemented.

Citation Information

Cited By

  • Server hardware equipment monitoring system and method

    CN120596319A