Erasure code data recovery method and device and storage medium

The LSTM model predicts the data recovery time of Ceph cluster nodes and selects the optimal nodes for data recovery, which solves the problem of low erasure code data recovery efficiency in the existing technology and achieves faster data recovery and higher cluster performance.

CN118796553APending Publication Date: 2024-10-18CHINA MOBILE GRP GUANGDONG CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410656576.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In the existing technology, Ceph's erasure code data recovery efficiency is low and slow, and the selection of computing nodes is not optimized, which affects the data recovery time and cluster business performance.

Method used

The Long Short Time Memory Network (LSTM) model is used to predict the data recovery time of each node based on the OSD node performance data and Ceph cluster performance data in the N periods before data recovery, select the node corresponding to the minimum recovery time for data recovery calculation, and pass Continuous learning mechanism optimizes model performance.

Benefits of technology

It improves the efficiency and speed of data recovery, ensures that optimal computing nodes are selected during data repair calculations, shortens data recovery time, and improves cluster business performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796553A_ABST
    Figure CN118796553A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data storage, in particular to an erasure code data recovery method, device and equipment and a computer storage medium. According to the erasure code data recovery method, in data recovery calculation, performance information of each node and a trained LSTM model are combined to predict data recovery calculation time of each node, and the node with the shortest time is selected as a calculation node. Compared with the traditional sequence selection which cannot guarantee the selection of the optimal computing node, the method can guarantee that the computing node is the optimal node during the data recovery calculation based on the LSTM model, thereby guaranteeing the shortest data recovery time, and improving the data recovery efficiency and speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data storage, and in particular to an erasure code data recovery method, device, equipment and computer storage medium. Background Art

[0002] Erasure coding (EC) is one of the data security strategies of the distributed storage project Ceph. Under the same security level, EC has a higher effective capacity than the replica strategy, that is, the EC strategy can store more data while keeping the storage server cost unchanged.

[0003] When storage data is damaged, the EC policy will complete data repair through calculation. For example, if silent data verification errors are found during regular and deep scans of the cluster, or data damage is found during data reading, the EC policy data recovery action will be triggered. However, the calculation overhead of data recovery by the EC policy is higher than that of the replica policy, and the speed of data recovery is related to factors such as the node's CPU utilization, memory utilization, and remaining network bandwidth.

[0004] Currently, the Ceph open source community does not provide a specific solution to select computing nodes for EC policy data recovery scenarios. Instead, it is based on the Ceph peering mechanism, that is, the primary OSD node corresponding to the data to be recovered is used as the computing node for data recovery; when data damage occurs on the primary OSD, the next OSD is selected in sequence as the temporary primary OSD, and the node corresponding to the temporary primary OSD is confirmed as the computing node (Note: the cluster background of the computing node selection strategy is the host-level fault domain).

[0005] From the description of traditional technology, we can know that the EC data recovery process depends on the computing speed of the computing nodes, and the CPU, memory, network and other resources of the computing nodes will affect the data recovery calculation process to a certain extent, and then affect the data recovery speed. In the traditional solution, the computing nodes are selected in sequence, and there is no guarantee that the selected computing node is the optimal node among all the nodes involved. That is, Host1 or Host2 is not necessarily the optimal data recovery computing node when triggering the data recovery calculation. Therefore, this method will affect the EC data recovery efficiency. In the case of cluster processing business, the impact of the traditional solution on cluster business and read and write rates will be more obvious.

[0006] In summary, under the EC storage strategy, Ceph's solution for cluster data recovery has the following shortcomings:

[0007] In the Ceph open source solution, the computing node is the primary OSD node of the data to be recovered by default, without considering the resource status of the node. It cannot guarantee that the computing node selected in sequence is the optimal computing node, which will affect the efficiency of data recovery calculation, increase recovery overhead, and prolong data recovery time.

[0008] Node configurations will change with hardware aging, failures, and other issues, causing the original data set provided for learning to be unable to meet existing scenarios. The prediction model will produce large errors, which will in turn affect the speed of data recovery. Summary of the invention

[0009] Therefore, the technical problem to be solved by the present invention is to overcome the problems of low efficiency and low speed of data recovery in the prior art.

[0010] In order to solve the above technical problems, the present invention provides an erasure code data recovery method, comprising:

[0011] The LSTM model is established with the OSD node performance data and Ceph cluster performance data of the N cycles before data recovery as input and the data recovery time as output;

[0012] Collect multiple sets of OSD node performance data and Ceph cluster performance data for the first N cycles of data recovery, perform data preprocessing on them, and use the corresponding real data recovery time as a label to build a training set;

[0013] Using the training set to train the LSTM model until the error function converges;

[0014] The trained LSTM model is deployed online in the cluster nodes. When the cluster triggers data recovery, the trained LSTM model is used to predict the predicted data recovery time of each node.

[0015] Select the node corresponding to the minimum predicted data recovery time for data recovery calculation.

[0016] Preferably, the OSD node performance data includes CPU usage, memory usage, network bandwidth consumption and node read and write IO data volume, and the Ceph cluster performance data includes cluster service IOPS, cluster recovery rate, and cache data refresh rate.

[0017] Preferably, the actual data recovery time is: the difference between the data recovery start time and the recovery completion time in a data recovery scenario established by constructing a data silent error or data loss.

[0018] Preferably, the preprocessing of data includes:

[0019] Each group of collected data is cut into N cycles and normalized.

[0020] Preferably, the step of training the LSTM model using the training set until the error function converges comprises:

[0021] The LSTM model is trained using the training set, and the model parameters are updated according to the error back propagation algorithm and the optimization algorithm until the root mean square error of the training is less than a preset threshold or the number of training times reaches an upper limit.

[0022] Preferably, the trained LSTM model is deployed online in the cluster nodes, and when the cluster triggers data recovery, the trained LSTM model is used to predict the predicted data recovery time of each node, including:

[0023] Deploy the trained LSTM model online in the cluster nodes;

[0024] When the cluster triggers data recovery, the performance data of all OSD nodes and Ceph cluster corresponding to the recovery object are collected;

[0025] The collected performance data of the first N cycles is used as the model input to predict the data recovery time of each node.

[0026] Preferably, after selecting the node corresponding to the minimum predicted data recovery time to perform data recovery calculation, the method further includes:

[0027] Collect the performance data of the first N cycles and the corresponding actual data recovery time, add them to the training set, and perform offline training on the LSTM model;

[0028] If the error between the modified LSTM model after offline training and the online deployed LSTM model is greater than a preset error threshold, the modified LSTM model is used to replace the online deployed LSTM model.

[0029] The present invention also provides an erasure code data recovery device, comprising:

[0030] The model building module is used to build an LSTM model using the OSD node performance data and Ceph cluster performance data of the N cycles before data recovery as input and the data recovery time as output;

[0031] The training set construction module is used to collect multiple sets of OSD node performance data and Ceph cluster performance data for the first N cycles of data recovery, perform data preprocessing on them, and use the corresponding real data recovery time as a label to construct a training set;

[0032] A training module, used for training the LSTM model using the training set until the error function converges;

[0033] A prediction module is used to deploy the trained LSTM model online in the cluster nodes. When the cluster triggers data recovery, the trained LSTM model is used to predict the predicted data recovery time of each node.

[0034] The data recovery module is used to select the node corresponding to the minimum predicted data recovery time to perform data recovery calculation.

[0035] The present invention also provides an erasure code data recovery device, comprising:

[0036] Memory for storing computer programs;

[0037] A processor is used to implement the above-mentioned steps of the erasure code data recovery method when executing the computer program.

[0038] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned erasure code data recovery method are implemented.

[0039] The above technical solution of the present invention has the following advantages compared with the prior art:

[0040] The erasure code data recovery method of the present invention combines the performance information of each node and the trained LSTM model to predict the data recovery calculation time of each node in the data recovery calculation, and selects the node with the shortest time as the calculation node. Compared with the traditional sequential selection that cannot guarantee the selection of the optimal calculation node, the present invention can ensure that the calculation node is the optimal node when performing data repair calculation based on the LSTM model, thereby ensuring the shortest data recovery time and improving the efficiency and speed of data recovery. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to make the content of the present invention more clearly understood, the present invention is further described in detail below according to specific embodiments of the present invention in conjunction with the accompanying drawings, wherein:

[0042] Figure 1 It is a flow chart of an implementation method of erasure code data recovery provided by the present invention;

[0043] Figure 2 This is a schematic diagram of triggering a data recovery action provided by an embodiment of the present invention;

[0044] Figure 3 is a schematic diagram of model input provided by an embodiment of the present invention;

[0045] Figure 4 A schematic diagram of selecting the most efficient computing node provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0046] The core of the present invention is to provide an erasure code data recovery method, device, equipment and computer storage medium, which effectively improves the data recovery efficiency and speed.

[0047] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0048] Please refer to Figure 1 , Figure 1 This is a flowchart of an implementation method of erasure code data recovery provided by the present invention; the specific operation steps are as follows:

[0049] S101: Using the OSD node performance data and Ceph cluster performance data of the N cycles before data recovery as input and the data recovery time as output, an LSTM model is established;

[0050] S102: Collect multiple sets of OSD node performance data and Ceph cluster performance data for the N cycles before data recovery, perform data preprocessing on them, and use the corresponding real data recovery time as a label to construct a training set;

[0051] S103: Training the LSTM model using the training set until the error function converges;

[0052] S104: deploying the trained LSTM model online in the cluster nodes, and when the cluster triggers data recovery, using the trained LSTM model to predict the predicted data recovery time of each node;

[0053] S105: Select the node corresponding to the minimum predicted data recovery time to perform data recovery calculation.

[0054] Based on the above embodiments, this embodiment describes step S101 in detail:

[0055] Since the node and cluster performance data are collected in real time by sensors or monitoring software, they have time series characteristics. Therefore, the time series processing model LSTM is used for time series prediction. The LSTM model is connected with multiple fully connected layers, which are divided into input layer, hidden layer and output layer: the input layer is used to receive the output results of the LSTM model, increase the number of output units to enrich the features, and pass the learning data to the next layer of neurons; the hidden layer is divided into two layers, and each hidden layer neuron will receive information from the previous layer of neurons and pass the extracted feature information to the next layer; the output layer receives the output information of the last hidden layer, and the number of its output neurons is 1 for logistic regression. After the LSTM model prediction is completed, the output result of the last moment is taken and used as the input of the two fully connected layers for logistic regression. The output result of the last fully connected layer is the recovery time predicted by the model.

[0056] Based on the above embodiments, this embodiment describes step S102 in detail:

[0057] The present invention uses the performance data of the Ceph cluster in actual scenarios as the training set of the model. The sampled performance data include: node performance data collected in a short period: CPU utilization, memory utilization, network bandwidth consumption and node read and write IO data volume; Ceph cluster performance data collected in a long period in the EC data recovery scenario: cluster service IOPS, cluster recovery rate, cache data refresh rate. The recovery time of a single object in a conventional scenario is in milliseconds. In order to ensure that the sampled data can effectively reflect the relevant performance changes before and after data recovery, in one embodiment, the sampling frequency is set to 1ms, and short-period performance data is collected; the long-period performance data sampling period is 1s, and EC performance data is collected; the present invention also constructs data silent errors or data loss, that is, manually constructs a data recovery scenario, and records the difference between the start and completion time of data recovery as the actual data recovery time.

[0058] Since the constructed data set is composed of performance data of different dimensions, such as CPU usage, network bandwidth consumption, node read and write IO data volume, cluster service IOPS, cluster recovery rate, cache data refresh rate, its measurement units and practical meanings are not the same. In order to eliminate the impact of this difference on model training, the present invention first performs data preprocessing operations before model training: data transformation and normalization. Data transformation is to change the form of the original data without affecting its basic characteristics. The collected data is cut according to the N cycles preset by the LSTM model, and the real data recovery time of the next step time cycle is used as a label to adapt the LSTM model training. The normalization process is to eliminate the impact of different dimensions between performance data and prevent data with small absolute values ​​from being ignored or weakened in the process of model learning. The normalization method adopted by the present invention is Min-Max. Suppose the original data is X: {x 0,…, x n}, the normalized data is Y:{y 0,…, y n}, min is the minimum value in the original data, and max is the maximum value in the original data. The Min-Max normalization method can be expressed by the following formula:

[0059]

[0060] Among them, the normalized data is dimensionless and between 0 and 1, which is conducive to the convergence of the model in this scenario and makes the LSTM model suitable for data recovery time prediction in the EC recovery scenario.

[0061] Based on the above embodiments, this embodiment describes step S103 in detail:

[0062] During the training phase, the model learns the internal rules of the training data and updates the weight parameters according to the error back propagation algorithm and the optimization algorithm. The training stops when the training error is less than the threshold or the training batch is completed. The error loss function uses the root mean square error RMSE. Assuming that y* is the predicted value and y is the actual value, the formula is as follows:

[0063]

[0064] Based on the above embodiments, this embodiment describes step S104 in detail:

[0065] After the model training is completed, it is deployed online in the cluster nodes. When the cluster triggers data recovery, the relevant performance information of all OSD nodes corresponding to the recovery object and the relevant performance information of the Ceph cluster are first collected through mon; then the recovery time of each node is predicted based on the collected performance data, that is, the data of the first N cycles collected are input through the online deployed model to obtain the output time predicted by the model. Among the output times predicted by each node, the node with the shortest recovery time is selected as the subsequent computing node, and data recovery calculations are performed on this node. At this point, the optimization of the data recovery process in the erasure code environment in this solution is completed, the data recovery speed is improved, and the system performance is improved without affecting the business.

[0066] Based on the above embodiments, when the cluster performance changes due to force majeure factors (hardware aging, expansion and contraction, etc.), in order to ensure that the model still has good prediction performance, the present invention proposes a sustainable learning mechanism:

[0067] Based on the existing online model, when the cluster generates data recovery, the online model is first called to predict the time required for each node to recover and the node with the minimum time is selected as the computing node for recovery. At the same time, the server collects performance data and actual recovery time and sends them to the training server. The training server adds real-time data to the data set for offline training. If the error is greater than the threshold compared to the previous model, the prediction model in the cluster is replaced, thereby achieving continuous learning, optimizing the model prediction performance, and then optimizing the data recovery process and improving the efficiency of data recovery.

[0068] Offline training is designed to solve the problems of hardware aging and hardware performance degradation in the cluster, which lead to the inconsistency between the actual recovery time of the computing node and the original model prediction time. The solution will record the actual recovery time and related resource information in real time, and transmit such information to the offline training model for training. When the error of the offline model compared with the current model is found, that is, the difference in the predicted data recovery time between the offline training model and the online deployment model is greater than the threshold, the original model in the cluster is replaced and converted to a revised model. In this way, the prediction results are continuously optimized, the optimal computing nodes are selected, and the data recovery time is shortened.

[0069] The present invention collects the performance data of the nodes: CPU utilization, memory utilization, network bandwidth consumption and node read and write IO data volume; Ceph cluster performance data in the EC data recovery scenario: cluster service IOPS, cluster recovery rate, cache data refresh rate as the deep model input, and calculates the node data recovery time as the model output; the model uses the LSTM model to predict the time series, learns the time series characteristics in the performance data, and then uses multiple fully connected layers to complete the logistic regression to obtain the predicted value; after the model training is completed, it is deployed online to the Ceph cluster, and when the cluster is damaged or lost, the model is called to calculate the data recovery time of each node involved in the fault data, and the node with the shortest recovery time is selected as the calculation node for this recovery; at the same time, when the cluster data recovery occurs, the node will automatically send the collected training data and the current recovery time to the training server, and the model will continue to perform offline training based on the newly added data, thereby increasing the data sample and optimizing the model prediction performance.

[0070] Based on the above embodiments, this embodiment takes the EC3+2 strategy as an example, and the specific implementation process is divided into:

[0071] (1) If silent data verification errors are found during regular and deep scans of the cluster, or data corruption is found during data reading, EC data recovery actions will be triggered, such as Figure 2 As shown, the cluster finds that data block 1 of data Data is damaged.

[0072] (2) Confirm the performance data of each node Host1-Host5, including CPU usage, memory usage, network bandwidth consumption, read and write IO data volume, and other information.

[0073] (3) Figure 3 As shown in the figure, the latest N cycles of performance data of each node are selected as the input of the LSTM model, including CPU usage, memory usage, network bandwidth consumption, read and write IO quantity, etc.

[0074] (4) The LSTM model predicts the performance data and outputs the time required for each node to perform data repair calculations. The host node with the shortest time is selected as the calculation node and data recovery calculations are performed. The calculation results can be expressed as:

[0075] Time=[Host1:t1,Host2:t2,Host3:t3,Host4:t4,Host5:t5]

[0076] Select the Host corresponding to Min(Time) as the computing node, such as Figure 4 As shown, the selected Host

[0077] Host* in the figure. This ensures that the selected computing node is the optimal computing node, thereby ensuring the shortest data recovery time, improving data recovery efficiency, and ensuring the normal operation of cluster services.

[0078] (5) After the computing node completes data recovery, the actual data recovery time is collected and transmitted to the offline training model. The actual time is compared with the predicted time to ensure the accuracy of the predicted time and improve the reliability of computing node selection.

[0079] In the data repair calculation, the present invention combines the performance information of each node and the trained LSTM model to predict the data recovery calculation time of each node, and selects the node with the shortest time as the calculation node. Compared with the traditional sequential selection, which cannot guarantee the selection of the optimal calculation node, the present invention can guarantee that the calculation node is the optimal node when performing data repair calculation based on the LSTM model, thereby ensuring the shortest data recovery time. After the actual repair is completed, the present invention will collect the actual repair time and add it to the offline training model, and compare the predicted results with the actual results in real time. When the performance is reduced due to reasons such as aging of the node's own hardware and thus affecting the actual recovery time, the actual results are compared with the predicted results. When it is greater than the threshold, the model will be retrained and optimized, thereby ensuring that the predicted time and the actual recovery time are within the expected threshold (in one embodiment, the threshold is set to ±0.2s, so as to ensure the accuracy of the model prediction). Real-time learning is achieved to ensure that the optimal calculation node is selected during the data repair process.

[0080] Based on the above embodiments, this embodiment uses a Haiguang server as a storage server, and its specific configuration is shown in Table 1:

[0081] Table 1 Server configuration

[0082]

[0083] This embodiment uses the traditional solution to construct data silent check errors and tests the single data damage repair time of the traditional solution. Under different time and resource usage conditions, three groups of repair data are tested, which are 0.77s, 0.875s, and 0.86s, and the average recovery time of the three groups is 0.835s. The method of the present invention is used to construct data silent check errors and test the single data damage repair time. Similarly, under different time and resource usage conditions, three groups of repair data are tested, which are 0.47s, 0.53s, and 0.57s, and the average recovery time of the three groups is 0.52s.

[0084] In summary, in this experimental comparison, the method of the present invention shortens the data recovery time by 0.315s compared with the traditional solution, and improves the efficiency by about 37%, effectively improving the data repair efficiency, shortening the time used for data recovery, and further ensuring the health of the cluster.

[0085] The present invention proposes an LSTM-based erasure code EC data recovery method, which uses a LSTM+fully connected layer model architecture to learn the cluster recovery time. When the cluster is recovered, the model is used to predict the recovery time of each node and the node with the shortest recovery time is selected as the computing node to prevent the situation where the computing node load is too large and the recovery time is too long, thereby optimizing the data recovery performance. The present invention also proposes a continuous learning mechanism. When the cluster is recovered, the node automatically sends the collected training data and the recovery time to the training server. The model continues to perform offline training based on the newly added data, thereby increasing the data sample, optimizing the model prediction performance, and accurately selecting the computing node to shorten the data recovery time.

[0086] The embodiment of the present invention further provides an erasure code data recovery device; the specific device may include:

[0087] The model building module is used to build an LSTM model using the OSD node performance data and Ceph cluster performance data of the N cycles before data recovery as input and the data recovery time as output;

[0088] The training set construction module is used to collect multiple sets of OSD node performance data and Ceph cluster performance data for the first N cycles of data recovery, perform data preprocessing on them, and use the corresponding real data recovery time as a label to construct a training set;

[0089] A training module, used for training the LSTM model using the training set until the error function converges;

[0090] A prediction module is used to deploy the trained LSTM model online in the cluster nodes. When the cluster triggers data recovery, the trained LSTM model is used to predict the predicted data recovery time of each node.

[0091] The data recovery module is used to select the node corresponding to the minimum predicted data recovery time to perform data recovery calculation.

[0092] The erasure code data recovery device of this embodiment is used to implement the aforementioned erasure code data recovery method. Therefore, the specific implementation method of the erasure code data recovery device can be seen in the embodiment part of the aforementioned erasure code data recovery method. For example, the model construction module, the training set construction module, the training module, the prediction module, and the data recovery module are respectively used to implement steps S101, S102, S103, S104, and S105 in the aforementioned erasure code data recovery method. Therefore, its specific implementation method can refer to the description of the corresponding various partial embodiments, which will not be repeated here.

[0093] A specific embodiment of the present invention further provides an erasure code data recovery device, comprising: a memory for storing a computer program; and a processor for implementing the steps of the above-mentioned erasure code data recovery method when executing the computer program.

[0094] A specific embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned erasure code data recovery method are implemented.

[0095] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0096] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0097] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0098] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0099] Obviously, the above embodiments are merely examples for the purpose of clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the present invention.

Claims

1. A method for erasure code data recovery, It is characterized in that include: The LSTM model is established with the OSD node performance data and Ceph cluster performance data of the N cycles before data recovery as input and the data recovery time as output; Collect multiple sets of OSD node performance data and Ceph cluster performance data for the first N cycles of data recovery, perform data preprocessing on them, and use the corresponding real data recovery time as a label to build a training set; Using the training set to train the LSTM model until the error function converges; The trained LSTM model is deployed online in the cluster nodes. When the cluster triggers data recovery, the trained LSTM model is used to predict the predicted data recovery time of each node. Select the node corresponding to the minimum predicted data recovery time for data recovery calculation.

2. The erasure code data recovery method according to claim 1, It is characterized in that The OSD node performance data includes CPU usage, memory usage, network bandwidth consumption and node read and write IO data volume, and the Ceph cluster performance data includes cluster service IOPS, cluster recovery rate, and cache data refresh rate.

3. The erasure code data recovery method according to claim 1, It is characterized in that The actual data recovery time is the difference between the data recovery start time and the recovery completion time in a data recovery scenario established by constructing a data silent error or data loss.

4. The erasure code data recovery method according to claim 1, It is characterized in that The data preprocessing comprises: Each group of collected data is cut into N cycles and normalized.

5. The erasure code data recovery method according to claim 1, It is characterized in that The step of training the LSTM model using the training set until the error function converges includes: The LSTM model is trained using the training set, and the model parameters are updated according to the error back propagation algorithm and the optimization algorithm until the root mean square error of the training is less than a preset threshold or the number of training times reaches an upper limit.

6. The erasure code data recovery method according to claim 1, It is characterized in that The trained LSTM model is deployed online in the cluster nodes. When the cluster triggers data recovery, the trained LSTM model is used to predict the predicted data recovery time of each node, including: Deploy the trained LSTM model online in the cluster nodes; When the cluster triggers data recovery, the performance data of all OSD nodes and Ceph cluster corresponding to the recovery object are collected; The performance data of the first N cycles collected is used as the model input to predict the data recovery time of each node.

7. The erasure code data recovery method according to claim 1, It is characterized in that After selecting the node corresponding to the minimum predicted data recovery time to perform data recovery calculation, the following further comprises: Collect the performance data of the first N cycles and the corresponding actual data recovery time, add them to the training set, and perform offline training on the LSTM model; If the error between the modified LSTM model after offline training and the online deployed LSTM model is greater than a preset error threshold, the modified LSTM model is used to replace the online deployed LSTM model.

8. An erasure code data recovery device, It is characterized in that include: The model building module is used to build an LSTM model using the OSD node performance data and Ceph cluster performance data of the N cycles before data recovery as input and the data recovery time as output; The training set construction module is used to collect multiple sets of OSD node performance data and Ceph cluster performance data for the first N cycles of data recovery, perform data preprocessing on them, and use the corresponding real data recovery time as a label to construct a training set; A training module, used for training the LSTM model using the training set until the error function converges; A prediction module is used to deploy the trained LSTM model online in the cluster nodes. When the cluster triggers data recovery, the trained LSTM model is used to predict the predicted data recovery time of each node; The data recovery module is used to select the node corresponding to the minimum predicted data recovery time to perform data recovery calculation.

9. An erasure code data recovery device, It is characterized in that include: Memory for storing computer programs; A processor, configured to implement the steps of an erasure code data recovery method as claimed in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, It is 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 erasure code data recovery method as claimed in any one of claims 1 to 7 are implemented.