Cloud computer failure prediction method, electronic device, storage medium, and program product
By acquiring multi-dimensional time-series index data of cloud computers and constructing decision trees using LSTM networks and ensemble learning algorithms, the problem of low accuracy in cloud computer fault prediction in existing technologies is solved, achieving high-precision fault prediction and early warning.
Patent Information
- Application Number
- CN202510697721.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-27
- Publication Date
- 2026-11-27
AI Technical Summary
Existing cloud computer fault detection methods rely on static thresholds and simple statistical analysis, which are difficult to cope with the complex and ever-changing fault modes in the cloud environment, and the accuracy of fault prediction is not high.
By acquiring multi-dimensional time-series index data of cloud computers, the dependencies between performance indicators are determined, and decision trees are constructed using LSTM networks and ensemble learning algorithms such as random forests and gradient boosting machines. Multiple prediction results are then integrated to improve the accuracy of fault prediction.
It achieves high-precision prediction of cloud computer failures, can capture fault characteristics in advance and provide accurate early warnings, thus improving operation and maintenance efficiency.
Smart Images

Figure CN123178126A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of cloud computing technology, and in particular to a cloud computer fault prediction method, electronic device, storage medium and program product. Background Technology
[0002] Cloud PCs are virtual personal computer services provided based on cloud computing technology. Users can access and use virtual computer resources via the network without purchasing and maintaining physical hardware. As a product that migrates terminal computing power to the cloud, cloud PCs differ from common cloud products. Users typically use them continuously for extended periods, which places extremely high demands on their stability.
[0003] Fault detection methods in related technologies mainly rely on static thresholds and simple statistical analysis, which are difficult to cope with the complex and ever-changing fault modes in cloud environments, and the accuracy of fault prediction is not high. Summary of the Invention
[0004] This application provides a cloud computer fault prediction method, electronic device, storage medium, and program product to improve the accuracy of cloud computer fault prediction.
[0005] In a first aspect, embodiments of this application provide a cloud computer fault prediction method, comprising: acquiring multi-dimensional time-series index data of the cloud computer; determining the dependency relationship between multiple performance indicators based on the multi-dimensional time-series index data, and performing fault prediction on the cloud computer based on the dependency relationship to obtain a first prediction result; determining multiple decision trees based on the multi-dimensional time-series index data, and performing fault prediction on the cloud computer based on the multiple decision trees to obtain a second prediction result; and obtaining a fault prediction result based on the first prediction result and the second prediction result.
[0006] Secondly, embodiments of this application provide an electronic device, including a memory, a processor, and a computer program stored in the memory, wherein the processor implements any of the methods described above when executing the computer program.
[0007] Thirdly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements any of the methods described above.
[0008] Fourthly, embodiments of this application provide a computer program product, which includes a computer program that, when executed by a processor, implements any of the methods described above.
[0009] Compared with the prior art, this application has the following advantages:
[0010] This application provides a cloud computer fault prediction method, electronic device, storage medium, and program product. The method involves acquiring multi-dimensional time-series indicator data of the cloud computer; determining the dependencies between multiple performance indicators based on the multi-dimensional time-series indicator data; performing fault prediction on the cloud computer based on these dependencies to obtain a first prediction result; determining multiple decision trees based on the multi-dimensional time-series indicator data; performing fault prediction on the cloud computer based on these decision trees to obtain a second prediction result; and obtaining a fault prediction result based on both the first and second prediction results. In this embodiment, fault prediction based on multi-dimensional time-series indicator data can comprehensively capture fault characteristics and improve prediction accuracy. Furthermore, by performing predictions based on the dependencies between indicators and multiple decision trees, and obtaining a fault prediction result based on the two prediction results, the accuracy of cloud computer fault prediction is further improved.
[0011] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application, it can be implemented according to the contents of the specification. In order to make the above and other objects, features and advantages of this application more obvious and understandable, specific embodiments of this application are given below. Attached Figure Description
[0012] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the various drawings denote the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings depict only some embodiments according to this application and should not be construed as limiting the scope of this application.
[0013] Figure 1 This is a schematic diagram of a cloud computer fault prediction system according to an embodiment of this application.
[0014] Figure 2 This is a flowchart of a cloud computer fault prediction method according to an embodiment of this application.
[0015] Figure 3 This is a flowchart of a cloud computer fault prediction method according to an embodiment of this application.
[0016] Figure 4 This is a structural block diagram of a cloud computer fault prediction device according to an embodiment of this application.
[0017] Figure 5 This is a block diagram of an electronic device used to implement embodiments of this application. Detailed Implementation
[0018] In the following description, only certain exemplary embodiments are briefly described. As those skilled in the art will recognize, the described embodiments can be modified in various ways without departing from the concept or scope of this application. Therefore, the drawings and description are considered to be exemplary in nature and not restrictive.
[0019] To facilitate understanding of the technical solutions of the embodiments of this application, the relevant technologies of the embodiments of this application are described below. The following relevant technologies are optional solutions and can be combined with the technical solutions of the embodiments of this application in any way, and all of them fall within the protection scope of the embodiments of this application.
[0020] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation portals are provided for users to choose to authorize or refuse.
[0021] Figure 1 This is a schematic diagram of the cloud computer fault prediction system provided in this application. The cloud computer fault prediction system includes: a data collection module, a data preprocessing module, a fault prediction module, and a result analysis and application module.
[0022] The data collection module includes a performance indicator monitoring unit and a cloud PC fault prediction indicator collection unit. The performance indicator monitoring unit collects performance indicator data from the cloud PCs. Optionally, it utilizes the Prometheus monitoring system to collect performance indicator data such as CPU utilization, memory usage, disk utilization, and network connection data, storing it in time-series format to provide foundational data for fault prediction. The cloud PC fault prediction indicator collection unit performs preliminary processing and filtering of the collected performance indicator data. It extracts multi-dimensional time-series indicator data relevant to cloud PC fault prediction from the large amount of performance indicator data collected by Prometheus, removing irrelevant data to ensure that the data input to subsequent modules is targeted and effective.
[0023] The data preprocessing module includes a data cleaning unit and a feature extraction unit. The data cleaning unit cleans the collected multidimensional time-series index data, removing noise, filling in missing values, and handling outliers to ensure data integrity and accuracy, providing a high-quality data foundation for feature extraction. The feature extraction unit extracts features from the cleaned multidimensional time-series index data using various calculation methods, such as statistical features, temporal features, and correlation features. The features extracted using these methods are then fused and converted into a format understandable by the LSTM network and machine learning algorithms, facilitating their subsequent input into the fault prediction module and improving the LSTM network and machine learning algorithms' ability to capture fault features.
[0024] The fault prediction module includes an LSTM (Long Short-Term Memory) network unit and an ensemble learning algorithm unit. Data output from the data preprocessing module is input into both the LSTM network unit and the ensemble learning algorithm unit for fault prediction. The LSTM network unit models the data output from the data preprocessing module using an LSTM network, capturing long-term dependencies between indicators. By learning the trends of cloud computer indicator data over time, it predicts potential future faults, providing a basis for proactive measures. The LSTM network employs attention mechanisms and dropout strategies, significantly improving the model's generalization ability and training efficiency. The ensemble learning algorithm unit utilizes various machine learning algorithms to perform fault prediction based on the data output from the data preprocessing module. For example, it uses algorithms such as random forests and gradient boosting machines to process different types of features and data patterns, improving the accuracy and robustness of predictions through ensemble learning.
[0025] The results analysis and application module includes a fault probability assessment unit, an early warning and notification unit, and a fault location and diagnosis unit. The fault probability assessment unit comprehensively evaluates the probability of a cloud computer malfunction based on the initial prediction results output by the LSTM network unit and the ensemble learning algorithm unit, obtaining a fault prediction result and setting an alarm threshold. It determines whether to send a fault warning signal by comparing the fault prediction result with the alarm threshold. The early warning and notification unit triggers a fault warning signal based on the fault prediction result. When the fault prediction result exceeds the alarm threshold, a fault warning signal is triggered and sent to the user terminals or systems of relevant personnel via email, SMS, or system notifications. The fault location and diagnosis unit locates the specific location of the fault and diagnoses its cause. Specifically, after confirming a cloud computer malfunction, it analyzes the fault prediction result and the original input multi-dimensional time-series index data to determine the specific part of the cloud computer or the cloud host where the cloud computer is located, as well as the possible causes, to assist in rapid recovery.
[0026] In this embodiment, multi-dimensional time-series metrics such as CPU utilization, memory usage, disk utilization, and network connectivity of the cloud computer are integrated to comprehensively capture fault characteristics and improve fault prediction accuracy. Using the Prometheus system to collect metric data enables second-level fault prediction, and an automated early warning mechanism is designed to improve operational efficiency. LSTM networks and ensemble learning algorithms are used for prediction separately, and the final fault prediction result is obtained based on the two prediction results, thereby improving the accuracy of cloud computer fault prediction.
[0027] This application provides a cloud computer fault prediction method. The method in this embodiment can be applied to servers, terminal devices, platforms, devices, etc. with computing and processing capabilities. The server can be a server cluster or a single server, a server deployed in the cloud, or a local server.
[0028] like Figure 2 The diagram shown is a flowchart of a cloud computer fault prediction method according to an embodiment of this application, including:
[0029] Step S201: Obtain multi-dimensional time-series indicator data of the cloud computer.
[0030] The multi-dimensional time-series metrics data for cloud PCs include a set of data points arranged chronologically across multiple dimensions. Each data point contains a timestamp and a corresponding observation value. Examples include data on how cloud PCs' CPU utilization, memory usage, disk usage, and network connection data change over time. Network connection data includes bandwidth, latency, jitter, packet loss rate, throughput, connection establishment time, and request response time.
[0031] Optionally, multidimensional time-series metrics data may include time-series metrics data from at least two of the following dimensions: CPU, memory, disk, and network connectivity.
[0032] Specifically, an indicator monitoring system can be used to acquire indicator data from multiple dimensions, and from this data, multi-dimensional time-series indicator data required for cloud computer fault prediction can be selected. This indicator monitoring system includes, but is not limited to, the Prometheus system.
[0033] Optionally, multi-dimensional time-series indicator data can be obtained according to a preset time period, or multi-dimensional time-series indicator data can be obtained according to the data acquisition command sent by the user terminal.
[0034] Step S202: Based on multi-dimensional time-series index data, determine the dependencies between multiple performance indicators, and based on the dependencies, perform fault prediction on the cloud computer to obtain the first prediction result.
[0035] The multidimensional time-series index data includes observations and timestamps of multiple performance indicators (e.g., CPU utilization and memory usage of cloud computers). The observations change dynamically over time, and there are dependencies between the indicators. By using machine learning models such as neural network models, the long-term dependencies between indicators can be learned, and future failures can be predicted based on these long-term dependencies.
[0036] Step S203: Based on the multidimensional time series index data, determine multiple decision trees, and based on the multiple decision trees, perform fault prediction on the cloud computer to obtain a second prediction result.
[0037] Decision trees are a supervised learning method used for classification and regression tasks. They create a model that can be used to predict a target variable by recursively partitioning multidimensional time-series index data into different subsets. Starting from the root node, the multidimensional time-series index data is divided into different branches until leaf nodes are reached, with each leaf node representing a prediction. Based on the predictions from each decision tree, a fusion calculation is performed to obtain the combined prediction result from the multiple decision trees.
[0038] Step S204: Obtain the fault prediction result based on the first prediction result and the second prediction result.
[0039] The first and second prediction results can be the probability of a failure in one of the multiple cloud computers or a part of a cloud computer. By combining the first and second prediction results, the time and location of the cloud computer that may fail in the future can be predicted so that measures can be taken in advance to avoid or mitigate the impact of the failure.
[0040] The cloud computer fault prediction method provided in this application acquires multi-dimensional time-series indicator data of the cloud computer; determines the dependencies between multiple performance indicators based on the multi-dimensional time-series indicator data; performs fault prediction on the cloud computer based on the dependencies to obtain a first prediction result; determines multiple decision trees based on the multi-dimensional time-series indicator data; performs fault prediction on the cloud computer based on the multiple decision trees to obtain a second prediction result; and obtains a fault prediction result based on the first and second prediction results. In this embodiment, fault prediction based on multi-dimensional time-series indicator data can comprehensively capture fault characteristics and improve prediction accuracy. Moreover, by performing predictions based on the dependencies between indicators and multiple decision trees, and obtaining a fault prediction result based on the two prediction results, the accuracy of cloud computer fault prediction is improved.
[0041] The following describes the specific implementation process of each step above through various implementation methods:
[0042] In one implementation, step S202, determining the dependencies between multiple performance indicators based on multidimensional time-series index data, and performing fault prediction on the cloud computer based on the dependencies to obtain a first prediction result, includes: inputting multidimensional time-series index data into an LSTM network, using the LSTM network to determine the dependencies between the indicators, and performing fault prediction on the cloud computer based on the dependencies to obtain a first prediction result. The LSTM network is trained using historical data of the multidimensional time-series index data.
[0043] In practical applications, an LSTM network is pre-trained using historical data from multidimensional time-series indicators. This historical data is divided into training, validation, and test sets. Since LSTM is a sequence-based model, the training set needs to be converted into a series of time windows. For example, if using multidimensional time-series indicators from the past five time points to predict the state of a cloud computer at the next time point, each sample in the training set will contain data from five consecutive time points. The model is trained using the training set, and its performance is monitored using the validation set, adjusting model parameters to avoid overfitting or underfitting. The model performance is evaluated using the test set; common evaluation metrics include accuracy and recall. Based on the evaluation results, the model structure or parameter settings are further adjusted, such as increasing or decreasing the number of LSTM layers or changing the time window size.
[0044] Modeling is performed based on historical data to capture long-term dependencies between indicators and learn the trends of indicator data changes over time, resulting in a trained LSTM network. Multidimensional time-series indicator data is then input into the trained LSTM network to predict potential future failures, providing a basis for proactive measures.
[0045] Among them, the LSTM network employs an attention mechanism and a dropout strategy, which can significantly improve the model's generalization ability and training efficiency. The LSTM network can learn long-term dependency information, effectively solving the gradient vanishing or gradient exploding problems of Recurrent Neural Networks (RNNs) when processing long sequence data.
[0046] In one implementation, step S203, determining multiple decision trees based on multidimensional time-series index data, and performing fault prediction on the cloud computer based on the multiple decision trees to obtain a second prediction result, includes: inputting multidimensional time-series index data into a random forest algorithm and / or a gradient boosting machine algorithm, using the random forest algorithm and / or gradient boosting machine algorithm to determine multiple decision trees, and performing fault prediction on the cloud computer based on the multiple decision trees to obtain a second prediction result. The random forest algorithm and gradient boosting machine algorithm are trained using historical data of the multidimensional time-series index data.
[0047] Specifically, one or more machine learning algorithms based on multiple decision trees can be used, such as the random forest algorithm and the gradient boosting machine algorithm. The random forest algorithm makes predictions by constructing multiple decision trees and aggregating their results. Each tree is trained on a random subset of the data. The random forest algorithm reduces the risk of overfitting and improves the model's generalization ability. The gradient boosting machine algorithm uses multiple decision trees for iterative boosting calculations, gradually building new models to correct the errors of previous models, ultimately forming a powerful predictive model. The gradient boosting machine algorithm is efficient and accurate, and is particularly adept at handling complex nonlinear relationships.
[0048] The random forest algorithm and gradient boosting machine algorithm are trained in advance using historical data of multidimensional time series index data, and the trained random forest algorithm and / or gradient boosting machine algorithm are used for prediction.
[0049] Optionally, random forest and gradient boosting machine algorithms can be used to process different types of features and data patterns for fault prediction. For example, random forest can be used for continuous values, and gradient boosting machine for discrete values, or both can be used to process time series data of different dimensions. Ensemble learning of the two algorithms improves the accuracy and robustness of the prediction.
[0050] In one implementation, the dependencies between multiple performance indicators are determined based on multidimensional time-series index data. Based on these dependencies, fault prediction is performed on the cloud computer to obtain a first prediction result. This includes: extracting features from the multidimensional time-series index data using multiple calculation methods, and fusing the features extracted by the multiple calculation methods to obtain index fusion features; determining the dependencies between multiple performance indicators based on the index fusion features, and performing fault prediction on the cloud computer based on these dependencies to obtain a first prediction result.
[0051] Optionally, based on the multidimensional time-series index data, multiple decision trees are determined, and based on the multiple decision trees, fault prediction is performed on the cloud computer to obtain a second prediction result. This includes: extracting features from the multidimensional time-series index data using multiple calculation methods, and fusing the features extracted by the multiple calculation methods to obtain index fusion features; determining multiple decision trees based on the index fusion features, and performing fault prediction on the cloud computer based on the multiple decision trees to obtain a second prediction result.
[0052] The calculation methods can include, but are not limited to, calculations based on different statistical dimensions. Feature fusion includes, but is not limited to, vertical addition and horizontal concatenation.
[0053] By employing multiple calculation methods to extract different types of features from multidimensional time-series index data, we can capture the distribution characteristics of multidimensional time-series index data in different aspects. By fusing different types of features, we can reduce the problem of inaccurate overall prediction results caused by the failure of extraction of specific types of features, and improve the accuracy of fault prediction.
[0054] In one implementation, features are extracted from multidimensional time-series index data using multiple calculation methods, and the features extracted by the multiple calculation methods are fused to obtain index fusion features. This includes: extracting at least two of the statistical features, temporal features, and correlation features of the multidimensional time-series index data using multiple calculation methods, and concatenating the extracted at least two features to obtain index fusion features.
[0055] Among them, statistical characteristics refer to characteristics calculated through mathematical statistics, which may include at least one of the following: mean, variance, standard deviation, maximum value, minimum value, etc.
[0056] Temporal characteristics refer to properties related to the time dimension, such as periodicity: identifying recurring patterns or cycles in data; trend: analyzing the overall direction of data changes over time; and holiday effect: considering the impact of specific dates or events on the data.
[0057] Correlation features can represent the relationship between different indicators or the same indicator at different time points, and may include, but are not limited to, at least one of the following: Autocorrelation: Measures the linear dependence between an indicator's data and its own delayed data. It can be used to detect recurring data in time series data. Cross-correlation: Assesses the degree of association between indicators in two different time series; for example, the value of indicator A increases as the value of indicator B increases, or the value of indicator A decreases as the value of indicator B increases. Pearson correlation coefficient: Measures the strength and direction of the linear relationship between two indicators.
[0058] Extracting statistical features can reflect the statistical characteristics of indicator data, extracting temporal features can reflect the temporal distribution characteristics of the data, and extracting correlation features can reflect the correlation characteristics of the indicator data. During fusion, features obtained from different calculation methods can be horizontally concatenated to obtain fused indicator features. Inputting these fused features into an LSTM network, random forest algorithm, or gradient boosting machine algorithm for fault prediction can improve the accuracy of the prediction results.
[0059] In one implementation, step S203, obtaining a fault prediction result based on the first prediction result and the second prediction result, includes: taking the part where the first prediction result and the second prediction result are consistent as the fault prediction result; and taking the part where the first prediction result and the second prediction result are inconsistent as the fault prediction result.
[0060] In practical applications, the first and second prediction results are comprehensively evaluated to obtain the final prediction result.
[0061] The first prediction result and the second prediction result can be the probability value of a certain cloud computer or a certain part of the cloud computer possibly failing, or they can be indicator text or symbols indicating whether a failure is possible.
[0062] In one example, fault prediction is performed on multiple cloud computers A1, B1, C1, and D1. The first prediction is that cloud computers A1 and B1 will fail, and the second prediction is that cloud computers A1, B1, and C1 will fail. The intersection of these two predictions is taken, and cloud computers A1 and B1 are considered to fail as the fault prediction result. Conversely, if the first prediction is that cloud computers A1 and B1 will fail, and the second prediction is that cloud computers C1 and D1 will fail, then cloud computers A1 and B1 are considered to fail as the fault prediction result.
[0063] By comprehensively evaluating the first and second prediction results, the accuracy of the fault prediction results can be improved.
[0064] Optionally, an alarm threshold can be set. If the fault prediction result exceeds the alarm threshold, an alarm signal is generated and sent to the user terminal or system of relevant personnel via email, SMS or system notification.
[0065] In one implementation, the cloud computer fault prediction method further includes: after a cloud computer fails, determining the cause of the failure based on multi-dimensional time-series index data and fault prediction results; and determining a fault solution based on the cause of the failure.
[0066] In practical applications, if a cloud computer malfunctions, multi-dimensional time-series metric data and related fault prediction results are obtained to analyze the cause of the fault. For example, correlation analysis is performed on the multi-dimensional time-series metric data to calculate the changing trends of each metric before and after the fault, observe whether there are any significant anomalies, and combine this with the fault prediction results to identify the metric most relevant to the fault. For instance, if "high CPU utilization" is the main factor causing the fault, the corresponding fault solution is queried from a pre-built solution database to facilitate rapid fault recovery.
[0067] This application provides a cloud computer fault prediction method. The method in this embodiment can be applied to servers, terminal devices, platforms, devices, etc. with computing and processing capabilities. The server can be a server cluster or a single server, a server deployed in the cloud, or a local server.
[0068] like Figure 3 The diagram shown is a flowchart of a cloud computer fault prediction method according to an embodiment of this application, including:
[0069] Step S301: Obtain multi-dimensional time-series indicator data of the cloud computer.
[0070] Step S302: Extract at least two of the statistical features, time features, and correlation features from the multidimensional time series index data, and concatenate the extracted at least two features to obtain the index fusion feature.
[0071] Step S303: Input the fusion features of the indicators into the LSTM network, use the LSTM network to determine the dependencies between the indicators, and based on the dependencies, perform fault prediction on the cloud computer to obtain the first prediction result.
[0072] Step S304: Input the multi-indicator fusion features into the random forest algorithm and / or gradient boosting machine algorithm, use the random forest algorithm and / or gradient boosting machine algorithm to determine multiple decision trees, and perform fault prediction on the cloud computer based on the multiple decision trees to obtain the second prediction result.
[0073] Step S305: The part where the first prediction result and the second prediction result are consistent is taken as the fault prediction result; for the part where the first prediction result and the second prediction result are inconsistent, the first prediction result is taken as the fault prediction result.
[0074] Step S306: After the cloud computer malfunctions, determine the cause of the malfunction based on multi-dimensional time-series indicator data and malfunction prediction results; determine the malfunction solution based on the cause of the malfunction.
[0075] Corresponding to the application scenarios and methods provided in the embodiments of this application, the embodiments of this application also provide a cloud computer fault prediction device. For example... Figure 4 The diagram shown is a structural block diagram of a cloud computer fault prediction device according to an embodiment of this application. The device includes:
[0076] The indicator acquisition module 401 is used to acquire multi-dimensional time-series indicator data of the cloud computer.
[0077] The first prediction module 402 is used to determine the dependency relationship between multiple performance indicators based on multi-dimensional time series indicator data, and to perform fault prediction on the cloud computer based on the dependency relationship to obtain the first prediction result.
[0078] The second prediction module 403 is used to determine multiple decision trees based on the multidimensional time series index data, and to perform fault prediction on the cloud computer based on the multiple decision trees to obtain the second prediction result.
[0079] The third prediction module 404 is used to obtain the fault prediction result based on the first prediction result and the second prediction result.
[0080] The cloud computer fault prediction device provided in this application acquires multi-dimensional time-series index data of a cloud computer; determines the dependencies between multiple performance indicators based on the multi-dimensional time-series index data; performs fault prediction on the cloud computer based on the dependencies to obtain a first prediction result; determines multiple decision trees based on the multi-dimensional time-series index data; performs fault prediction on the cloud computer based on the multiple decision trees to obtain a second prediction result; and obtains a fault prediction result based on the first and second prediction results. In this embodiment, fault prediction based on multi-dimensional time-series index data can comprehensively capture fault characteristics and improve prediction accuracy. Moreover, by performing predictions based on the dependencies between indicators and multiple decision trees, and obtaining a fault prediction result based on the two prediction results, the accuracy of cloud computer fault prediction is improved.
[0081] The following describes the specific implementation process of each step above through various implementation methods:
[0082] In one implementation, the first prediction module 402 is used to: input multi-dimensional time series index data into a long short-term memory (LSTM) network, use the LSTM network to determine the dependencies between multiple performance indicators, and based on the dependencies, perform fault prediction on the cloud computer to obtain a first prediction result. The LSTM network is trained using historical data of the multi-dimensional time series index data.
[0083] In one implementation, the second prediction module 403 is used to: input multidimensional time series index data into a random forest algorithm and / or a gradient boosting machine algorithm, use the random forest algorithm and / or the gradient boosting machine algorithm to determine multiple decision trees, and perform fault prediction on the cloud computer based on the multiple decision trees to obtain a second prediction result. The random forest algorithm and the gradient boosting machine algorithm are trained using historical data of the multidimensional time series index data.
[0084] In one implementation, the first prediction module 402 is used to: extract features from multidimensional time-series index data using multiple calculation methods, and fuse the features extracted by the multiple calculation methods to obtain index fusion features; determine the dependencies between multiple performance indicators based on the index fusion features, and perform fault prediction on the cloud computer based on the dependencies to obtain a first prediction result. In another implementation, the device is further used to: extract at least two of the statistical features, temporal features, and correlation features of the multidimensional time-series index data using multiple calculation methods, and concatenate the extracted at least two features to obtain index fusion features.
[0085] In one implementation, the third prediction module 404 is used to: take the part of the first prediction result and the second prediction result that are consistent as the fault prediction result; and take the first prediction result as the fault prediction result for the part of the first prediction result and the second prediction result that are inconsistent.
[0086] In one implementation, the multidimensional time-series metric data includes time-series metric data from at least two of the following dimensions: CPU, memory, disk, and network connectivity.
[0087] In one implementation, the device is further configured to: determine the cause of the failure based on multidimensional time-series index data and failure prediction results after the cloud computer fails; and determine a solution to the failure based on the cause of the failure.
[0088] The functions of each module in the embodiments of this application can be found in the corresponding descriptions in the above methods, and they have corresponding beneficial effects, which will not be repeated here.
[0089] Figure 5 This is a block diagram of an electronic device used to implement embodiments of this application. For example... Figure 5 As shown, the electronic device includes a memory 510 and a processor 520. The memory 510 stores a computer program that can run on the processor 520. When the processor 520 executes the computer program, it implements the method described in the above embodiments. The number of memories 510 and processors 520 can be one or more.
[0090] The electronic device also includes:
[0091] The communication interface 530 is used to communicate with external devices and exchange and transmit data.
[0092] If the memory 510, processor 520, and communication interface 530 are implemented independently, they can be interconnected via a bus to communicate with each other. This bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. This bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0093] Optionally, in a specific implementation, if the memory 510, processor 520, and communication interface 530 are integrated on a single chip, then the memory 510, processor 520, and communication interface 530 can communicate with each other through an internal interface.
[0094] This application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method provided in this application.
[0095] This application provides a computer program product, which includes a computer program that, when executed by a processor, implements the method provided in this application.
[0096] This application also provides a chip including a processor for calling and executing instructions stored in a memory, causing a communication device with the chip installed to perform the method provided in this application.
[0097] This application also provides a chip, including: an input interface, an output interface, a processor, and a memory. The input interface, output interface, processor, and memory are connected through an internal connection path. The processor is used to execute code in the memory. When the code is executed, the processor is used to execute the method provided in the application embodiment.
[0098] It should be understood that the aforementioned processor can be a Central Processing Unit (CPU), or other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. General-purpose processors can be microprocessors or any conventional processor. It is worth noting that the processor can be a processor supporting Advanced Reduced Instruction Set Machines (ARM) architecture.
[0099] Further, optionally, the aforementioned memory may include read-only memory and random access memory. The memory may be volatile memory or non-volatile memory, or may include both. Non-volatile memory may include read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which serves as an external cache. By way of example, but not limitation, many forms of RAM are available. Examples include Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DR RAM).
[0100] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions according to this application are generated. 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 transferred from one computer-readable storage medium to another.
[0101] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of those different embodiments or examples.
[0102] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "a plurality of" means two or more, unless otherwise explicitly specified.
[0103] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process. Furthermore, the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functionality involved.
[0104] The logic and / or steps described in the flowchart or otherwise herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus or device (such as a computer-based system, a processor-included system or other system that can fetch and execute instructions from, an instruction execution system, apparatus or device).
[0105] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. All or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware, the program being stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiments.
[0106] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. This storage medium can be a read-only memory, a disk, or an optical disk, etc.
[0107] The above description is merely an exemplary embodiment of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various variations or substitutions within the technical scope described in this application, and these should all be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for predicting cloud computer faults, characterized in that, include: Obtain multi-dimensional time-series indicator data from cloud computers; Based on the multidimensional time-series index data, the dependencies between multiple performance indicators are determined, and based on the dependencies, fault prediction is performed on the cloud computer to obtain a first prediction result. Based on the multidimensional time-series index data, multiple decision trees are determined, and based on the multiple decision trees, fault prediction is performed on the cloud computer to obtain a second prediction result; Based on the first prediction result and the second prediction result, the fault prediction result is obtained.
2. The method according to claim 1, characterized in that, The step of determining the dependencies between multiple performance indicators based on the multi-dimensional time-series indicator data, and performing fault prediction on the cloud computer based on the dependencies to obtain a first prediction result includes: The multidimensional time-series index data is input into a Long Short-Term Memory (LSTM) network. The LSTM network is used to determine the dependencies between the multiple performance indices. Based on the dependencies, fault prediction is performed on the cloud computer to obtain the first prediction result. The LSTM network is trained using historical data of the multidimensional time-series index data.
3. The method according to claim 1, characterized in that, The step of determining multiple decision trees based on the multidimensional time-series index data, and performing fault prediction on the cloud computer based on the multiple decision trees to obtain a second prediction result includes: The multidimensional time-series index data is input into a random forest algorithm and / or a gradient boosting machine algorithm. Multiple decision trees are determined using the random forest algorithm and / or the gradient boosting machine algorithm. Based on the multiple decision trees, fault prediction is performed on the cloud computer to obtain the second prediction result. The random forest algorithm and the gradient boosting machine algorithm are trained using historical data of the multidimensional time-series index data.
4. The method according to claim 1, characterized in that, The step of determining the dependencies between multiple performance indicators based on the multi-dimensional time-series indicator data, and performing fault prediction on the cloud computer based on the dependencies to obtain a first prediction result includes: Features are extracted from the multidimensional time-series index data using multiple calculation methods, and the features extracted by the multiple calculation methods are fused to obtain index fusion features; Based on the fusion characteristics of the indicators, the dependencies between multiple performance indicators are determined, and based on the dependencies, fault prediction is performed on the cloud computer to obtain a first prediction result.
5. The method according to claim 4, characterized in that, The process involves extracting features from the multidimensional time-series index data using various calculation methods, and then fusing the features extracted using these methods to obtain fused index features, including: At least two of the statistical features, temporal features, and correlation features of the multidimensional time-series index data are extracted using the various calculation methods described above, and the extracted at least two features are concatenated to obtain the index fusion feature.
6. The method according to any one of claims 1-5, characterized in that, The step of obtaining the fault prediction result based on the first prediction result and the second prediction result includes: The portion of the first prediction result and the second prediction result that are consistent is taken as the fault prediction result; For the portion where the first prediction result and the second prediction result are inconsistent, the first prediction result shall be taken as the fault prediction result.
7. The method according to any one of claims 1-5, characterized in that, The multidimensional time-series index data includes time-series index data in at least two of the following dimensions: Central processing unit, memory, disk and network connection.
8. The method according to any one of claims 1-5, characterized in that, The method further includes: After the cloud computer malfunctions, the cause of the malfunction is determined based on the multi-dimensional time-series index data and the malfunction prediction results. Based on the cause of the failure, determine the solution.
9. An electronic device, characterized in that, The electronic device includes a memory, a processor, and a computer program stored in the memory, wherein the processor, when executing the computer program, implements the method of any one of claims 1-8.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method of any one of claims 1-8.
11. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the method of any one of claims 1-8.
