Server cluster fault prediction method, apparatus and device, and readable storage medium

By obtaining and analyzing operating parameters and business type parameters in the server cluster, and using pre-trained models for fault prediction, the problem of difficulty in fault prediction for specific business scenarios in the existing technology is solved, and the accuracy and applicability of fault prediction are improved. , optimizes resource allocation and reduces the impact of unexpected failures and maintenance on the business.

CN118550804APending Publication Date: 2024-08-27INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410545221.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-30
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Existing technology makes it difficult to predict failures for specific business scenarios in server clusters, resulting in low resource allocation efficiency and the inability to effectively reduce the impact of unexpected failures and maintenance on the business.

Method used

Obtain operating parameters and business type parameters through the baseboard management controller in the server cluster, determine the business scenario of each server, and input it into the pre-trained fault prediction model to obtain fault results, and use the Akaike information criterion to optimize the model parameter combination to improve Prediction accuracy.

Benefits of technology

Distinguishing servers according to business scenarios in the server cluster improves the accuracy and applicability of fault prediction, optimizes resource allocation, and reduces the impact of unexpected faults and maintenance on the business.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550804A
    Figure CN118550804A
Patent Text Reader

Abstract

The invention provides a server cluster fault prediction method, device and equipment and a readable storage medium, and the method comprises the steps: obtaining the operation parameters and service type parameters of a plurality of servers through the substrate management controllers of the plurality of servers in a server cluster; the service type parameter represents a service scene where the server works, the service scene represents the purpose of the server, and the service scene at least comprises one of a storage service scene and a calculation service scene; according to the service type parameter, determining a service scene associated with each server, and determining an operation parameter of the server working in each service scene; inputting the operation parameters of the server working in each business scene into a pre-trained fault prediction model, and obtaining a fault result output by the fault prediction model for each business scene; the fault result at least comprises the number of server faults. According to the method and the device, the applicability of fault prediction for a service scene can be improved in a server cluster scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a server cluster fault prediction method, device, electronic device, and computer-readable storage medium. Background Art

[0002] With the advent of the era of big data, cloud computing, and artificial intelligence, Internet business volume and data volume have increased, and the amount of computing has also increased. As the amount of data increases, the number of servers deployed is increasing, the density is increasing, and the carrying pressure is also increasing. In order to reduce unexpected failures and maintenance and reduce the impact on running business, it is necessary to predict the failure of running servers.

[0003] Currently, the operation data of each server is obtained, and the failure of each server is predicted based on the operation data of each server.

[0004] However, the current solution cannot perform targeted fault prediction for servers used for specific services in the entire server cluster when the server deployment density increases to form a server cluster, and has low applicability. Summary of the invention

[0005] The embodiments of the present disclosure provide a server cluster fault prediction method, device, electronic device and readable storage medium to solve the problem in the prior art that insufficient resources lead to restart and thus low resource allocation efficiency.

[0006] In a first aspect, an embodiment of the present disclosure provides a server cluster failure prediction method, comprising:

[0007] Obtaining, through respective baseboard management controllers of multiple servers in a server cluster, operating parameters and business type parameters of the multiple servers; the business type parameter indicates a business scenario in which the server works, the business scenario indicates a purpose of the server, and the business scenario includes at least one of the following: a storage business scenario and a computing business scenario;

[0008] Determine the business scenario associated with each server according to the business type parameter, and determine the operating parameters of the server working in each business scenario;

[0009] The operating parameters of the server working in each business scenario are respectively input into the pre-trained fault prediction model to obtain the fault results output by the fault prediction model for each business scenario; the fault results at least include the number of server failures.

[0010] Optionally, the method further includes:

[0011] Obtaining operating parameters and service type parameters of the server within a preset historical time range as a training data set for the fault prediction model; the fault prediction model includes a plurality of model parameters, and the model parameters have at least one corresponding candidate value;

[0012] Dividing the training data set to obtain k training data subsets;

[0013] According to the plurality of model parameters and the corresponding candidate values, a plurality of model parameter combinations are obtained; wherein the model parameter combinations each include a plurality of model parameters that are specific candidate values;

[0014] Selecting one training data subset from the k training data subsets as a test set, and using the other training data subsets as training sets;

[0015] Under each model parameter combination, the fault prediction model is trained based on the training set, and the fault prediction model is verified based on the test set to obtain a verification result;

[0016] Entering the step of selecting a training data subset from the k training data subsets as a test set, continuing to select the next training data subset as the test set, and using other training data subsets as training sets until k verification results corresponding to the current model parameter combination are obtained;

[0017] Entering the step of training the fault prediction model based on the training set under each model parameter combination, and verifying the fault prediction model based on the test set to obtain a verification result, until k verification results corresponding to each model parameter combination are obtained

[0018] Based on the k verification results corresponding to each model parameter combination, the performance parameters of each model parameter combination are obtained by calculation;

[0019] According to the performance parameters of each model parameter combination, a target model parameter combination is determined from the multiple model parameter combinations to obtain a pre-trained fault prediction model having the target model parameter combination.

[0020] Optionally, the method further includes:

[0021] Obtain the number of server failures corresponding to the target business scenario within a preset historical time range, and calculate the proportion of the number of server failures of the target business scenario in the number of server failures of all business scenarios;

[0022] Inputting a preset time length and a service type parameter corresponding to a target service scenario into the fault prediction model to obtain a first fault result;

[0023] Inputting the preset time length into the fault prediction model to obtain an initial second fault result; the initial second fault result includes the number of faults in all business scenarios;

[0024] Based on the initial second fault result and the specific gravity, obtaining a final second fault result;

[0025] The fault result of the target business scenario is obtained by calculation according to the first fault result, the final second fault result and the preset weight value.

[0026] Optionally, the preset historical time range includes multiple time units, and the time unit is one of year, month, and day;

[0027] The step of obtaining the operating parameters and service type parameters of the server within a preset historical time range as a training data set for the fault prediction model includes:

[0028] When the operating parameters and service type parameters of at least one time unit are missing, determining the operating parameters and service type parameters of a previous time unit and a subsequent time unit of the at least one time unit;

[0029] The operating parameters and the service type parameters of the at least one time unit are obtained by calculation according to the operating parameters and the service type parameters of the previous time unit and the next time unit.

[0030] Optionally, the number of server failures corresponding to the target business scenario is a collection of the number of server failures caused by different hardware failure types;

[0031] After the step of calculating the proportion of the number of server failures in the target business scenario to the number of server failures in all business scenarios, the method further includes:

[0032] Receive a hardware fault troubleshooting message, and determine a target hardware fault type corresponding to the hardware fault troubleshooting message;

[0033] According to the number of server failures corresponding to the target hardware failure type, the proportion of the number of server failures in the target business scenario in the number of server failures in all business scenarios is updated.

[0034] Optionally, the fault prediction model includes a plurality of model parameters, each model parameter having at least one corresponding candidate value; the method further includes:

[0035] According to the plurality of model parameters and the corresponding candidate values, a plurality of model parameter combinations are obtained; each of the model parameter combinations includes a plurality of model parameters that are specific candidate values;

[0036] Under each model parameter combination, the performance parameters of the fault prediction model are calculated by the following Akaike information criterion formula:

[0037] AIC=-2ln(L)+2K

[0038] Wherein, AIC represents the performance parameter, L represents the log-likelihood value, and K represents the number of model parameters in the fault prediction model;

[0039] Among the performance parameters corresponding to the multiple model parameter combinations, a target model parameter combination corresponding to a minimum performance parameter value is determined to obtain a pre-trained fault prediction model having the target model parameter combination.

[0040] Optionally, after the step of inputting the operating parameters of the server working in each business scenario into the pre-trained fault prediction model, and obtaining the fault results output by the fault prediction model for each business scenario, the method further includes:

[0041] The fault results of each business scenario are stored in the database respectively, and a call instruction carrying a business type parameter is received from the terminal device;

[0042] In response to the calling instruction, the database is queried for a fault result corresponding to the target service scenario indicated by the service type parameter, and the fault result is returned to the terminal device.

[0043] In a second aspect, an embodiment of the present disclosure provides a server cluster failure prediction device, comprising:

[0044] A cluster parameter acquisition module is used to acquire the operation parameters and business type parameters of multiple servers through the baseboard management controllers of the multiple servers in the server cluster; the business type parameter represents the business scenario of the server, the business scenario represents the purpose of the server, and the business scenario includes at least one of the following: storage business scenario, computing business scenario;

[0045] A business scenario analysis module, used to determine the business scenario associated with each server according to the business type parameter, and determine the operating parameters of the server working in each business scenario;

[0046] A scenario fault prediction module is used to input the operating parameters of the server working in each business scenario into a pre-trained fault prediction model, and obtain the fault results of each business scenario output by the fault prediction model for each business scenario; the fault results include at least the number of server failures.

[0047] Optionally, the device further comprises:

[0048] A historical data acquisition module, used to acquire the operating parameters and service type parameters of the server within a preset historical time range as a training data set for the fault prediction model; the fault prediction model includes a plurality of model parameters, and the model parameters have at least one corresponding candidate value;

[0049] A training subset division module, used for dividing the training data set into k training data subsets;

[0050] A first parameter combination module, configured to obtain a plurality of model parameter combinations according to the plurality of model parameters and corresponding candidate values; wherein the model parameter combinations each include a plurality of model parameters that are specific candidate values;

[0051] A training and testing module, used for selecting one of the k training data subsets as a testing set and using the other training data subsets as training sets;

[0052] A single verification result acquisition module, used for training the fault prediction model based on the training set and verifying the fault prediction model based on the test set to obtain a verification result under each model parameter combination;

[0053] A multi-verification result acquisition module is used to enter the step of selecting a training data subset from the k training data subsets as a test set, continue to select the next training data subset as the test set, and use other training data subsets as training sets until k verification results corresponding to the current model parameter combination are obtained;

[0054] A multi-model testing module, for entering into the step of training the fault prediction model based on the training set under each model parameter combination, and verifying the fault prediction model based on the test set to obtain a verification result, until k verification results corresponding to each model parameter combination are obtained;

[0055] A first performance parameter module is used to calculate and obtain the performance parameters of each model parameter combination based on k verification results corresponding to each model parameter combination;

[0056] The first target parameter module is used to determine a target model parameter combination from the multiple model parameter combinations according to the performance parameters of each model parameter combination, so as to obtain a pre-trained fault prediction model having the target model parameter combination.

[0057] Optionally, the device further comprises:

[0058] A proportion module is used to obtain the number of server failures corresponding to the target business scenario within a preset historical time range, and calculate the proportion of the number of server failures in the target business scenario in the number of server failures in all business scenarios;

[0059] A first fault module, used to input a preset time length and a service type parameter corresponding to a target service scenario into the fault prediction model to obtain a first fault result;

[0060] An initial second fault module, used to input the preset time length into the fault prediction model to obtain an initial second fault result; the initial second fault result includes the number of faults in all business scenarios;

[0061] A final second fault module, used for obtaining a final second fault result based on the initial second fault result and the specific gravity;

[0062] The target fault result module is used to calculate the fault result of the target business scenario according to the first fault result, the final second fault result and a preset weight value.

[0063] Optionally, the preset historical time range includes multiple time units, and the time unit is one of year, month, and day;

[0064] Historical data acquisition module, including:

[0065] The previous and next time submodule is used to determine the operation parameters and service type parameters of the previous time unit and the next time unit of the at least one time unit when the operation parameters and service type parameters of the at least one time unit are missing;

[0066] The previous and next calculation submodule is used to calculate and obtain the operating parameters and business type parameters of the at least one time unit according to the operating parameters and business type parameters of the previous time unit and the next time unit.

[0067] Optionally, the number of server failures corresponding to the target business scenario is a collection of numbers of server failures caused by different hardware failure types; the device further includes:

[0068] A troubleshooting module, configured to receive a hardware troubleshooting message and determine a target hardware fault type corresponding to the hardware troubleshooting message;

[0069] The proportion updating module is used to update the proportion of the number of server failures in the target business scenario in the number of server failures in all business scenarios according to the number of server failures corresponding to the target hardware failure type.

[0070] Optionally, the fault prediction model includes a plurality of model parameters, each model parameter having at least one corresponding candidate value; the device further includes:

[0071] A second parameter combination module, used to obtain a plurality of model parameter combinations according to the plurality of model parameters and corresponding candidate values; the model parameter combinations each include a plurality of model parameters that are specific candidate values;

[0072] The second performance parameter module is used to calculate the performance parameters of the fault prediction model under each model parameter combination by the following Akaike information criterion formula:

[0073] AIC=-2ln(L)+2K

[0074] Wherein, AIC represents the performance parameter, L represents the log-likelihood value, and K represents the number of model parameters in the fault prediction model;

[0075] The second target parameter module is used to determine the target model parameter combination corresponding to the minimum performance parameter value among the performance parameters corresponding to the multiple model parameter combinations, so as to obtain a pre-trained fault prediction model with the target model parameter combination.

[0076] Optionally, the device further comprises:

[0077] A calling module is used to store the fault results of each business scenario in the database and receive a calling instruction carrying a business type parameter from a terminal device;

[0078] The return module is used to query the database for a fault result corresponding to the target business scenario indicated by the business type parameter in response to the calling instruction, and return the fault result to the terminal device.

[0079] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor, a communication interface, a memory, and a communication bus; wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;

[0080] Memory, used to store computer programs;

[0081] The processor is used to implement the steps in the server cluster failure prediction method described in the first aspect when executing the program stored in the memory.

[0082] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the server cluster failure prediction method described in the first aspect above.

[0083] Compared with the prior art, the present invention has the following advantages:

[0084] In the disclosed embodiment, the operating parameters and business type parameters of multiple servers are obtained through the baseboard management controllers of each of the multiple servers in the server cluster; the business type parameter indicates the business scenario of the server, the business scenario indicates the purpose of the server, and the business scenario includes at least one of the following: storage business scenario, calculation business scenario; according to the business type parameter, the business scenario associated with each server is determined, and the operating parameters of the server working under each business scenario are determined; the operating parameters of the server working under each business scenario are respectively input into the pre-trained fault prediction model to obtain the fault result output by the fault prediction model for each business scenario; the fault result includes at least the number of server failures. In the scenario of a server cluster, multiple servers can be distinguished according to the business scenario, and then the operating parameters of the servers under each business scenario are respectively input into the pre-trained fault prediction model to obtain the fault results corresponding to different business scenarios, thereby improving the accuracy and applicability of fault prediction for business scenarios in the server cluster scenario.

[0085] The above description is only an overview of the technical solution of the present disclosure. In order to more clearly understand the technical means of the present disclosure, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present disclosure more obvious and easy to understand, the specific implementation methods of the present disclosure are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0086] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for describing the embodiments are briefly introduced below.

[0087] Figure 1 A step diagram of a server cluster failure prediction method provided by an embodiment of the present disclosure;

[0088] Figure 2 A schematic diagram of the architecture of multiple servers provided in an embodiment of the present disclosure;

[0089] Figure 3 A step diagram of another server cluster failure prediction method provided by an embodiment of the present disclosure;

[0090] Figure 4 A schematic diagram of the architecture of fault prediction provided by an embodiment of the present disclosure;

[0091] Figure 5 A flow chart of server cluster failure prediction provided by an embodiment of the present disclosure;

[0092] Figure 6 A schematic diagram of a server cluster fault prediction device provided by an embodiment of the present disclosure;

[0093] Figure 7A block diagram of an electronic device provided for an embodiment of the present disclosure. DETAILED DESCRIPTION

[0094] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can also be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0095] With the advent of the era of big data, cloud computing, and artificial intelligence, the volume of Internet business and data has increased dramatically, and the amount of computing has also increased accordingly; in server systems, as the amount of data increases, the number of servers deployed is increasing, the density is increasing, and the carrying pressure is also increasing. In combination with specific business scenarios, servers also need to be refined into search-type, storage-type, network-type, computing-type, and artificial intelligence (AI)-type servers. In order to reduce unexpected failures and maintenance, and reduce the impact on running business, it is necessary to predict failures of running servers to ensure the maximum degree of unexpected downtime for maintenance.

[0096] Figure 1 A server cluster failure prediction method provided by an embodiment of the present disclosure includes:

[0097] Step 101, obtaining the operation parameters and business type parameters of the server through the baseboard management controller of the server in the server cluster; the business type parameter represents the business scenario of the server, and the business scenario includes at least one of the following: storage business scenario and computing business scenario;

[0098] In the disclosed embodiment, each server is configured with a baseboard management controller (BMC), which is a dedicated controller for monitoring and managing the server. The BMC is an independent system under the host server system. The independent system of the baseboard management controller can have a processor and memory. Even if the server hardware or the server operating system is down or shut down, the server can still be managed by the BMC, and the BMC can implement the server out-of-band management function.

[0099] The operating parameters of the server may include operating parameters of various hardware of the server, such as power consumption values ​​of hardware such as a central processing unit (CPU), memory, network card, and graphics card, or may be the server startup time, the time since the server was manufactured, etc. The content of the operating parameters of the server is not specifically limited here.

[0100] In a server cluster, different servers may have different functions, such as storage, computing, etc. The baseboard management controller may also collect service type parameters of the current server, and use the service type parameters to represent the service scenario of the server.

[0101] The operating parameters and business type parameters obtained by the BMC of each server can be reported to a server, which can be used for fault prediction. Figure 2 , which is a schematic diagram of the architecture of multiple servers provided by an embodiment of the present disclosure; Figure 2 The server 201 includes a server for fault prediction, a server 202 and a server 203 in the server cluster for storing business scenarios, and a server 204 and a server 205 in the server cluster for calculating business scenarios. It can be understood that Figure 2 The business scenarios and numbers of servers in the figure are for reference only and can be adjusted according to specific needs.

[0102] Step 102, determining the business scenario associated with the server according to the business type parameter, and determining the operating parameters of the server working in the business scenario;

[0103] In the disclosed embodiment, the fault prediction server may determine the business scenario associated with each server based on the business type parameters reported by the BMC of the server, that is, whether the server is used for storage business scenarios or computing business scenarios, etc.

[0104] After the business scenario is determined for each server in the server cluster that needs to be predicted, the servers in the server cluster can be classified based on the business scenario. Figure 2 As shown, in terms of the storage business scenario, the server in this scenario includes server 202 and server 203; in terms of the computing business scenario, the server in this scenario includes server 204 and server 205. After determining the server in each business scenario, the operating parameters in each business scenario can be obtained.

[0105] Step 103: input the operating parameters under the business scenario into a pre-trained fault prediction model to obtain a fault result output by the fault prediction model; the fault result at least includes the number of server failures.

[0106] In the disclosed embodiment, for each business scenario, the operating parameters under the business scenario are input into the pre-trained fault prediction model to obtain the fault result output by the fault prediction model. The fault result is a fault prediction for a specific business scenario. The fault prediction model may be pre-trained, and the fault prediction model may be a neural network model, including feedforward neural networks (FNN), convolutional neural networks (CNN) and recurrent neural networks (RNN), etc.; it may also be a deep learning model, including convolutional neural networks (CNN) and recurrent neural networks (RNN), etc. It may also be a support vector machine (SVM), decision trees (Decision Trees), random forests (Random Forest), etc. Different models can be selected according to specific tasks and scenarios, and are not specifically limited here.

[0107] By inputting the operating parameters of the business scenario into the fault prediction model, the possible fault results of the prediction scenario can be predicted. The fault result is, for example, the number of server failures, which indicates the number of servers that may fail among the multiple servers belonging to the business scenario. The fault result may also include information such as the fault time, the name of the faulty hardware, etc., which is not specifically limited here.

[0108] In summary, in the disclosed embodiment, the operating parameters and business type parameters of multiple servers are obtained through the baseboard management controllers of each of the multiple servers in the server cluster; the business type parameter represents the business scenario of the server, the business scenario represents the purpose of the server, and the business scenario includes at least one of the following: storage business scenario, calculation business scenario; according to the business type parameter, the business scenario associated with each server is determined, and the operating parameters of the server working under each business scenario are determined; the operating parameters of the server working under each business scenario are respectively input into the pre-trained fault prediction model to obtain the fault result output by the fault prediction model for each business scenario; the fault result includes at least the number of server failures. In the scenario of a server cluster, multiple servers can be distinguished according to the business scenario, and then the operating parameters of the servers under each business scenario are respectively input into the pre-trained fault prediction model to obtain the fault results corresponding to different business scenarios, thereby improving the accuracy and applicability of fault prediction for business scenarios in the server cluster scenario.

[0109] Figure 3 is a complete embodiment provided by the present disclosure, such as Figure 3 As shown, including:

[0110] Step 301, obtaining operation parameters and business type parameters of the multiple servers in the server cluster through respective baseboard management controllers of the multiple servers; the business type parameter represents a business scenario of the server, the business scenario represents the purpose of the server, and the business scenario includes at least one of the following: a storage business scenario and a computing business scenario;

[0111] Step 302, determining the business scenario associated with each server according to the business type parameter, and determining the operating parameters of the server working in each business scenario;

[0112] Step 303: Input the operating parameters of the server working in each business scenario into the pre-trained fault prediction model respectively to obtain the fault results output by the fault prediction model for each business scenario; the fault results include at least the number of server failures.

[0113] The contents of steps 301-303 may refer to the above embodiment. Figure 1 The content will not be repeated here.

[0114] Optionally, the method further comprises steps A1-A9:

[0115] Step A1, obtaining the operating parameters and service type parameters of the server within a preset historical time range as a training data set of the fault prediction model; the fault prediction model includes a plurality of model parameters, and the model parameter has at least one corresponding candidate value;

[0116] Step A2, dividing the training data set to obtain k training data subsets;

[0117] Step A3, obtaining a plurality of model parameter combinations according to the plurality of model parameters and the corresponding candidate values; wherein the model parameter combinations each include a plurality of model parameters that are specific candidate values;

[0118] Step A4, selecting a training data subset from the k training data subsets as a test set, and using the other training data subsets as training sets;

[0119] Step A5, under each model parameter combination, training the fault prediction model based on the training set, and verifying the fault prediction model based on the test set to obtain a verification result;

[0120] Step A6, entering the step of selecting a training data subset from the k training data subsets as a test set, continuing to select the next training data subset as the test set, and using other training data subsets as training sets until k verification results corresponding to the current model parameter combination are obtained;

[0121] Step A7, entering the step of training the fault prediction model based on the training set under each model parameter combination, and verifying the fault prediction model based on the test set to obtain a verification result, until k verification results corresponding to each model parameter combination are obtained;

[0122] Step A8, based on the k verification results corresponding to each model parameter combination, calculate and obtain the performance parameters of each model parameter combination;

[0123] Step A9, determining a target model parameter combination from the multiple model parameter combinations according to the performance parameters of each model parameter combination, so as to obtain a pre-trained fault prediction model having the target model parameter combination.

[0124] In the embodiment of the present disclosure, the operating parameters and service type parameters of the server within a preset historical time range may be obtained as a training data set for the fault prediction model. For example, for the servers belonging to a specific server cluster, the historical five-year fault data samples (including the historical fault conditions of each month in the past five years, hardware power consumption parameters, operating time, total number of faults per year, etc.)

[0125] The data can also be preprocessed, and the acquired data can be processed into time series data using the data analysis library and converted into dataframe data format, and all data in the time column can be converted into time format to facilitate data analysis and processing. Finally, a training data set for training the fault prediction model is obtained. Before training the model, the training data set is divided into k training data subsets, which can also be called k "folds".

[0126] The fault prediction model may be a support vector machine (SVM), which may include multiple model parameters, such as the order p of the autoregressive term (AR), the order (D) d of the difference term, the order q of the moving average term (MA), the order P of the seasonal autoregression term (SAR), the order (DS) D of the seasonal difference term (SI), the order Q of the seasonal moving average term (SMA), the length s of the seasonal cycle, etc. The values ​​of these parameters may be 0, 1, 2 or other values.

[0127] The possible values ​​of each parameter can be arranged and combined, and all possible combination results can be listed to generate a "grid". The model parameter combination formed according to the aforementioned model parameters can have different values, so that multiple model parameter combinations can be obtained, and the specific values ​​of each model parameter combination are different.

[0128] During training, a grid search algorithm can be used. Among the k training data subsets, one training data subset can be selected as a test set, and the other training data subsets can be used as training sets. For example, if there are 100 training data subsets, one can be arbitrarily selected as a test set, and the other 99 training data subsets can be used as training sets. Under a model parameter combination, that is, the fault prediction model has various parameters in the model parameter combination, the fault prediction model is trained on the training set, and the fault prediction model is verified based on the test set to obtain a verification result. The verification result can be the difference between the fault result output by the fault prediction model and the actual fault result after the test set is input. For example, the test set is the operating parameters of a group of servers, and the fault result output by the fault prediction model is that the number of server failures in the group of servers is, for example, 2. However, under the operating parameters of the group of servers, the actual number of server failures is 3, so there is a difference.

[0129] Continue to select the next training data subset as the test set, and use other training data subsets as the training set. Repeat the above process. Since there are k training data subsets in total, k verification results corresponding to the current model parameter combination can be obtained.

[0130] Similarly, for other model parameter combinations, the above training and verification steps are performed to obtain k verification results for each model parameter combination. The mean absolute deviation (MAD) can be used. MAD is the average of the absolute values ​​of the difference between the predicted value and the true value. Based on the k verification results, the performance parameters of the fault prediction model under each model parameter combination can be calculated. Other error calculation methods, such as mean square error, etc., can also be used.

[0131] Then, according to the performance parameters of each model parameter combination, a target model parameter combination is determined from multiple model parameter combinations, and the fault prediction model with the target model parameter combination is the pre-trained fault prediction model.

[0132] Figure 4 is a schematic diagram of the architecture of fault prediction provided by an embodiment of the present disclosure; Figure 4In the figure, the server business layer 401 indicates that the servers in the server cluster are used to store business scenarios, calculate business scenarios, etc.; the server hardware layer 402 indicates that the hardware in the server may include processors, memory, hard disks, etc.; the information collection layer 402 indicates that the server out-of-band management function is realized through the baseboard management controller, the server operating parameters of different business scenarios are collected, and the data format is processed; the algorithm logic training layer 404 indicates that according to the collected data, the data model training server is trained, run, and the fault results are output.

[0133] In the implementation of the embodiment of the present disclosure, after obtaining historical data, multiple training data subsets are obtained, and then divided into one test set and multiple training sets, k training data subsets are traversed, and multiple training and verification are performed. For multiple model parameter combinations, the same training and verification are performed to obtain k verification results, and the model performance is evaluated based on the k verification results of each model parameter combination, and finally the fault prediction model with the highest accuracy is selected, which can improve the accuracy of server cluster fault prediction.

[0134] Optionally, the method further includes:

[0135] Obtain the number of server failures corresponding to the target business scenario within a preset historical time range, and calculate the proportion of the number of server failures of the target business scenario in the number of server failures of all business scenarios;

[0136] Inputting a preset time length and a service type parameter corresponding to a target service scenario into the fault prediction model to obtain a first fault result;

[0137] Inputting the preset time length into the fault prediction model to obtain an initial second fault result; the initial second fault result includes the number of faults in all business scenarios;

[0138] Based on the initial second fault result and the specific gravity, obtaining a final second fault result;

[0139] The fault result of the target business scenario is obtained by calculation according to the first fault result, the final second fault result and the preset weight value.

[0140] In an embodiment of the present disclosure, the number of server failures corresponding to the target business scenario within a preset historical time range is obtained, and the proportion of the number of server failures in the target business scenario in the number of server failures in all business scenarios is calculated. The process of calculating the proportion may be different, and the number of server failures in the target business scenario in a specific year may be directly obtained, for example, the number of server failures in the storage business scenario in 22 years is obtained. Then, it is compared with the number of server failures in all business scenarios in a specific year to obtain the proportion. It may also be that for each month in multiple months, the number of server failures in the target business scenario and the number of server failures in all business scenarios are obtained, the proportion of a specific month is calculated, and then the average of the proportions of multiple months is used as the final proportion. The method of calculating the proportion is not specifically limited here.

[0141] Then, the preset time length and the business type parameters corresponding to the target business scenario are input into the fault prediction model to obtain the first fault result. The fault information contained in the first fault result is not repeated here. Continue to input the preset time length into the fault prediction model to obtain the initial second fault result. It can be understood that since only the preset time length is input, the fault result output by the model is the server fault result of all business scenarios. Therefore, the initial second fault result combined with the proportion calculation can obtain the final second fault result under the business scenario.

[0142] Based on the first fault result and the final second fault result, combined with the preset weight value, the fault result of the target business scenario is calculated.

[0143] Failure3=z1×Failure1+z2×Failure2

[0144] Among them, Failure3 is the failure result of the target business scenario, Failure1 is the first failure result, Failure2 is the initial second failure result, and z1 and z2 are preset weight values.

[0145] In implementing the embodiments of the present disclosure, historical data is provided to calculate the proportion of the number of failures in the target business scenario to the number of failures in all business scenarios. Then, the preset time length and business type parameters are respectively input into the failure prediction model, and the preset time length is input into the failure prediction model. The number of failures in the target business scenario and the number of failures in all business scenarios that may occur under the preset time length can be obtained respectively, and the final failure result of the target business scenario is obtained by combining the proportion and weight value, which can improve the accuracy of failure prediction.

[0146] The preset historical time range includes a plurality of time units, wherein the time unit is one of a year, a month, and a day;

[0147] The step of obtaining the operating parameters and service type parameters of the server within a preset historical time range as a training data set for the fault prediction model includes:

[0148] When the operating parameters and service type parameters of at least one time unit are missing, determining the operating parameters and service type parameters of a previous time unit and a subsequent time unit of the at least one time unit;

[0149] The operating parameters and the service type parameters of the at least one time unit are obtained by calculation according to the operating parameters and the service type parameters of the previous time unit and the next time unit.

[0150] In the disclosed embodiment, due to data loss and other reasons, the operating parameters and business type parameters of the server within a preset historical time range may be missing. For example, out of the 12 months of a year, data for May may be missing, and out of the 30 days of June, data for the 8th day may be missing.

[0151] When the data of a certain month is missing, the operating parameters and business type parameters of the previous month and the next month of the month can be determined, and the operating parameters and business type parameters of the server in the month where the data is missing can be determined by the mean interpolation method. It is understandable that the data may still be abnormal, that is, the data is not missing, but it is obviously wrong data. The abnormal fluctuation value can be determined by horizontal comparison of the data, and the data can be corrected by similar methods such as the mean interpolation method.

[0152] By implementing the embodiments of the present disclosure, the operation parameters and service type parameters of the previous time unit and the next time unit of at least one time unit are determined; and the operation parameters and service type parameters of at least one time unit are calculated based on the operation parameters and service type parameters of the previous time unit and the next time unit. The integrity and effectiveness of the training data set can be improved, thereby improving the accuracy of server cluster fault prediction.

[0153] Optionally, the number of server failures corresponding to the target business scenario is a collection of the number of server failures caused by different hardware failure types;

[0154] After the step of calculating the proportion of the number of server failures in the target business scenario to the number of server failures in all business scenarios, the method further includes:

[0155] Receive a hardware fault troubleshooting message, and determine a target hardware fault type corresponding to the hardware fault troubleshooting message;

[0156] According to the number of server failures corresponding to the target hardware failure type, the proportion of the number of server failures in the target business scenario in the number of server failures in all business scenarios is updated.

[0157] In the embodiments of the present disclosure, it is understood that some hardware failures may cause server failures, and the number of server failures corresponding to the target business scenario may actually be a collection of the number of server failures caused by different hardware failure types. For example, the number of server failures corresponding to the target business scenario is 8, of which the number of failures caused by the CPU failure type may be 3, and the number of failures caused by the fan may be 5.

[0158] If a specific type of hardware failure persists, the server will also continue to fail. However, after the hardware failure is eliminated, server failures caused by the specific hardware failure rarely occur again. Therefore, a hardware failure elimination message sent by a manager can be received to determine the target hardware failure type corresponding to the hardware failure elimination message. The number of server failures corresponding to the target hardware failure type corresponding to the hardware failure elimination message is determined, and the proportion of the number of server failures in the target business scenario in the number of server failures in all business scenarios is updated.

[0159] In addition, it is understandable that since model training is based on historical data, there will be errors in the prediction results after troubleshooting. The number of server failures caused by specific hardware failures can be subtracted from the model prediction results.

[0160] By implementing the embodiments of the present disclosure, after completing hardware troubleshooting, receiving a hardware troubleshooting message, determining the number of server failures corresponding to the target hardware failure type corresponding to the hardware troubleshooting message, and updating the proportion of the number of server failures in the target business scenario in the number of server failures in all business scenarios, the accuracy of server failure prediction can be improved.

[0161] Optionally, the fault prediction model includes a plurality of model parameters, each model parameter having at least one corresponding candidate value; the method further includes:

[0162] According to the plurality of model parameters and the corresponding candidate values, a plurality of model parameter combinations are obtained; each of the model parameter combinations includes a plurality of model parameters that are specific candidate values;

[0163] Under each model parameter combination, the performance parameters of the fault prediction model are calculated by the following Akaike information criterion formula;

[0164] AIC=-2ln(L)+2K

[0165] Wherein, AIC represents the performance parameter, L represents the log-likelihood value, and K represents the number of model parameters in the fault prediction model;

[0166] Among the performance parameters corresponding to the multiple model parameter combinations, a target model parameter combination corresponding to a minimum performance parameter value is determined to obtain a pre-trained fault prediction model having the target model parameter combination.

[0167] In the disclosed embodiments, the model parameter combinations include multiple model parameters with specific candidate values, which will not be described in detail here. Under each model parameter combination, the performance parameters of the fault prediction model are calculated based on the Akaike Information Criterion (AIC) formula. The smaller the value of the performance parameter AIC, the higher the accuracy of the model. Comparing the log-likelihood function of the model under different model parameter combinations, a higher log-likelihood value usually indicates that the model fits the data better, indicating that the model has a higher accuracy. The log-likelihood value can be calculated by the following formula:

[0168]

[0169] Among them, L is the log-likelihood value, n is the sample size, that is, the number of training data subsets, sse is the residual sum of squares, and pi is pi.

[0170] Among the performance parameters AIC corresponding to multiple model parameter combinations, the target model parameter combination corresponding to the minimum AIC value is determined, and the model including the target model parameter combination is the pre-trained fault prediction model.

[0171] Optionally, after the step of inputting the operating parameters of the server working in each business scenario into the pre-trained fault prediction model to obtain the fault results output by the fault prediction model for each business scenario, the method further includes steps 304-305:

[0172] Step 304, storing the fault results of each service scenario in a database respectively, and receiving a call instruction carrying a service type parameter from a terminal device;

[0173] Step 305: In response to the calling instruction, query the database for a fault result corresponding to the target service scenario indicated by the service type parameter, and return the fault result to the terminal device.

[0174] In the disclosed embodiment, the operating parameters of the business scenario may be input into the pre-trained fault prediction model at certain time intervals, such as daily or monthly, to obtain the fault results output by the fault prediction model. For example, the operating data of each business scenario every day is input into the fault prediction model to obtain the fault results of each business scenario. The fault results of each business scenario are stored in a database, such as a relational database management system (MYSQL database).

[0175] The receiving terminal device carries a calling instruction of a service type parameter, and in response to the calling instruction, queries a database for a fault result corresponding to a target service scenario indicated by the service type parameter, and returns the fault result to the terminal device.

[0176] Optionally, the calling instruction carries a plurality of service type parameters; in response to the calling instruction, the step of querying the database for a fault result corresponding to a target service scenario indicated by the service type parameters, and returning the fault result to the terminal device comprises:

[0177] In response to the calling instruction, querying the database for multiple fault results corresponding to the target business scenarios respectively indicated by the multiple business type parameters;

[0178] According to the fault quantity information respectively included in the multiple fault results, the multiple fault results are sorted to obtain a fault sequence;

[0179] According to the fault sequence, the multiple fault results are returned to the terminal device.

[0180] In the embodiment of the present disclosure, since the fault result may include the fault quantity, multiple fault results may be sorted based on the fault quantity information contained in each fault result to obtain a fault sequence, wherein the front end of the fault sequence may be a fault result with a larger fault quantity, and the back end may be a fault result with a smaller fault quantity.

[0181] According to the fault sequence, multiple fault results can be returned to the terminal device in sequence, one by one; or multiple fault results can be returned to the terminal device at one time according to the sequence, but when the terminal device displays them, the contents are arranged according to the fault sequence.

[0182] By implementing the embodiments of the present disclosure, it is possible to query multiple fault results corresponding to target business scenarios respectively indicated by multiple business type parameters in a database in response to a call instruction; sort the multiple fault results according to the fault quantity information respectively contained in the multiple fault results to obtain a fault sequence; and return the multiple fault results to a terminal device according to the fault sequence. This allows users to pay attention to specific fault results in a timely manner, thereby improving the timeliness of fault prediction result notification.

[0183] Figure 5 is a flow chart of server cluster failure prediction provided by an embodiment of the present disclosure;

[0184] Step 501, start; step 502, obtain historical data; step 503, data format processing; step 504, data anomaly and missing processing; step 505, determine model parameters based on grid search algorithm; step 506, output the first fault result according to the fault prediction model; step 507, calculate the proportion of the number of faults in the target business scenario to the number of faults in all business scenarios; step 508, obtain the final second prediction result according to the proportion and the initial second prediction result; step 509, obtain the final fault result of the target business scenario based on the first prediction result, the final second prediction result, and the preset weight value; step 510, store the fault result of the target business scenario in the database; step 511, end.

[0185] Figure 6 Schematic diagram of a server cluster fault prediction device provided by an embodiment of the present disclosure, including:

[0186] The cluster parameter acquisition module 601 is used to acquire the operation parameters and business type parameters of multiple servers through the baseboard management controllers of the multiple servers in the server cluster; the business type parameter represents the business scenario of the server, and the business scenario represents the purpose of the server, and the business scenario includes at least one of the following: storage business scenario and computing business scenario;

[0187] A business scenario analysis module 602 is used to determine the business scenario associated with each server according to the business type parameter, and determine the operating parameters of the server working in each business scenario;

[0188] The scenario fault prediction module 603 is used to input the operating parameters of the server working in each business scenario into the pre-trained fault prediction model, and obtain the fault results of each business scenario output by the fault prediction model for each business scenario; the fault results include at least the number of server failures.

[0189] Optionally, the device further comprises:

[0190] A historical data acquisition module, used to acquire the operating parameters and service type parameters of the server within a preset historical time range as a training data set for the fault prediction model; the fault prediction model includes a plurality of model parameters, and the model parameters have at least one corresponding candidate value;

[0191] A training subset division module, used for dividing the training data set into k training data subsets;

[0192] A first parameter combination module, configured to obtain a plurality of model parameter combinations according to the plurality of model parameters and corresponding candidate values; wherein the model parameter combinations each include a plurality of model parameters that are specific candidate values;

[0193] A training and testing module, used for selecting one of the k training data subsets as a testing set and using the other training data subsets as training sets;

[0194] A single verification result acquisition module, used for training the fault prediction model based on the training set and verifying the fault prediction model based on the test set to obtain a verification result under each model parameter combination;

[0195] A multi-verification result acquisition module is used to enter the step of selecting a training data subset from the k training data subsets as a test set, continue to select the next training data subset as the test set, and use other training data subsets as training sets until k verification results corresponding to the current model parameter combination are obtained;

[0196] A multi-model testing module, for entering into the step of training the fault prediction model based on the training set under each model parameter combination, and verifying the fault prediction model based on the test set to obtain a verification result, until k verification results corresponding to each model parameter combination are obtained;

[0197] A first performance parameter module is used to calculate and obtain the performance parameters of each model parameter combination based on k verification results corresponding to each model parameter combination;

[0198] The first target parameter module is used to determine a target model parameter combination from the multiple model parameter combinations according to the performance parameters of each model parameter combination, so as to obtain a pre-trained fault prediction model having the target model parameter combination.

[0199] Optionally, the device further comprises:

[0200] A proportion module is used to obtain the number of server failures corresponding to the target business scenario within a preset historical time range, and calculate the proportion of the number of server failures in the target business scenario in the number of server failures in all business scenarios;

[0201] A first fault module, used to input a preset time length and a service type parameter corresponding to a target service scenario into the fault prediction model to obtain a first fault result;

[0202] An initial second fault module, used to input the preset time length into the fault prediction model to obtain an initial second fault result; the initial second fault result includes the number of faults in all business scenarios;

[0203] A final second fault module, used for obtaining a final second fault result based on the initial second fault result and the specific gravity;

[0204] The target fault result module is used to calculate the fault result of the target business scenario according to the first fault result, the final second fault result and a preset weight value.

[0205] Optionally, the preset historical time range includes multiple time units, and the time unit is one of year, month, and day;

[0206] Historical data acquisition module, including:

[0207] The previous and next time submodule is used to determine the operation parameters and service type parameters of the previous time unit and the next time unit of the at least one time unit when the operation parameters and service type parameters of the at least one time unit are missing;

[0208] The previous and next calculation submodule is used to calculate and obtain the operating parameters and business type parameters of the at least one time unit according to the operating parameters and business type parameters of the previous time unit and the next time unit.

[0209] Optionally, the number of server failures corresponding to the target business scenario is a collection of numbers of server failures caused by different hardware failure types; the device further includes:

[0210] A troubleshooting module, used for receiving a hardware troubleshooting message and determining a target hardware fault type corresponding to the hardware troubleshooting message;

[0211] The proportion updating module is used to update the proportion of the number of server failures in the target business scenario in the number of server failures in all business scenarios according to the number of server failures corresponding to the target hardware failure type.

[0212] Optionally, the fault prediction model includes a plurality of model parameters, each model parameter having at least one corresponding candidate value; the device further includes:

[0213] A second parameter combination module, used to obtain a plurality of model parameter combinations according to the plurality of model parameters and corresponding candidate values; the model parameter combinations each include a plurality of model parameters that are specific candidate values;

[0214] The second performance parameter module is used to calculate the performance parameters of the fault prediction model under each model parameter combination by the following Akaike information criterion formula:

[0215] AIC=-2ln(L)+2K

[0216] Wherein, AIC represents the performance parameter, L represents the log-likelihood value, and K represents the number of model parameters in the fault prediction model;

[0217] The second target parameter module is used to determine the target model parameter combination corresponding to the minimum performance parameter value among the performance parameters corresponding to the multiple model parameter combinations, so as to obtain a pre-trained fault prediction model with the target model parameter combination.

[0218] Optionally, the device further comprises:

[0219] A calling module is used to store the fault results of each business scenario in the database and receive a calling instruction carrying a business type parameter from a terminal device;

[0220] The return module is used to query the database for a fault result corresponding to the target business scenario indicated by the business type parameter in response to the calling instruction, and return the fault result to the terminal device.

[0221] In summary, in the disclosed embodiment, the operating parameters and business type parameters of multiple servers are obtained through the baseboard management controllers of each of the multiple servers in the server cluster; the business type parameter represents the business scenario of the server, the business scenario represents the purpose of the server, and the business scenario includes at least one of the following: storage business scenario, calculation business scenario; according to the business type parameter, the business scenario associated with each server is determined, and the operating parameters of the server working under each business scenario are determined; the operating parameters of the server working under each business scenario are respectively input into the pre-trained fault prediction model to obtain the fault result output by the fault prediction model for each business scenario; the fault result includes at least the number of server failures. In the scenario of a server cluster, multiple servers can be distinguished according to the business scenario, and then the operating parameters of the servers under each business scenario are respectively input into the pre-trained fault prediction model to obtain the fault results corresponding to different business scenarios, thereby improving the accuracy and applicability of fault prediction for business scenarios in the server cluster scenario.

[0222] The present disclosure also provides an electronic device, such as Figure 7 As shown, it includes a processor 701 , a communication interface 702 , a memory 703 and a communication bus 704 , wherein the processor 701 , the communication interface 702 , and the memory 703 communicate with each other via the communication bus 704 .

[0223] The memory 703 is used to store computer programs.

[0224] When the processor 701 is used to execute the program stored in the memory 703, the following steps are implemented: obtaining the operating parameters and business type parameters of the server through the baseboard management controller of the server in the server cluster; the business type parameter represents the business scenario of the server, and the business scenario includes at least one of the following: storage business scenario, computing business scenario; according to the business type parameter, determining the business scenario associated with the server, and determining the operating parameters of the server working under the business scenario; inputting the operating parameters under the business scenario into a pre-trained fault prediction model to obtain the fault result output by the fault prediction model; the fault result includes at least the number of server failures.

[0225] The processor 701 may also implement other steps in the above-mentioned server cluster failure prediction method, which will not be described in detail here.

[0226] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0227] The communication interface is used for communication between the above electronic device and other devices.

[0228] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0229] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0230] In another embodiment provided by the present disclosure, a computer-readable storage medium is also provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the server cluster failure prediction method described in the above embodiment.

[0231] In another embodiment provided by the present disclosure, a computer program product including instructions is also provided. When the computer program product is executed on a computer, the computer executes the server cluster failure prediction method described in the above embodiment.

[0232] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present disclosure is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

[0233] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0234] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. For the embodiments of the device, electronic device, computer-readable storage medium and computer program products containing instructions, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0235] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the protection scope of the present disclosure. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure are included in the protection scope of the present disclosure.

Claims

1. A server cluster failure prediction method, characterized in that: include: Obtaining, through the baseboard management controllers of the multiple servers in the server cluster, operating parameters and business type parameters of the multiple servers; the business type parameter indicates a business scenario in which the server works, the business scenario indicates a purpose of the server, and the business scenario includes at least one of the following: a storage business scenario and a computing business scenario; Determine the business scenario associated with each server according to the business type parameter, and determine the operating parameters of the server working in each business scenario; The operating parameters of the server working in each business scenario are respectively input into the pre-trained fault prediction model to obtain the fault results output by the fault prediction model for each business scenario; the fault results at least include the number of server failures.

2. The method according to claim 1, characterized in that: The method further comprises: Obtaining operating parameters and service type parameters of the server within a preset historical time range as a training data set for the fault prediction model; the fault prediction model includes a plurality of model parameters, and the model parameters have at least one corresponding candidate value; Dividing the training data set to obtain k training data subsets; According to the plurality of model parameters and the corresponding candidate values, a plurality of model parameter combinations are obtained; wherein the model parameter combinations each include a plurality of model parameters that are specific candidate values; Selecting one training data subset from the k training data subsets as a test set, and using the other training data subsets as training sets; Under each model parameter combination, the fault prediction model is trained based on the training set, and the fault prediction model is verified based on the test set to obtain a verification result; Entering the step of selecting a training data subset from the k training data subsets as a test set, continuing to select the next training data subset as the test set, and using other training data subsets as training sets until k verification results corresponding to the current model parameter combination are obtained; Entering the step of training the fault prediction model based on the training set under each model parameter combination, and verifying the fault prediction model based on the test set to obtain a verification result, until k verification results corresponding to each model parameter combination are obtained Based on the k verification results corresponding to each model parameter combination, the performance parameters of each model parameter combination are obtained by calculation; According to the performance parameters of each model parameter combination, a target model parameter combination is determined from the multiple model parameter combinations to obtain a pre-trained fault prediction model having the target model parameter combination.

3. The method according to claim 1, characterized in that The method further comprises: Obtain the number of server failures corresponding to the target business scenario within a preset historical time range, and calculate the proportion of the number of server failures of the target business scenario in the number of server failures of all business scenarios; Inputting a preset time length and a service type parameter corresponding to a target service scenario into the fault prediction model to obtain a first fault result; Inputting the preset time length into the fault prediction model to obtain an initial second fault result; the initial second fault result includes the number of faults in all business scenarios; Based on the initial second fault result and the specific gravity, obtaining a final second fault result; The fault result of the target business scenario is obtained by calculation according to the first fault result, the final second fault result and the preset weight value.

4. The method according to claim 2, characterized in that: The preset historical time range includes a plurality of time units, wherein the time unit is one of a year, a month, and a day; The step of obtaining the operating parameters and service type parameters of the server within a preset historical time range as a training data set for the fault prediction model includes: When the operating parameters and service type parameters of at least one time unit are missing, determining the operating parameters and service type parameters of a previous time unit and a subsequent time unit of the at least one time unit; The operating parameters and the service type parameters of the at least one time unit are obtained by calculation according to the operating parameters and the service type parameters of the previous time unit and the next time unit.

5. The method according to claim 3, characterized in that: The number of server failures corresponding to the target business scenario is a collection of the number of server failures caused by different hardware failure types; After the step of calculating the proportion of the number of server failures in the target business scenario to the number of server failures in all business scenarios, the method further includes: Receive a hardware fault troubleshooting message, and determine a target hardware fault type corresponding to the hardware fault troubleshooting message; According to the number of server failures corresponding to the target hardware failure type, the proportion of the number of server failures in the target business scenario in the number of server failures in all business scenarios is updated.

6. The method according to claim 1, characterized in that The fault prediction model includes a plurality of model parameters, each model parameter having at least one corresponding candidate value; the method further includes: According to the plurality of model parameters and the corresponding candidate values, a plurality of model parameter combinations are obtained; each of the model parameter combinations includes a plurality of model parameters that are specific candidate values; Under each model parameter combination, the performance parameters of the fault prediction model are calculated by the following Akaike information criterion formula: AIC=-2ln(L)+2K Wherein, AIC represents the performance parameter, L represents the log-likelihood value, and K represents the number of model parameters in the fault prediction model; Among the performance parameters corresponding to the multiple model parameter combinations, a target model parameter combination corresponding to a minimum performance parameter value is determined to obtain a pre-trained fault prediction model having the target model parameter combination.

7. The method according to claim 1, characterized in that After the step of inputting the operating parameters of the server working in each business scenario into the pre-trained fault prediction model respectively, and obtaining the fault results output by the fault prediction model for each business scenario respectively, the method further includes: The fault results of each business scenario are stored in the database respectively, and a call instruction carrying a business type parameter is received from the terminal device; In response to the calling instruction, the database is queried for a fault result corresponding to the target service scenario indicated by the service type parameter, and the fault result is returned to the terminal device.

8. A server cluster failure prediction device, characterized in that: include: A cluster parameter acquisition module is used to acquire the operation parameters and business type parameters of multiple servers through the baseboard management controllers of the multiple servers in the server cluster; the business type parameter represents the business scenario of the server, the business scenario represents the purpose of the server, and the business scenario includes at least one of the following: storage business scenario, computing business scenario; A business scenario analysis module, used to determine the business scenario associated with each server according to the business type parameter, and determine the operating parameters of the server working in each business scenario; A scenario fault prediction module is used to input the operating parameters of the server working in each business scenario into a pre-trained fault prediction model, and obtain the fault results of each business scenario output by the fault prediction model for each business scenario; the fault results include at least the number of server failures.

9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the server cluster failure prediction method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein when the computer programs are executed by a processor, the server cluster failure prediction method as described in any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Active testing method, device and equipment of AI computing power cluster, medium and product

    CN119415221A

  • Active testing methods, devices, equipment, media and products for AI computing clusters

    CN119415221B

  • Baseboard management controller platform identification method, product, equipment and medium

    CN120561757A