Distributed storage all-in-one machine system data migration time estimation method, system, device and medium

By building a decision tree model, the historical migration data of the Ceph cluster is preprocessed, which solves the problem of low prediction accuracy of the Ceph cluster expansion migration time, and realizes relatively accurate migration time prediction, optimizes resource scheduling and improves the performance and availability of the storage cluster. .

CN119004399APending Publication Date: 2024-11-22CHINA TELECOM DIGITAL INTELLIGENCE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411127379.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

The existing technology cannot accurately estimate the migration time of Ceph cluster expansion, which makes it difficult to accurately estimate the migration time, unable to meet actual needs, affecting resource scheduling and business impact.

Method used

By collecting historical migration data of Ceph clusters for preprocessing, and using the decision tree model algorithm to build a data migration time prediction model to predict migration time.

Benefits of technology

It realizes relatively accurate prediction of the migration time of the storage cluster expansion, improves prediction accuracy, can adaptively adjust, optimize resource scheduling, reduce business impact, and improves the high performance and high availability of the storage cluster.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119004399A_ABST
    Figure CN119004399A_ABST
Patent Text Reader

Abstract

The invention discloses a distributed storage all-in-one machine system data migration time estimation method and system, equipment and a medium. The method comprises the steps of collecting Ceph cluster historical migration data; the collected historical migration data of the Ceph cluster are preprocessed; training and learning the preprocessed data by using a machine learning algorithm, and constructing a data migration time prediction model suitable for Ceph cluster capacity expansion migration; and predicting the migration time of the migration task by adopting the constructed data migration time prediction model. The migration time estimation method is relatively accurate and real-time, can adaptively adjust the change of the cluster environment and the data volume, and always keeps relatively accurate prediction precision.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of storage systems, and in particular to a method, system, device and medium for estimating data migration time of a distributed storage all-in-one system. Background Art

[0002] With the rapid development of cloud computing and big data technologies, Ceph-based distributed storage appliances have been widely used in data centers, cloud computing platforms, and other fields. Expansion and migration of Ceph clusters is one of the important means to ensure its high performance and high availability. However, in actual applications, the expansion and migration process of Ceph clusters often faces many challenges, such as large data volume, complex hardware configuration, and diversified migration tasks, which makes it difficult to accurately estimate the migration time. At present, the industry's estimation of Ceph expansion and migration time mainly relies on empirical estimation or simple model prediction. These methods are often low in accuracy and cannot meet actual needs. At the same time, due to the characteristics of Ceph clusters and the complexity of the environment, some traditional performance prediction methods such as linear regression and support vector machines are also difficult to apply. Therefore, how to accurately estimate the Ceph expansion and migration time to optimize resource scheduling and reduce business impact has become an urgent problem to be solved.

[0003] In addition, although existing Ceph cluster management tools and monitoring systems can monitor the status and performance of the cluster in real time, such as the number of remaining objects, they often lack the function of predicting the expansion migration time and cannot provide timely decision support for administrators. Therefore, how to relatively accurately estimate the Ceph expansion migration time has important practical value and theoretical significance. Summary of the invention

[0004] In view of the problem in the prior art that the estimation accuracy of migration time for expansion of Ceph cluster is low and cannot meet actual needs, the present invention proposes a method, system, device and medium for estimating data migration time of a distributed storage all-in-one system.

[0005] To achieve the above purpose, the technical solution provided by the present invention is:

[0006] A first aspect of the present application provides a method for estimating data migration time of a distributed storage integrated machine system, comprising the following steps:

[0007] Collect Ceph cluster historical migration data;

[0008] Preprocess the collected Ceph cluster historical migration data;

[0009] Use machine learning algorithms to train and learn preprocessed data and build a data migration time prediction model suitable for Ceph cluster expansion and migration;

[0010] The constructed data migration time prediction model is used to predict the migration time of the migration task.

[0011] To optimize the above technical solutions, the specific measures taken also include:

[0012] The Ceph cluster historical migration data includes at least one of the following: cluster size, hardware type, migration task type, and migration data volume.

[0013] Furthermore, the preprocessing of the collected historical migration data includes at least one of the following: data cleaning, feature extraction, and data conversion.

[0014] The machine learning algorithm uses preprocessed data as feature data input and Ceph cluster migration time as target variable; the preprocessed data includes at least one of the following: hardware platform type of Ceph cluster migration history data, data redundancy strategy, number of objects in the cluster before expansion, total number of osds after expansion, and number of expanded osds.

[0015] Furthermore, the hardware platform type and data redundancy strategy are converted into a format processable by a machine learning algorithm through one-hot encoding.

[0016] The machine learning algorithm adopts a decision tree model algorithm.

[0017] Furthermore, the performance of the data migration time prediction model was evaluated by calculating the mean square error and the coefficient of determination.

[0018] A second aspect of the present application provides a distributed storage integrated machine system data migration time estimation system, including:

[0019] Data collection unit, used to collect Ceph cluster historical migration data;

[0020] A data processing unit, used to pre-process the collected Ceph cluster historical migration data;

[0021] The data migration time prediction model is used to train and learn the pre-processed data using machine learning algorithms to build a data migration time prediction model suitable for Ceph cluster expansion and migration;

[0022] The migration time estimation unit is used to predict the migration time of the migration task by using the constructed data migration time prediction model.

[0023] The third aspect of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for estimating data migration time of the distributed storage integrated system as described above is implemented.

[0024] A fourth aspect of the present application provides a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the distributed storage integrated system data migration time estimation method as described above.

[0025] Compared with the prior art, the present invention has the following beneficial effects:

[0026] The present invention can learn and extract rules from historical migration data to achieve relatively accurate prediction of storage cluster expansion migration time. Compared with traditional experience-based prediction methods, the prediction accuracy of the present invention is greatly improved. At the same time, due to the characteristics of the machine learning algorithm, the present invention can continuously learn and optimize the model from new migration tasks. As the cluster environment and data volume change, the model can be adaptively adjusted to always maintain relatively accurate prediction accuracy.

[0027] The migration time estimation method of the present invention is relatively accurate and real-time, and can help administrators optimize resource scheduling, reduce business impact, and improve the high performance and high availability of storage clusters. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 : A flow chart of the method for estimating the data migration time of the distributed storage integrated system of the present invention.

[0029] Figure 2 : A structural diagram of the distributed storage integrated system data migration time estimation system of the present invention.

[0030] In the figure: 201 - data acquisition unit, 202 - data processing unit, 203 - data migration time prediction model, 204 - migration time estimation unit. DETAILED DESCRIPTION

[0031] The above contents of the present invention are further described in detail below in the form of embodiments, but this should not be understood as the scope of the above subject matter of the present invention being limited to the following embodiments, and all technologies realized based on the above contents of the present invention belong to the scope of the present invention.

[0032] In one embodiment, the present invention proposes a method for estimating data migration time of a distributed storage integrated machine system, the flow chart of which is as follows: Figure 1 As shown, the following steps are included:

[0033] Collect Ceph cluster historical migration data;

[0034] Preprocess the collected Ceph cluster historical migration data;

[0035] Use machine learning algorithms to train and learn preprocessed data and build a data migration time prediction model suitable for Ceph cluster expansion and migration;

[0036] The constructed data migration time prediction model is used to predict the migration time of the migration task.

[0037] Among them, the collected historical migration data of the Ceph cluster is preprocessed to extract the features that affect the Ceph expansion migration time, such as the number of osds, the total data migration time, the amount of migrated data, etc.

[0038] The solution of the present invention is further described in detail below in conjunction with specific embodiments:

[0039] A method for estimating data migration time of a distributed storage integrated machine system, the specific steps are as follows:

[0040] Step 1: Data collection: collect historical data when different Ceph clusters are expanded.

[0041] Historical migration data includes migration start time, migration end time, data volume (number of objects) before migration, number of OSDs before and after expansion, data redundancy strategy (copy, deletion), hardware platform type (X86, ARM), etc. In order to ensure the accuracy of subsequent machine algorithm models, in this step, as much historical data as possible when Ceph clusters are expanded in different production or test environments needs to be collected. It is recommended to collect at least 30 sets of data. This process may take a long time.

[0042] Step 2: Data processing: preprocessing the collected historical migration data.

[0043] Data preprocessing includes data cleaning, feature extraction, and data conversion. Data cleaning mainly checks for outliers, missing values, and duplicate values ​​in the data. For outliers, use the median to fill them; for missing values, try to use the mean to fill them; for duplicate values, you need to remove duplicates.

[0044] Feature extraction Here, the hardware platform type, data redundancy strategy, the number of objects in the cluster before expansion, the total number of OSDs after expansion, the number of OSDs expanded, and the total time for data migration are selected as the feature value inputs of the decision tree model.

[0045] The hardware platform type (X86, ARM) and data redundancy strategy (copy, erasure) are used as classification features, and one-hot encoding is used to convert them into a format that can be processed by the machine learning algorithm. In the specific implementation, the platform type X86 is encoded as [1,0], ARM is encoded as [0,1], the copy redundancy strategy is encoded as [1,0], and the erasure redundancy strategy is encoded as [0,1]. This processing method avoids the size relationship between features interfering with the training of the model, and can handle classification variables well.

[0046] Step 3: Decision model construction, using machine learning algorithms to train the preprocessed historical migration data.

[0047] The input data is constructed based on the Python language using the numpy module, which contains two arrays X and Y. X is the feature data, which is a two-dimensional numpy array, in which each row is a sample and each column is a feature. The data in each row is the original data processed in step 2. The original data is the hardware platform type, data redundancy strategy, number of objects in the cluster before expansion, total number of osds after expansion, and number of expanded osds of each Ceph cluster migration history data in step 1. Y is the target variable, that is, the value to be predicted (cluster migration time).

[0048] Next, use the DecisionTreeRegressor in the sklearn module to create a decision tree regression model object, use model.fit(X,Y) to fit the model to the data, and finally use model.predict(X) to predict the training data.

[0049] Step 4: Migration time prediction: automatically predict the time required for migration based on the input migration task-related feature values.

[0050] Create a new feature array new_X using the feature values ​​of the Ceph cluster to be predicted (including the hardware platform type, data redundancy strategy, number of objects in the cluster before expansion, total number of osds after expansion, and number of expanded osds), and use the trained model to make predictions. The results are stored in new_Y. Use mean_squared_error to calculate the mean square error (MSE) and r2_score to calculate the coefficient of determination (R^2). These indicators are used to evaluate the performance of the model. Output the mean square error and coefficient of determination of the model as well as the true value and predicted value.

[0051] In another embodiment, the present invention proposes a distributed storage integrated machine system data migration time estimation system, comprising:

[0052] Data collection unit, used to collect Ceph cluster historical migration data;

[0053] A data processing unit, used to pre-process the collected Ceph cluster historical migration data;

[0054] The data migration time prediction model is used to train and learn the pre-processed data using machine learning algorithms to build a data migration time prediction model suitable for Ceph cluster expansion and migration;

[0055] The migration time estimation unit is used to predict the migration time of the migration task by using the constructed data migration time prediction model.

[0056] In another embodiment, the present invention proposes an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the above-mentioned distributed storage integrated system data migration time estimation method is implemented.

[0057] In another embodiment, the present invention provides a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the above-mentioned method for estimating data migration time of a distributed storage integrated machine system.

[0058] In the embodiments disclosed in the present application, the computer storage medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. The computer storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the above. More specific examples of computer storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above.

[0059] By using the decision tree model constructed by the present invention and inputting relevant features of the Ceph cluster to be expanded and migrated, an estimated value of the expansion and migration time of the Ceph cluster can be obtained, which can help administrators optimize resource scheduling, reduce business impact, and improve the high performance and high availability of the storage cluster.

[0060] The above are only preferred embodiments of the present invention and are not intended to limit the present invention in any form. Any technician familiar with the profession, without departing from the scope of the technical solution of the present invention and based on the technical essence of the present invention, may make any simple modifications, equivalent substitutions and improvements to the above embodiments, which are still within the protection scope of the technical solution of the present invention.

Claims

1. A method for estimating data migration time in a distributed storage integrated machine system, characterized in that: The following steps are involved: Collect Ceph cluster historical migration data; Preprocess the collected Ceph cluster historical migration data; Use machine learning algorithms to train and learn preprocessed data and build a data migration time prediction model suitable for Ceph cluster expansion and migration; The constructed data migration time prediction model is used to predict the migration time of the migration task.

2. The method for estimating data migration time of a distributed storage integrated machine system according to claim 1, characterized in that: The Ceph cluster historical migration data includes at least one of the following: cluster size, hardware type, migration task type, and migration data volume.

3. The method for estimating data migration time of a distributed storage integrated machine system according to claim 1, characterized in that: The preprocessing of the collected historical migration data includes at least one of the following: data cleaning, feature extraction, and data conversion.

4. The method for estimating data migration time of a distributed storage integrated machine system according to claim 1, characterized in that: The machine learning algorithm uses preprocessed data as feature data input and Ceph cluster migration time as target variable; the preprocessed data includes at least one of the following: hardware platform type of Ceph cluster migration history data, data redundancy strategy, number of objects in the cluster before expansion, total number of osds after expansion, and number of expanded osds.

5. The method for estimating data migration time of a distributed storage integrated machine system according to claim 4, characterized in that: The hardware platform type and data redundancy strategy are converted into a format that can be processed by the machine learning algorithm through one-hot encoding.

6. The method for estimating data migration time of a distributed storage integrated machine system according to claim 1, characterized in that: The machine learning algorithm adopts a decision tree model algorithm.

7. The method for estimating data migration time of a distributed storage integrated machine system according to claim 1, characterized in that: The performance of the data migration time prediction model was evaluated by calculating the mean square error and the coefficient of determination.

8. A distributed storage integrated machine system data migration time estimation system, characterized in that: include: Data collection unit, used to collect Ceph cluster historical migration data; A data processing unit, used to pre-process the collected Ceph cluster historical migration data; The data migration time prediction model is used to train and learn the pre-processed data using machine learning algorithms to build a data migration time prediction model suitable for Ceph cluster expansion and migration; The migration time estimation unit is used to predict the migration time of the migration task by using the constructed data migration time prediction model.

9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for estimating data migration time of a distributed storage integrated machine system as described in any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the method for estimating data migration time of a distributed storage integrated machine system according to any one of claims 1 to 7.