Active fault tolerance method, device, equipment, medium and computer program product

By using log data to construct a dynamic directed graph and train a fault-tolerant model, the expensive problem of relying on label data in edge computing devices is solved, the interpretability of fine-grained fault prediction and load scheduling is achieved, and the fault tolerance and fault tolerance of edge computing devices are improved. Forecast accuracy.

CN118227369BActive Publication Date: 2024-09-13INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410636689.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-09-13
Estimated Expiration
2044-05-22

AI Technical Summary

Technical Problem

Existing edge computing device fault tolerance technology relies on expensive label data, making it difficult to achieve fine-grained fault prediction and interpretable load scheduling, and cannot accurately identify specific faulty devices.

Method used

Use easily accessible log data to construct dynamic directed graphs, train fault-tolerant models, and perform fault prediction and load scheduling strategy adjustment through recurrent neural networks, graph neural networks, and Transformer networks to achieve fine-grained fault prediction and interpretable load scheduling.

Benefits of technology

It saves costs, realizes the interpretability of fine-grained fault prediction and load scheduling strategies for edge computing nodes, improves the credibility and interpretability of prediction results, and accurately completes fault prediction and diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118227369B
    Figure CN118227369B
Patent Text Reader

Abstract

The present invention discloses an active fault-tolerant method, device, equipment, medium and computer program product, which relates to the field of edge computing technology, including: collecting log data of edge computing systems within multiple scheduling times; constructing a dynamic directed graph based on the log data; training a fault-tolerant model based on the log data and the directed graph; using the fault-tolerant model to predict the predicted value of the system state of the edge computing node, the predicted result of whether the edge computing node has a system failure, and the type of failure based on the log data of the edge computing system within the current scheduling time; adjusting the load scheduling strategy based on the predicted value of the system state of each edge computing node and the simulated value of the system state of each edge computing node. Using easily accessible log data to train the fault-tolerant model can save costs, achieve fine-grained fault prediction based on the fault-tolerant model and log data, facilitate the interpretability of the preemptive load scheduling strategy, and facilitate the realization of credible and interpretable prediction results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of edge computing technology, and in particular to an active fault-tolerant method, device, equipment, medium and computer program product. Background Art

[0002] Edge computing has significant advantages in meeting the needs of delay-sensitive applications, and has therefore developed rapidly. Due to the limited resources of edge computing devices, edge computing devices may experience unstable performance when handling high-intensity computing and communication requirements. In order to reduce the negative impact of problems such as edge computing device overload on the service quality of applications, it is particularly important to develop efficient edge computing device fault-tolerant technology. For the fault tolerance of edge computing devices, current solutions mostly rely on label data as a supervisory signal. However, it is expensive and difficult to obtain a large amount of label data, and it is not easy to apply it to actual edge computing systems. In addition, the current solutions are all coarse-grained fault prediction and diagnosis, and it is impossible to know the specific edge computing device where the fault occurs, and the prediction is lacking in explainability. In view of this, how to solve the above-mentioned technical defects has become a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention

[0003] The purpose of the present invention is to provide an active fault-tolerant method, apparatus, device, medium and computer program product, which utilizes easily accessible log data to train a fault-tolerant model, thereby saving costs, and realizing fine-grained fault prediction based on the fault-tolerant model and log data, thereby facilitating the interpretability of preemptive load scheduling strategies and achieving credible and interpretable prediction results.

[0004] In order to solve the above technical problems, the present invention provides an active fault tolerance method, comprising:

[0005] Collect log data of edge computing systems during multiple scheduling periods;

[0006] Constructing a dynamic directed graph according to the log data;

[0007] Training a fault-tolerant model according to the log data and the directed graph;

[0008] According to the log data of the edge computing system within the current scheduling time, the trained fault-tolerant model is used to predict the predicted value of the system state of the edge computing node, the prediction result of whether the edge computing node has a system failure, and the fault type when the edge computing node is predicted to have a system failure;

[0009] The load scheduling strategy is adjusted according to the predicted value of the system state of each edge computing node and the simulated value of the system state of each edge computing node to reduce the load of the edge computing node predicted to have a system failure.

[0010] In some embodiments, collecting log data of the edge computing system includes:

[0011] Collect the system status historical data and system historical scheduling policy data of the edge computing system; the system status historical data includes the system status log records of all edge computing nodes at the scheduling time; the system historical scheduling policy data is the record of the edge computing system's migration scheduling strategy for the load at the beginning of the scheduling time.

[0012] In some embodiments, constructing a dynamic directed graph according to the log data includes:

[0013] At each sampling point, the system historical scheduling strategy data is modeled as a directed graph; the directed graph includes nodes, edges, and feature tensors of all nodes; the node represents an edge computing node, the edge represents that the load of the edge computing node is scheduled to another edge computing node, and the node feature is the system status historical data of the edge computing node.

[0014] In some embodiments, the fault-tolerant model includes: a recurrent neural network, a graph neural network, and a Transformer network; the recurrent neural network is used for node-level time series representation, the graph neural network is used for graph-level structure representation, and the Transformer network is used for system state prediction.

[0015] In some embodiments, based on the log data of the edge computing system within the current scheduling time, the predicted value of the system state of the edge computing node, the predicted result of whether the edge computing node has a system failure, and the fault type when the edge computing node is predicted to have a system failure include:

[0016] Encode the time series attribute data of each edge computing node through a recurrent neural network;

[0017] Aggregate and update the feature representation of each node on the directed graph through the graph neural network to obtain the update time series of each edge computing node;

[0018] Processing the update time series of the edge computing node using a sequence-to-sequence model based on Transformer to obtain a predicted value of the system state of the node;

[0019] Predicting whether the edge computing node will fail according to the predicted value of the system state of the edge computing node;

[0020] When it is predicted that the edge computing node will fail, the failure type of the edge computing node is determined according to the predicted value of the system state of the edge computing node.

[0021] In some embodiments, the updated time series of each edge computing node is obtained by aggregating and updating the feature representation of each node on the directed graph through the graph neural network, including:

[0022] according to Aggregate and update the feature representation of the nodes on the directed graph to obtain the update time series of each edge computing node; represents the characteristics of edge computing node i after update, Update represents the update function, represents the features of edge computing node i before updating, Agg represents the aggregation function, represents the characteristics of edge computing node j, Represents all the graph neighbors of edge computing node i.

[0023] In some embodiments, predicting whether the edge computing node will fail according to the predicted value of the system state of the edge computing node includes:

[0024] Calculating the difference between the predicted value and the actual value of the system state of the edge computing node;

[0025] Whether a failure occurs at the edge computing node is determined based on a difference between a predicted value and an actual value of a system state of the edge computing node.

[0026] In some embodiments, calculating the difference between the predicted value and the actual value of the system state of the edge computing node includes:

[0027] according to Calculating the difference between the predicted value and the actual value of the system state of the edge computing node; Represents the difference between the predicted value and the true value of the system state of edge computing node i. ReLU represents the linear rectification function. represents the predicted value of the system state of edge computing node i, Represents the true value of the system status of edge computing node i.

[0028] In some embodiments, judging whether the edge computing node will fail according to the difference between the predicted value and the actual value of the system state of the edge computing node includes:

[0029] according to Calculate the predicted value of the edge computing node failure; if is equal to 1, the edge computing node will fail. If it is equal to 0, the edge computing node will not fail; represents the predicted value of failure of edge computing node i, represents the difference between the predicted value and the true value of the system state of edge computing node i, POT represents the super domain peak, Represents the true value of the system status of edge computing node i.

[0030] In some embodiments, determining the fault type of the edge computing node according to the predicted value of the system state of the edge computing node includes:

[0031] Compressing the predicted value of the system state of the edge computing node into a fault prototype vector through a fully connected neural network;

[0032] The fault type of the edge computing node is determined according to the fault prototype vector and the prototype center vector of the fault type.

[0033] In some embodiments, determining the fault type of the edge computing node according to the fault prototype vector and the prototype center vector of the fault type includes:

[0034] according to The fault type of the edge computing node is calculated; P[i] represents the fault prototype vector of edge computing node i, and the set The prototype center vector representing the fault type.

[0035] In some embodiments, adjusting the load scheduling strategy according to the predicted value of the system state of each edge computing node and the simulated value of the system state of each edge computing node includes:

[0036] Determining an optimization target according to a predicted value of a system state of each edge computing node and a simulated value of a system state of each edge computing node;

[0037] Obtaining a gradient of an initial load scheduling strategy according to the optimization objective;

[0038] The gradient descent update strategy is used to adjust the load scheduling strategy to reduce the load of edge computing nodes where system failures are predicted to occur.

[0039] In some embodiments, determining the optimization target according to the predicted value of the system state of each edge computing node and the simulated value of the system state of each edge computing node includes:

[0040] according to Determine optimization goals; represents the optimization goal, Indicates the scheduling time a simulated value of the system state of each of the edge computing nodes, Indicates the scheduling time The predicted value of the system state of each edge computing node, P represents the fault prototype vector, Represents the center vector of the fault-free prototype.

[0041] In some embodiments, training a fault-tolerant model according to the log data and the directed graph includes:

[0042] Randomly extract batch data from the set of data in all time windows; the data in each time window includes log data and directed graphs;

[0043] The fault-tolerant model is trained by self-supervision using the extracted batch data; the overall loss function of the self-supervised training is the weighted sum of the system state reconstruction loss function and the fault embedding prototype loss function.

[0044] In some embodiments, the system state reconstruction loss function is: ; B represents the size of the extracted batch data, represents the predicted value of the system state of edge computing node i in the bth sample, represents the system state of edge computing node i in the bth sample.

[0045] In some embodiments, the fault embedding prototype loss function is: ; B is the size of the extracted batch data, is the fault prototype embedding of the i-th edge computing node in the b-th sample, yes The distance to the center of the nearest faulty prototype.

[0046] In order to solve the above technical problems, the present invention further provides an active fault-tolerant device, comprising:

[0047] A collection module, used to collect log data of edge computing systems within multiple scheduling periods;

[0048] A construction module, used to construct a dynamic directed graph according to the log data;

[0049] A training module, used for training a fault-tolerant model according to the log data and the directed graph;

[0050] A prediction module is used to predict the predicted value of the system state of the edge computing node, the predicted result of whether the edge computing node has a system failure, and the fault type when the edge computing node is predicted to have a system failure, based on the log data of the edge computing system within the current scheduling time and using the trained fault-tolerant model;

[0051] The adjustment module is used to adjust the load scheduling strategy according to the predicted value of the system state of each edge computing node and the simulated value of the system state of each edge computing node, so as to reduce the load of the edge computing node predicted to have a system failure.

[0052] In order to solve the above technical problems, the present invention further provides an active fault-tolerant device, comprising:

[0053] Memory for storing computer programs;

[0054] A processor is used to implement the steps of the active fault-tolerant method as described above when executing the computer program.

[0055] In order to solve the above technical problem, the present invention further provides a medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the active fault-tolerant method described above are implemented.

[0056] To solve the above technical problem, the present invention further provides a computer program product, including a computer program / instruction, which implements the steps of the active fault-tolerant method described above when executed by a processor.

[0057] The active fault-tolerant method provided by the present invention includes: collecting log data of edge computing systems within multiple scheduling times; constructing a dynamic directed graph based on the log data; training a fault-tolerant model based on the log data and the directed graph; using the trained fault-tolerant model to predict, based on the log data of the edge computing system within the current scheduling time, a predicted value of the system state of the edge computing node, a predicted result of whether a system failure occurs at the edge computing node, and a fault type when a system failure is predicted at the edge computing node; adjusting a load scheduling strategy based on the predicted value of the system state of each edge computing node and a simulated value of the system state of each edge computing node to reduce the load of the edge computing node predicted to have a system failure.

[0058] It can be seen that the active fault-tolerant method provided by the present invention uses easily accessible log data to train the fault-tolerant model, and predicts the system state of the edge computing node, the prediction result of whether the edge computing node has a system failure, and the type of failure when the edge computing node is predicted to have a system failure based on the fault-tolerant model and log data, thereby achieving fine-grained fault prediction, which is beneficial to the interpretability of the preemptive load scheduling strategy and to achieving credible and interpretable prediction results. The present invention collects log data of edge computing systems within multiple scheduling times, and establishes a dynamic directed graph based on the log data, which is beneficial for the fault-tolerant model to obtain richer evolution information of the edge computing system, better learn the evolution mechanism of the edge computing system, and more accurately complete fault prediction and fault diagnosis.

[0059] The active fault-tolerant device, equipment, medium and computer program product provided by the present invention all have the above-mentioned technical effects. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0061] Figure 1 A schematic diagram of a process flow of an active fault-tolerance method provided by an embodiment of the present invention;

[0062] Figure 2 A schematic diagram of an edge computing system provided by an embodiment of the present invention;

[0063] Figure 3 A schematic diagram of an active fault-tolerant overall architecture provided by an embodiment of the present invention;

[0064] Figure 4 A schematic diagram of an active fault-tolerant device provided by an embodiment of the present invention;

[0065] Figure 5 A schematic diagram of an active fault-tolerant device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0066] The core of the present invention is to provide an active fault-tolerant method, apparatus, device, medium and computer program product, which uses easily accessible log data to train a fault-tolerant model, can save costs, and realize fine-grained fault prediction based on the fault-tolerant model and log data, facilitate the interpretability of the preemptive load scheduling strategy, and facilitate the realization of credible and interpretable prediction results.

[0067] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0068] Please refer to Figure 1 , Figure 1 A flowchart of an active fault tolerance method provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, the method includes:

[0069] S101: Collect log data of edge computing systems within multiple scheduling periods to obtain training data;

[0070] The active fault tolerance method provided by the present invention aims to achieve active fault tolerance for each edge computing node in the edge computing system. Figure 2 As shown, the edge computing system includes a scheduling node and a plurality of edge computing nodes. The active fault-tolerant method provided by the present invention is performed by the scheduling node.

[0071] The failures of edge computing systems are sporadic, diverse, and complex, so it is difficult to collect enough failure data, and the cost of data annotation is high. However, the log data of edge computing systems is easy to obtain. It only needs to regularly sample the state of the edge computing system and record it. The operating mechanism and fault information of the edge computing system are both contained in the log data. Therefore, in this embodiment, the scheduling node collects unlabeled log data, and uses the unlabeled log data to self-supervise the training fault-tolerant model, so that the fault-tolerant model can implicitly learn the operating mechanism of the edge computing system, and then perform fault detection and fault diagnosis.

[0072] In this embodiment, the scheduling node collects log data of the edge computing system within multiple scheduling times. The scheduling time, i.e., the unit scheduling time, refers to the pre-set time for periodically adjusting the load scheduling strategy.

[0073] In some embodiments, collecting log data of the edge computing system includes:

[0074] Collect the system status historical data and system historical scheduling policy data of the edge computing system; the system status historical data includes the system status log records of all edge computing nodes within the scheduling time; the system historical scheduling policy data is the record of the edge computing system's migration scheduling strategy for the load at the beginning of the scheduling time.

[0075] System status historical data , system historical scheduling strategy data .in, Indicates the scheduling time Internal system status system data, Indicates the scheduling time The historical scheduling strategy data of the internal system, k represents the length of the time window for collecting data. Including scheduling time The system status log records of all N edge computing nodes can include the CPU, RAM, network IO and other system resource information of each edge computing node. In , the sampling times of the system state is h times, and the feature representation of the edge computing node obtained by each sampling is a d-dimensional vector. Therefore, Is the size of Tensor data of the system. System historical scheduling strategy data Refers to each scheduling time At the beginning, the edge computing system records the migration scheduling strategy for the load. is a Matrix. Where M represents the number of loads (tasks) running in the edge computing system. Indicates that at the scheduling time At the beginning, load i is migrated to edge computing node j, and each row of the matrix is ​​a one-hot vector. The relationship between the system status history data W and the system history scheduling strategy data S is: the edge computing system is scheduled at the time Running loads within the system to generate log data , at the scheduling time End of entry , according to the new load distribution, at the scheduling time Generate log data .

[0076] It can be understood that the length of the collection time window, the number of samples within the scheduling time, the type of system status sampling, etc. can be adjusted according to the actual edge computing system.

[0077] Collect system status history data W and system historical scheduling strategy data S of more than one time window. The large amount of collected log data is represented as a data set {[W, S]}.

[0078] S102: constructing a dynamic directed graph according to the log data;

[0079] That is, log data is modeled as sliced ​​dynamic graph data. As time changes, log data changes, and the directed graph built based on log data changes, thus obtaining a dynamic directed graph. The changes in the directed graph are mainly reflected in the changes in the edges and the number of nodes.

[0080] Training the fault-tolerant model based on a dynamic directed graph helps the fault-tolerant model obtain richer evolution information of the edge computing system, better learn the evolution mechanism of the edge computing system, and more accurately complete fault prediction and fault diagnosis.

[0081] In some embodiments, constructing a directed graph according to the log data includes:

[0082] At each sampling point, the system historical scheduling strategy data is modeled as a directed graph; the directed graph includes nodes, edges, and feature tensors of all nodes; the node represents an edge computing node, the edge represents that the load of the edge computing node is scheduled to another edge computing node, and the node feature is the system status historical data of the edge computing node.

[0083] The log data of a time window of the edge computing system is W, S. At each sampling point, Modeled as a directed graph , the nodes in the graph Represents edge computing nodes, and the edges in the graph It means that the load of edge computing node i is scheduled to edge computing node j. is the feature tensor of all edge computing nodes, the feature of node i (attribute) corresponds to . Log data of a time window of the edge computing system , represented as a dynamic graph sequence with node attributes .

[0084] Collecting log data does not require manual or automatic annotation of faults and normal conditions in edge computing system log data, saving expensive manual annotation costs. In addition, collecting log data and establishing a directed graph based on the above method can display the topological dependencies between nodes caused by scheduling, and can represent the dynamic changes of such dependencies over time, which can fully capture the dynamic topological information in the data, add effective inductive bias to the model, and facilitate model training and reasoning.

[0085] S103: training a fault-tolerant model according to the log data and the directed graph;

[0086] In some embodiments, the fault-tolerant model includes: a recurrent neural network, a graph neural network, and a Transformer network; the recurrent neural network is used for node-level time series representation, the graph neural network is used for graph-level structure representation, and the Transformer network is used for system state prediction.

[0087] Combination Figure 3 As shown, this embodiment first uses a globally shared recurrent neural network to encode the time series attribute data of each edge computing node, so that the characteristics of the edge computing node are Compress to Among them, the recurrent neural network can be any time series data representation model, including but not limited to one-dimensional convolutional network Covd1d, long short-term memory network (Long Short-Term Memory, LSTM), gated recurrent unit (GRU) and Transformer network.

[0088] Use a layer of Graph Neural Network (GNN) to aggregate and update each directed graph The feature representation of the previous node. Graph neural networks include but are not limited to GCN (Graph Convolution Network), GAT (Graph Attention Network) and MPNN (Message Passing Neural Network) models.

[0089] After the above operations, each edge computing node i can extract an updated time series .in, The standard sequence-to-sequence model based on the Transformer network is used to predict the predicted value of the system state of edge computing node i at the next scheduling time. .

[0090] The fault-tolerant model constructed in this embodiment has the following advantages: 1. Multi-granularity and multi-level historical data representation, including the time series representation of edge computing nodes at the scheduling interval level, the representation of nodes in the topological graph structure, and the full time series representation of the entire sampling window. The architecture of the fault-tolerant model can effectively capture the historical log information of each edge computing node and the topological relationship between them through multi-granularity and multi-level data representation, thereby describing the dynamics and complexity of the edge computing system in detail; 2. Node-level fault prediction. It can more accurately predict the location of the fault. 3. The architecture of the fault-tolerant model can effectively capture the historical log information and interconnections of each edge computing node through multi-level data representation, including but not limited to the time series characteristics of the nodes and the topological relationship between the nodes. It not only helps to accurately predict the location of the fault, but also identifies different types of faults through unsupervised learning methods and classifies faults of the same type. Allow the fault-tolerant model to effectively complete fault diagnosis with limited real fault labeling data. When very few real fault labels are available, the fault-tolerant model can further complete the prediction of the fault type through few-shot learning.

[0091] In some embodiments, training a fault-tolerant model according to the log data and the directed graph includes:

[0092] Randomly extract batch data from the set of data in all time windows; the data in each time window includes log data and directed graphs;

[0093] The fault-tolerant model is trained by self-supervision using the extracted batch data; the overall loss function of the self-supervised training is the weighted sum of the system state reconstruction loss function and the fault embedding prototype loss function.

[0094] You can specify three possible system failures: network, storage, and CPU. Initialize the corresponding fault prototype vector and fault-free prototype embedding. The data of each time window is recorded as , the set of data for all time windows is . Use gradient descent training to optimize the fault-tolerant model. Each time the gradient is calculated, the set The size of the batch data is denoted as B, and the randomly selected sub-dataset is The size of B can be determined according to the actual scenario. For example, B=256. The classification loss function is divided into a system state reconstruction loss function and a fault embedding prototype loss function. The system state reconstruction loss and the fault embedding prototype loss are calculated using each batch of data to further obtain the gradient of the parameters and optimize the fault-tolerant model.

[0095] Among them, each dimension of the input log data will first be normalized to the standard normal distribution by calculating the mean and variance of all data with the same dimension, and then executing the standard normalization algorithm.

[0096] The total number of training cycles for the fault-tolerant model can be set to 300. The adaptive stochastic gradient descent algorithm Adam is used to optimize the weight parameters of the fault-tolerant model, and the initial learning rate is set to 1e -4 The loss value of the validation set is used as the learning rate decay indicator. When the loss value of the validation set does not decrease, the learning rate is multiplied by a preset coefficient, which can be 0.1, until the learning rate decays from the initial learning rate to the target value, which can be 1e -8 .

[0097] In some embodiments, the system state reconstruction loss function is: ; B represents the size of the extracted batch data, represents the predicted value of the system state of edge computing node i in the bth sample, represents the system state of edge computing node i in the bth sample.

[0098] In some embodiments, the fault embedding prototype loss function is: ; B is the size of the extracted batch data, is the fault prototype embedding of the i-th edge computing node in the b-th sample, yes The distance to the center of the nearest faulty prototype.

[0099] The overall loss function L for fault-tolerant model training and optimization is: . and is a weight system that can be set empirically or experimentally. For example, , .

[0100] S104: Based on the log data of the edge computing system within the current scheduling time, the trained fault-tolerant model is used to predict the predicted value of the system state of the edge computing node, the predicted result of whether the edge computing node has a system failure, and the fault type when the edge computing node is predicted to have a system failure;

[0101] In some embodiments, based on the log data of the edge computing system within the current scheduling time, the predicted value of the system state of the edge computing node, the predicted result of whether the edge computing node has a system failure, and the fault type when the edge computing node is predicted to have a system failure include:

[0102] Encode the time series attribute data of each edge computing node through a recurrent neural network;

[0103] Aggregate and update the feature representation of each node on the directed graph through the graph neural network to obtain the update time series of each edge computing node;

[0104] Processing the update time series of the edge computing node using a sequence-to-sequence model based on a Transformer network to obtain a predicted value of the system state of the node;

[0105] Predicting whether the edge computing node will fail according to the predicted value of the system state of the edge computing node;

[0106] When it is predicted that the edge computing node will fail, the failure type of the edge computing node is determined according to the predicted value of the system state of the edge computing node.

[0107] This embodiment uses a dynamic graph neural network to encode and characterize the dynamic graph sequence, outputting the system status of the next scheduling time, whether a fault occurs, and the type of fault. Specifically, firstly, a globally shared recurrent neural network is used to encode the time series attribute data of each edge computing node, so that the characteristics of the edge computing node are Compress to Among them, the recurrent neural network can be any time series data representation model, including but not limited to one-dimensional convolutional network Covd1d, long short-term memory network (Long Short-Term Memory, LSTM), gated recurrent unit (GRU) and Transformer network.

[0108] Then use a layer of Graph Neural Network (GNN) to aggregate and update each directed graph Feature representation of the previous node. Graph neural networks include but are not limited to GCN, GAT and MPNN models.

[0109] After the above operations, each edge computing node i can extract an updated time series .in, The standard Transformer network-based sequence-to-sequence model is used to predict the predicted value of the system state of the edge computing node at the next scheduling time. .

[0110] Predicting whether the edge computing node will fail according to the predicted value of the system state of the edge computing node;

[0111] In the case where it is predicted that the edge computing node will fail, the failure type of the edge computing node is determined according to the predicted value of the system state of the edge computing node.

[0112] The fault-tolerant model is represented by several neural network description files, which include the neural network hyperparameter settings, model descriptions, and model weights. By loading the description files, the scheduling node can build the corresponding neural network, initialize the corresponding neural network, and thus instantiate the fault-tolerant model to complete the above functions. Among them, the hyperparameters are specified in advance and can be obtained through experience or experiments. The parameters of the fault-tolerant model are obtained through training or random initialization.

[0113] In some embodiments, the updated time series of each edge computing node is obtained by aggregating and updating the feature representation of each node on the directed graph through the graph neural network, including:

[0114] according to Aggregate and update the feature representation of the nodes on the directed graph to obtain the update time series of each edge computing node; represents the characteristics of edge computing node i after update, Update represents the update function, represents the features of edge computing node i before updating, Agg represents the aggregation function, represents the characteristics of edge computing node j, Represents all the graph neighbors of edge computing node i.

[0115] In some embodiments, predicting whether the edge computing node will fail according to the predicted value of the system state of the edge computing node includes:

[0116] Calculating the difference between the predicted value and the actual value of the system state of the edge computing node;

[0117] Whether a failure occurs at the edge computing node is determined based on a difference between a predicted value and an actual value of a system state of the edge computing node.

[0118] In some embodiments, calculating the difference between the predicted value and the actual value of the system state of the edge computing node includes:

[0119] according to Calculating the difference between the predicted value and the actual value of the system state of the edge computing node; Represents the difference between the predicted value and the true value of the system state of edge computing node i. ReLU represents the linear rectification function. represents the predicted value of the system state of edge computing node i, Represents the true value of the system status of edge computing node i.

[0120] In some embodiments, judging whether the edge computing node will fail according to the difference between the predicted value and the actual value of the system state of the edge computing node includes:

[0121] according to Calculate the predicted value of the edge computing node failure; if is equal to 1, the edge computing node will fail. If it is equal to 0, the edge computing node will not fail; represents the predicted value of failure of edge computing node i, represents the difference between the predicted value and the true value of the system state of edge computing node i, POT represents the super domain peak, Represents the true value of the system status of edge computing node i.

[0122] The prediction of whether the edge computing node fails at the next scheduling time is expressed as , POT is Peak-Over-Threshold. Indicates that edge computing node i will fail. Indicates that edge computing node i will not fail.

[0123] In some embodiments, determining the fault type of the edge computing node according to the predicted value of the system state of the edge computing node includes:

[0124] Compressing the predicted value of the system state of the edge computing node into a fault prototype vector through a fully connected neural network;

[0125] The fault type of the edge computing node is determined according to the fault prototype vector and the prototype center vector of the fault type.

[0126] Through a 2-layer fully connected neural network MLP (Multilayer Perceptron), the predicted value Compressed into fault prototype vector When a fault is predicted to occur, that is, when When the fault type of the edge computing node is determined according to the fault prototype vector and the prototype center vector of the fault type.

[0127] In some embodiments, determining the fault type of the edge computing node according to the fault prototype vector and the prototype center vector of the fault type includes:

[0128] according to The fault type of the edge computing node is calculated; P[i] represents the fault prototype vector of edge computing node i, and the set The prototype center vector representing the fault type.

[0129] according to Computes the failure type. Collection The prototype center vector representing the fault type is initialized randomly. Can contain 3 vectors. In particular, use Represents the center vector of the fault-free prototype.

[0130] S105: Adjust the load scheduling strategy according to the predicted value of the system status of each edge computing node and the simulated value of the system status of each edge computing node to reduce the load of the edge computing node predicted to have a system failure.

[0131] System status historical data for edge computing systems and historical scheduling strategy data , It is a system load scheduling strategy that needs to be optimized, and its initialization can be heuristically adopted Based on W and S and their corresponding directed graphs, the current system load scheduling strategy is predicted. Whether a failure will occur and the type of failure, and then optimize the initial load scheduling strategy , reducing the load on edge computing nodes that are predicted to have system failures, so that they can avoid subsequent possible failures.

[0132] Adjusting the load scheduling strategy may include, when allocating load, no longer allocating load to edge computing nodes predicted to experience system failures or allocating less load to edge computing nodes predicted to experience system failures; or migrating the load that has been allocated to edge computing nodes predicted to experience system failures to other edge computing nodes; or suspending load migration to edge computing nodes predicted to experience system failures.

[0133] In some embodiments, adjusting the load scheduling strategy according to the predicted value of the system state of each edge computing node and the simulated value of the system state of each edge computing node includes:

[0134] Determining an optimization target according to a predicted value of a system state of each edge computing node and a simulated value of a system state of each edge computing node;

[0135] Obtaining a gradient of an initial load scheduling strategy according to the optimization objective;

[0136] The gradient descent update strategy is used to adjust the load scheduling strategy to reduce the load of edge computing nodes where system failures are predicted to occur.

[0137] Among them, in some embodiments, determining the optimization target according to the predicted value of the system state of each edge computing node and the simulated value of the system state of each edge computing node includes:

[0138] according to Determine optimization goals; represents the optimization goal, Indicates the scheduling time a simulated value of the system state of each of the edge computing nodes, Indicates the scheduling time The predicted value of the system state of each edge computing node, P represents the fault prototype vector, Represents the center vector of the fault-free prototype.

[0139] Define the simulation system of the edge computing system as , define the fault-tolerant model as , adjust the initial load scheduling strategy through online optimization Specifically, the optimization goal is set as L o , defined as:

[0140] ;

[0141] Use gradient backpropagation to obtain the gradient of the initial load scheduling strategy , update the load scheduling strategy through gradient descent: .

[0142] The gradient-based optimization process can continue until a satisfactory load scheduling strategy is obtained.

[0143] The load scheduling strategy is optimized through gradient backpropagation, which has better sample efficiency, easier implementation, faster training speed and better training results.

[0144] In summary, the active fault-tolerant method provided by the present invention uses easily accessible log data to train the fault-tolerant model, which can save costs. Based on the fault-tolerant model and log data prediction, the system state of the edge computing node, the prediction result of whether the edge computing node has a system failure, and the type of failure when the edge computing node is predicted to have a system failure are obtained, thereby achieving fine-grained fault prediction, which is beneficial to the interpretability of the preemptive load scheduling strategy and is beneficial to achieving reliable and interpretable prediction results. The present invention collects log data of edge computing systems within multiple scheduling times, and establishes a dynamic directed graph based on the log data, which is beneficial for the fault-tolerant model to obtain richer evolution information of the edge computing system, better learn the evolution mechanism of the edge computing system, and more accurately complete fault prediction and fault diagnosis.

[0145] The present invention also provides an active fault-tolerant device, and the device described below can be referred to in correspondence with the method described above. Figure 4 , Figure 4 A schematic diagram of an active fault-tolerant device provided by an embodiment of the present invention, combined with Figure 4 As shown, the device comprises:

[0146] A collection module 10, used to collect log data of edge computing systems within multiple scheduling times;

[0147] A construction module 20, configured to construct a dynamic directed graph according to the log data;

[0148] A training module 30, configured to train a fault-tolerant model according to the log data and the directed graph;

[0149] The prediction module 40 is used to predict the predicted value of the system state of the edge computing node, the predicted result of whether the edge computing node has a system failure, and the fault type when the edge computing node is predicted to have a system failure based on the log data of the edge computing system within the current scheduling time using the trained fault-tolerant model;

[0150] The adjustment module 50 is used to adjust the load scheduling strategy according to the predicted value of the system state of each edge computing node and the simulated value of the system state of each edge computing node to reduce the load of the edge computing node predicted to have a system failure.

[0151] In some embodiments, the collection module 10 is specifically used for:

[0152] Collect the system status historical data and system historical scheduling policy data of the edge computing system; the system status historical data includes the system status log records of all edge computing nodes at the scheduling time; the system historical scheduling policy data is the record of the load scheduling strategy of the edge computing system for the load at the beginning of the scheduling time.

[0153] In some embodiments, the building block 20 is specifically used to:

[0154] At each sampling point, the system historical scheduling strategy data is modeled as a directed graph; the directed graph includes nodes, edges, and feature tensors of all nodes; the node represents an edge computing node, the edge represents that the load of the edge computing node is scheduled to another edge computing node, and the node feature is the system status historical data of the edge computing node.

[0155] In some embodiments, the fault-tolerant model includes: a recurrent neural network, a graph neural network, and a Transformer network; the recurrent neural network is used for node-level time series representation, the graph neural network is used for graph-level structure representation, and the Transformer network is used for system state prediction.

[0156] In some embodiments, the prediction module 40 includes:

[0157] An encoding unit, used for encoding the time series attribute data of each edge computing node through a recurrent neural network;

[0158] Aggregation and update unit, used to aggregate and update the feature representation of each node on the directed graph through the graph neural network to obtain the update time series of each edge computing node;

[0159] A first prediction unit, configured to process an update time series of the edge computing node using a sequence-to-sequence model based on a Transformer to obtain a predicted value of a system state of the node;

[0160] A second prediction unit, configured to predict whether a failure will occur in the edge computing node according to a predicted value of a system state of the edge computing node;

[0161] A determination unit is used to determine the fault type of the edge computing node according to the predicted value of the system state of the edge computing node when it is predicted that the edge computing node will fail.

[0162] In some embodiments, the aggregation and updating unit is specifically configured to:

[0163] according to Aggregate and update the feature representation of the nodes on the directed graph to obtain the update time series of each edge computing node; represents the characteristics of edge computing node i after update, Update represents the update function, represents the features of edge computing node i before updating, Agg represents the aggregation function, represents the characteristics of edge computing node j, Represents all the graph neighbors of edge computing node i.

[0164] In some embodiments, the second prediction unit includes:

[0165] A calculation subunit, used to calculate the difference between the predicted value and the true value of the system state of the edge computing node;

[0166] The judgment subunit is used to judge whether the edge computing node will fail according to the difference between the predicted value and the actual value of the system state of the edge computing node.

[0167] In some embodiments, the computing subunit is specifically used for:

[0168] according to Calculating the difference between the predicted value and the actual value of the system state of the edge computing node; Represents the difference between the predicted value and the true value of the system state of edge computing node i. ReLU represents the linear rectification function. represents the predicted value of the system state of edge computing node i, Represents the true value of the system status of edge computing node i.

[0169] In some embodiments, the determination subunit is specifically used for:

[0170] according to Calculate the predicted value of the edge computing node failure; if is equal to 1, the edge computing node will fail. If it is equal to 0, the edge computing node will not fail; represents the predicted value of failure of edge computing node i, represents the difference between the predicted value and the true value of the system state of edge computing node i, POT represents the super domain peak, Represents the true value of the system status of edge computing node i.

[0171] In some embodiments, the determining unit includes:

[0172] A compression subunit, configured to compress the predicted value of the system state of the edge computing node into a fault prototype vector through a fully connected neural network;

[0173] A determination subunit is used to determine the fault type of the edge computing node according to the fault prototype vector and the prototype center vector of the fault type.

[0174] In some embodiments, the determining subunit is specifically configured to:

[0175] according to The fault type of the edge computing node is calculated; P[i] represents the fault prototype vector of edge computing node i, and the set The prototype center vector representing the fault type.

[0176] In some embodiments, the adjustment module 50 includes:

[0177] An optimization target determination unit, configured to determine an optimization target according to a predicted value of a system state of each edge computing node and a simulated value of a system state of each edge computing node;

[0178] A gradient calculation unit, used to obtain the gradient of the initial load scheduling strategy according to the optimization target;

[0179] The load scheduling strategy adjustment unit is used to adjust the load scheduling strategy by adopting a gradient descent update strategy.

[0180] In some embodiments, the optimization target determination unit is specifically used to:

[0181] according to Determine optimization goals; represents the optimization goal, Indicates the scheduling time a simulated value of the system state of each of the edge computing nodes, Indicates the scheduling time The predicted value of the system state of each edge computing node, P represents the fault prototype vector, Represents the center vector of the fault-free prototype.

[0182] In some embodiments, the training module 30 includes:

[0183] The extraction unit is used to randomly extract batch data from the set of data in all time windows; the data in each time window includes log data and directed graphs;

[0184] A training unit is used to use the extracted batch data for self-supervised training of the fault-tolerant model; the overall loss function of the self-supervised training is the weighted sum of the system state reconstruction loss function and the fault embedding prototype loss function.

[0185] In some embodiments, the system state reconstruction loss function is: ; B represents the size of the extracted batch data, represents the predicted value of the system state of edge computing node i in the bth sample, represents the system state of edge computing node i in the bth sample.

[0186] In some embodiments, the fault embedding prototype loss function is: ; B is the size of the extracted batch data, is the fault prototype embedding of the i-th edge computing node in the b-th sample, yes The distance to the center of the nearest faulty prototype.

[0187] The active fault-tolerant device provided by the present invention uses easily accessible log data to train the fault-tolerant model, which can save costs. Based on the fault-tolerant model and log data prediction, the system state of the edge computing node, the prediction result of whether the edge computing node has a system failure, and the type of failure when the edge computing node is predicted to have a system failure are obtained, thereby achieving fine-grained fault prediction, which is beneficial to the interpretability of the preemptive load scheduling strategy and is beneficial to achieving reliable and interpretable prediction results. The present invention collects log data of edge computing systems within multiple scheduling times, and establishes a dynamic directed graph based on the log data, which is beneficial for the fault-tolerant model to obtain richer evolution information of the edge computing system, better learn the evolution mechanism of the edge computing system, and more accurately complete fault prediction and fault diagnosis.

[0188] The present invention also provides an active fault-tolerant device, referring to Figure 5 As shown, the device includes a memory 1 and a processor 2 .

[0189] Memory 1, used for storing computer programs;

[0190] Processor 2 is used to execute the computer program to implement the following steps:

[0191] Collect log data of edge computing systems within multiple scheduling times; construct a dynamic directed graph based on the log data; train a fault-tolerant model based on the log data and the directed graph; use the trained fault-tolerant model to predict, based on the log data of the edge computing system within the current scheduling time, the predicted value of the system state of the edge computing node, the predicted result of whether the edge computing node has a system failure, and the type of failure when the edge computing node is predicted to have a system failure; adjust the load scheduling strategy based on the predicted value of the system state of each edge computing node and the simulated value of the system state of each edge computing node to reduce the load of the edge computing node predicted to have a system failure.

[0192] For an introduction to the device provided by the present invention, please refer to the above method embodiment, and the present invention will not be elaborated here.

[0193] The active fault-tolerant device provided by the present invention uses easily accessible log data to train the fault-tolerant model, which can save costs. Based on the fault-tolerant model and log data prediction, the system state of the edge computing node, the prediction result of whether the edge computing node has a system failure, and the fault type when the edge computing node is predicted to have a system failure are obtained, thereby achieving fine-grained fault prediction, which is beneficial to the interpretability of the preemptive load scheduling strategy and is beneficial to achieving reliable and interpretable prediction results. The present invention collects the log data of the edge computing system within multiple scheduling times, and establishes a dynamic directed graph based on the log data, which is beneficial for the fault-tolerant model to obtain richer evolution information of the edge computing system, better learn the evolution mechanism of the edge computing system, and more accurately complete fault prediction and fault diagnosis.

[0194] The present invention also provides a medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps can be implemented:

[0195] Collect log data of edge computing systems within multiple scheduling times; construct a dynamic directed graph based on the log data; train a fault-tolerant model based on the log data and the directed graph; use the trained fault-tolerant model to predict, based on the log data of the edge computing system within the current scheduling time, the predicted value of the system state of the edge computing node, the predicted result of whether the edge computing node has a system failure, and the type of failure when the edge computing node is predicted to have a system failure; adjust the load scheduling strategy based on the predicted value of the system state of each edge computing node and the simulated value of the system state of each edge computing node to reduce the load of the edge computing node predicted to have a system failure.

[0196] The medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0197] For an introduction to the medium provided by the present invention, please refer to the above method embodiment, and the present invention will not be elaborated here.

[0198] When the computer program stored on the medium provided by the present invention is executed by the processor, the easily accessible log data is used to train the fault-tolerant model, which can save costs. Based on the fault-tolerant model and the log data prediction, the system state of the edge computing node, the prediction result of whether the edge computing node has a system failure, and the type of failure when the edge computing node is predicted to have a system failure are obtained, thereby achieving fine-grained fault prediction, facilitating the interpretability of the preemptive load scheduling strategy, and facilitating the realization of credible and interpretable prediction results. The present invention collects the log data of the edge computing system within multiple scheduling times, and establishes a dynamic directed graph based on the log data, which is conducive to the fault-tolerant model obtaining richer evolution information of the edge computing system, better learning the evolution mechanism of the edge computing system, and more accurately completing fault prediction and fault diagnosis.

[0199] The present invention also provides a computer program product, comprising a computer program / instruction, which implements the following steps when executed by a processor:

[0200] Collect log data of edge computing systems within multiple scheduling times; construct a dynamic directed graph based on the log data; train a fault-tolerant model based on the log data and the directed graph; use the trained fault-tolerant model to predict, based on the log data of the edge computing system within the current scheduling time, the predicted value of the system state of the edge computing node, the predicted result of whether the edge computing node has a system failure, and the type of failure when the edge computing node is predicted to have a system failure; adjust the load scheduling strategy based on the predicted value of the system state of each edge computing node and the simulated value of the system state of each edge computing node to reduce the load of the edge computing node predicted to have a system failure.

[0201] For an introduction to the computer program product provided by the present invention, please refer to the above method embodiment, and the present invention will not be elaborated here.

[0202] When the computer program / instruction in the computer program product provided by the present invention is executed by the processor, the fault-tolerant model is trained using easily accessible log data, which can save costs. Based on the fault-tolerant model and log data prediction, the system state of the edge computing node, the prediction result of whether a system failure occurs in the edge computing node, and the type of failure when the system failure of the edge computing node is predicted, fine-grained fault prediction is achieved, which is beneficial to the interpretability of the preemptive load scheduling strategy and is beneficial to achieving reliable and interpretable prediction results. The present invention collects log data of edge computing systems within multiple scheduling times, and establishes a dynamic directed graph based on the log data, which is beneficial for the fault-tolerant model to obtain richer evolution information of the edge computing system, better learn the evolution mechanism of the edge computing system, and more accurately complete fault prediction and fault diagnosis.

[0203] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the devices, equipment and media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0204] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0205] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0206] The active fault-tolerant method, device, equipment, medium and computer program product provided by the present invention are introduced in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the present invention.

Claims

1. An active fault tolerance method, characterized in that: include: Collect log data of edge computing systems during multiple scheduling periods; Constructing a dynamic directed graph according to the log data; Training a fault-tolerant model according to the log data and the directed graph; The fault-tolerant model includes: a recurrent neural network, a graph neural network and a Transformer network; the recurrent neural network is used for node-level time series representation, the graph neural network is used for graph-level structure representation, and the Transformer network is used for system state prediction; According to the log data of the edge computing system within the current scheduling time, the trained fault-tolerant model is used to predict the predicted value of the system state of the edge computing node, the prediction result of whether the edge computing node has a system failure, and the fault type when the edge computing node is predicted to have a system failure; Adjusting the load scheduling strategy according to the predicted value of the system state of each edge computing node and the simulated value of the system state of each edge computing node to reduce the load of the edge computing node predicted to have a system failure; According to the log data of the edge computing system within the current scheduling time, the predicted value of the system state of the edge computing node, the predicted result of whether the edge computing node has a system failure, and the fault type when the edge computing node is predicted to have a system failure include: Encode the time series attribute data of each edge computing node through a recurrent neural network; Aggregate and update the feature representation of each node on the directed graph through the graph neural network to obtain the update time series of each edge computing node; Processing the update time series of the edge computing node using a sequence-to-sequence model based on Transformer to obtain a predicted value of the system state of the node; Predicting whether the edge computing node will fail according to the predicted value of the system state of the edge computing node; When it is predicted that the edge computing node will fail, the failure type of the edge computing node is determined according to the predicted value of the system state of the edge computing node.

2. The active fault tolerance method according to claim 1, characterized in that: The log data collected from the edge computing system includes: Collect the system status historical data and system historical scheduling policy data of the edge computing system; the system status historical data includes the system status log records of all edge computing nodes within the scheduling time; the system historical scheduling policy data is the record of the edge computing system's migration scheduling strategy for the load at the beginning of the scheduling time.

3. The active fault tolerance method according to claim 2, characterized in that: Constructing a dynamic directed graph according to the log data includes: At each sampling point, the system historical scheduling strategy data is modeled as a directed graph; the directed graph includes nodes, edges, and feature tensors of all nodes; the node represents an edge computing node, the edge represents that the load of the edge computing node is scheduled to another edge computing node, and the node feature is the system status historical data of the edge computing node.

4. The active fault tolerance method according to claim 1, characterized in that: By aggregating and updating the feature representation of each node on the directed graph through the graph neural network, the update time series of each edge computing node is obtained, including: according to Aggregate and update the feature representation of the nodes on the directed graph to obtain the update time series of each edge computing node; represents the characteristics of edge computing node i after update, Update represents the update function, represents the features of edge computing node i before updating, Agg represents the aggregation function, represents the characteristics of edge computing node j, Represents all the graph neighbors of edge computing node i.

5. The active fault tolerance method according to claim 1, characterized in that: Predicting whether a failure will occur at the edge computing node according to the predicted value of the system state of the edge computing node includes: Calculating the difference between the predicted value and the actual value of the system state of the edge computing node; Whether a failure occurs at the edge computing node is determined based on a difference between a predicted value and an actual value of a system state of the edge computing node.

6. The active fault tolerance method according to claim 5, characterized in that: Calculating the difference between the predicted value and the actual value of the system state of the edge computing node includes: according to Calculating the difference between the predicted value and the actual value of the system state of the edge computing node; Represents the difference between the predicted value and the true value of the system state of edge computing node i. ReLU represents the linear rectification function. represents the predicted value of the system state of edge computing node i, Represents the true value of the system status of edge computing node i.

7. The active fault tolerance method according to claim 6, characterized in that: Judging whether a failure occurs at the edge computing node according to a difference between a predicted value and an actual value of the system state of the edge computing node includes: according to Calculate the predicted value of the edge computing node failure; if is equal to 1, the edge computing node will fail. If it is equal to 0, the edge computing node will not fail; represents the predicted value of failure of edge computing node i, represents the difference between the predicted value and the true value of the system state of edge computing node i, POT represents the super domain peak, Represents the true value of the system status of edge computing node i.

8. The active fault tolerance method according to claim 1, characterized in that: Determining the fault type of the edge computing node according to the predicted value of the system state of the edge computing node includes: Compressing the predicted value of the system state of the edge computing node into a fault prototype vector through a fully connected neural network; The fault type of the edge computing node is determined according to the fault prototype vector and the prototype center vector of the fault type.

9. The active fault tolerance method according to claim 8, characterized in that: Determining the fault type of the edge computing node according to the fault prototype vector and the prototype center vector of the fault type includes: according to The fault type of the edge computing node is calculated; P[i] represents the fault prototype vector of edge computing node i, and the set The prototype center vector representing the fault type.

10. The active fault tolerance method according to claim 1, characterized in that: Adjusting the load scheduling strategy according to the predicted value of the system state of each edge computing node and the simulated value of the system state of each edge computing node includes: Determining an optimization target according to a predicted value of a system state of each edge computing node and a simulated value of a system state of each edge computing node; Obtaining a gradient of an initial load scheduling strategy according to the optimization objective; The gradient descent update strategy is used to adjust the load scheduling strategy to reduce the load of edge computing nodes where system failures are predicted to occur.

11. The active fault tolerance method according to claim 10, characterized in that: Determining the optimization target according to the predicted value of the system state of each edge computing node and the simulated value of the system state of each edge computing node includes: according to Determine optimization goals; represents the optimization goal, Indicates the scheduling time a simulated value of the system state of each of the edge computing nodes, Indicates the scheduling time The predicted value of the system state of each edge computing node, P represents the fault prototype vector, Represents the center vector of the fault-free prototype.

12. The active fault tolerance method according to claim 1, characterized in that: Training the fault-tolerant model according to the log data and the directed graph includes: Randomly extract batch data from the set of data in all time windows; the data in each time window includes log data and directed graphs; The fault-tolerant model is trained by self-supervision using the extracted batch data; the overall loss function of the self-supervised training is the weighted sum of the system state reconstruction loss function and the fault embedding prototype loss function.

13. The active fault tolerance method according to claim 12, characterized in that: The system state reconstruction loss function is: ; B represents the size of the extracted batch data, represents the predicted value of the system state of edge computing node i in the bth sample, represents the system state of edge computing node i in the bth sample.

14. The active fault tolerance method according to claim 12, characterized in that: The fault embedding prototype loss function is: ; B is the size of the extracted batch data, is the fault prototype embedding of the i-th edge computing node in the b-th sample, yes The distance to the center of the nearest faulty prototype, yes The distance is not the center of the nearest faulty prototype.

15. An active fault-tolerant device, characterized in that: include: A collection module, used to collect log data of edge computing systems within multiple scheduling periods; A construction module, used to construct a dynamic directed graph according to the log data; A training module, used to train a fault-tolerant model according to the log data and the directed graph; the fault-tolerant model includes: a recurrent neural network, a graph neural network and a Transformer network; the recurrent neural network is used for node-level time series representation, the graph neural network is used for graph-level structure representation, and the Transformer network is used for system state prediction; A prediction module is used to predict the system status of the edge computing node, the prediction result of whether the edge computing node has a system failure, and the fault type when the edge computing node is predicted to have a system failure, based on the log data of the edge computing system within the current scheduling time and using the trained fault-tolerant model; An adjustment module, configured to adjust a load scheduling strategy according to a predicted value of a system state of each edge computing node and a simulated value of a system state of each edge computing node, so as to reduce a load of an edge computing node predicted to have a system failure; The prediction module includes: An encoding unit, used for encoding the time series attribute data of each edge computing node through a recurrent neural network; Aggregation and update unit, used to aggregate and update the feature representation of each node on the directed graph through the graph neural network to obtain the update time series of each edge computing node; A first prediction unit, configured to process an update time series of the edge computing node using a sequence-to-sequence model based on a Transformer to obtain a predicted value of a system state of the node; A second prediction unit, configured to predict whether a failure will occur in the edge computing node according to a predicted value of a system state of the edge computing node; A determination unit is used to determine the fault type of the edge computing node according to the predicted value of the system state of the edge computing node when it is predicted that the edge computing node will fail.

16. An active fault-tolerant device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the active fault-tolerant method according to any one of claims 1 to 14 when executing the computer program.

17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the active fault-tolerant method according to any one of claims 1 to 14 are implemented.

18. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of the active fault tolerance method as claimed in any one of claims 1 to 14 are implemented.