Data migration method and device, electronic equipment and storage medium
By analyzing the data request characteristics of cloud native applications and storage system performance data, the data is automatically migrated to the matching target storage system, which solves the problem that data migration of cloud native applications cannot be adjusted intelligently, improves resource utilization and reduces costs. cost.
Patent Information
- Application Number
- CN202410681489.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-10
AI Technical Summary
The data migration method of cloud native applications cannot be automatically and intelligently adjusted according to real-time needs, resulting in high labor and time costs, and it cannot effectively utilize the complementary advantages of multiple types of storage systems, resulting in resource waste or loss.
By obtaining the data request characteristics of cloud native applications and the performance data of multiple candidate storage systems, use the preset model to conduct demand analysis, determine the matching target storage system, and automatically migrate data to the system to dynamically evaluate the storage system to match the demand. .
It reduces the labor and time costs required for data migration, effectively utilizes the complementary advantages of multiple types of storage systems, and reduces resource waste.
Smart Images

Figure CN118626007A
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data migration method, device, electronic device and storage medium. Background Art
[0002] Cloud-native technology is a software development and deployment model based on cloud computing. It uses container technology to package applications and their dependencies into independent, portable containers, providing isolation and consistency, so that applications can run stably in different environments. These applications can be called cloud-native applications.
[0003] Usually, data can only be stored temporarily inside a container. After the external storage is mounted to the container file system through the storage system, the application in the container can reference the external data and persist the data it produces in the storage system.
[0004] It should be noted that different cloud-native applications have different requirements for the read and write performance of storage systems, and their data access patterns and read and write behaviors may change over time. There are differences in read and write performance between different types of storage systems. Therefore, it is necessary to continuously adjust the distribution of cloud-native application data between different types of storage systems to ensure the performance and resource utilization of cloud-native applications and avoid a mismatch between storage performance and actual needs.
[0005] In the prior art, data migration of cloud native applications is usually based on static planning and offline execution, for example, using backup and restore, copy and paste, mount and unmount, etc. to migrate data between different types of storage systems. Storage systems include block storage systems, file storage systems, and object storage systems, which allow cloud native applications to access them directly without having to consider the details of the underlying infrastructure, and can achieve migration of cloud native applications between different storage systems without changing the code.
[0006] However, these data migration methods cannot be automatically and intelligently adjusted according to the real-time needs of cloud-native applications. They require manual prediction and evaluation of the performance differences and cost-benefit between different storage systems, which may incur a lot of manpower and time costs. At the same time, they may also cause waste or loss of resources due to the inability to effectively utilize the complementary advantages of multiple types of storage systems. Summary of the invention
[0007] In order to solve the above technical problems, the present application shows a data migration method, device, electronic device and storage medium, so as to at least solve the problem that the data migration method of cloud native applications in the related technology cannot be adjusted automatically and intelligently according to the real-time needs of cloud native applications, which may bring a lot of manpower and time costs. At the same time, it is impossible to effectively utilize the complementary advantages between multiple types of storage systems, resulting in resource waste or loss. The technical solution of the present disclosure is as follows:
[0008] In a first aspect, the present application provides a data migration method, the method comprising:
[0009] Obtain data request characteristics of cloud-native applications and performance data of multiple candidate storage systems;
[0010] Based on the data request characteristics, a preset model is used to perform demand analysis on the cloud native application to obtain the read and write performance requirements of the cloud native application;
[0011] Determine a candidate storage system whose performance data matches the read / write performance requirement as a target storage system;
[0012] Migrate the data of the cloud-native application to the target storage system.
[0013] Optionally, based on the data request characteristics, using a preset model to perform demand analysis on the cloud native application to obtain the read and write performance requirements of the cloud native application includes:
[0014] The data request features are input into a demand analysis decision tree model, and multi-layer decision classification is performed to determine the read and write performance requirements of the cloud native application.
[0015] Optionally, inputting the data request feature into a demand analysis decision tree model to perform multi-layer decision classification to determine the read and write performance requirements of the cloud native application includes:
[0016] The first-layer node of the demand analysis decision tree model is used as the target node, and the data request feature is classified according to the judgment condition corresponding to the target node to obtain a judgment result;
[0017] Determine a branch node corresponding to the judgment result from the nodes in the next layer of the target node as a new target node;
[0018] Return to the step of making decision classification on the data request features according to the judgment condition corresponding to the target node, until the target node is the last leaf node of the demand analysis decision tree model, and then determine the read and write performance requirements of the cloud native application according to the read and write performance requirement type corresponding to the last leaf node.
[0019] Optionally, the data request characteristics include data size, data access mode, read-write ratio and request frequency;
[0020] The demand analysis decision tree model includes five layers of nodes, wherein the judgment condition corresponding to the first layer nodes is whether the data size is greater than the preset data volume, the judgment condition corresponding to the second layer nodes is whether the data access method is sequential reading and writing, the judgment condition corresponding to the third layer nodes is whether the read-write ratio is greater than the preset ratio, the judgment condition corresponding to the fourth layer nodes is whether the request frequency is greater than the preset frequency, and the fifth layer nodes correspond to the read-write performance requirement type of the cloud native application.
[0021] Optionally, determining a candidate storage system whose performance data matches the read / write performance requirement as a target storage system includes:
[0022] Determining a storage system type that matches the cloud native application according to the read and write performance requirements;
[0023] Based on the storage system type and the performance data, a target storage system is determined from the candidate storage systems.
[0024] Optionally, determining a candidate storage system whose performance data matches the read / write performance requirement as a target storage system includes:
[0025] Predicting the amount of data required by the cloud native application within a preset time period;
[0026] Determine a candidate storage system whose performance data matches the read / write performance requirement as a reference storage system;
[0027] The reference storage system whose storage capacity satisfies the required data volume is determined as the target storage system.
[0028] Optionally, after migrating the data of the cloud native application to the target storage system, the method further includes:
[0029] Obtaining performance comparison information of the cloud native application; the performance comparison information is used to indicate a performance change of the cloud native application after data migration compared to before data migration;
[0030] Based on the performance comparison information, adjusting the model parameters and / or model structure of the preset model to obtain a new preset model;
[0031] After obtaining the new data request characteristics of the cloud native application, based on the new data request characteristics, the new preset model is used to perform demand analysis on the cloud native application to obtain new read and write performance requirements of the cloud native application;
[0032] A candidate storage system whose performance data matches the new read / write performance requirement is determined as a new target storage system, and the data of the cloud native application is migrated to the new target storage system.
[0033] Optionally, the data request characteristics include data size, data access mode, read-write ratio and request frequency;
[0034] The performance data includes throughput, latency, and read and write times per second.
[0035] In a second aspect, an embodiment of the present invention provides a data migration device, including:
[0036] The acquisition module is used to obtain the data request characteristics of cloud-native applications and the performance data of multiple candidate storage systems;
[0037] An analysis module, configured to perform demand analysis on the cloud native application based on the data request characteristics using a preset model to obtain the read and write performance requirements of the cloud native application;
[0038] A determination module, used to determine a candidate storage system whose performance data matches the read / write performance requirement as a target storage system;
[0039] A migration module is used to migrate the data of the cloud native application to the target storage system.
[0040] In a third aspect, an embodiment of the present invention provides an electronic device, including:
[0041] processor;
[0042] a memory for storing instructions executable by the processor;
[0043] The processor is configured to execute the instructions to implement any of the data migration methods described above.
[0044] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium. When instructions in the computer-readable storage medium are executed by a processor of a data migration electronic device, the data migration electronic device can perform any of the data migration methods described above.
[0045] In a fifth aspect, an embodiment of the present invention provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the data migration method as described in any one of the above items.
[0046] Compared with the prior art, this application has the following advantages:
[0047] This plan includes the following steps:
[0048] Obtain the data request characteristics of cloud-native applications and the performance data of multiple candidate storage systems; based on the data request characteristics, use the preset model to perform demand analysis on cloud-native applications to obtain the read and write performance requirements of cloud-native applications; determine the candidate storage system whose performance data matches the read and write performance requirements as the target storage system; migrate the data of cloud-native applications to the target storage system.
[0049] In this way, by using the preset model to analyze the data request characteristics of cloud-native applications, the read and write performance requirements of cloud-native applications can be accurately identified. Then, the performance data of candidate storage systems can be matched with the read and write performance requirements of cloud-native applications. This can realize dynamic evaluation of candidate storage systems, determine the target storage system that can better match the needs of cloud-native applications, and automatically migrate the data of cloud-native applications to the target storage system, thereby reducing the manpower and time costs required for data migration, and effectively utilizing the complementary advantages of various types of storage systems to reduce resource waste. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 It is a flowchart of the steps of a data migration method of the present application;
[0051] Figure 2 It is a structural diagram of a decision tree of the present application;
[0052] Figure 3 It is a logical schematic diagram of a data migration system of the present application;
[0053] Figure 4 It is a structural block diagram of a data migration device of the present application;
[0054] Figure 5 is a schematic diagram of an electronic device of the present application;
[0055] Figure 6 It is a block diagram of a device for data migration of the present application. DETAILED DESCRIPTION
[0056] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0057] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0058] Reference Figure 1 , shows a flowchart of a data migration method of the present application, which may specifically include the following steps:
[0059] In step S11, data request characteristics of cloud native applications and performance data of multiple candidate storage systems are obtained.
[0060] Storage systems include block storage systems, file storage systems, and object storage systems. They allow cloud-native applications to access them directly without having to consider the details of the underlying infrastructure. In this way, the data of cloud-native applications can be migrated between different storage systems without changing the code.
[0061] Among them, different cloud-native applications have different requirements for the read and write performance of the storage system. For example, big data analysis applications require high-throughput batch reading and writing, artificial intelligence applications require low-latency random reading and writing, and video streaming applications require high-bandwidth sequential reading and writing.
[0062] Moreover, in actual operation, the data access mode and read / write behavior of cloud-native applications may change over time. For example, the data analysis stage may change from batch reading to random query, and the number of users and viewing habits of video streaming may fluctuate with seasons or events. It is understandable that if the number of users is large or in the peak period of read / write behavior, in order to provide users with stable services, cloud-native applications have higher requirements for throughput and bandwidth. Conversely, if the number of users is small or in the trough period of read / write behavior, cloud-native applications have lower requirements for throughput and bandwidth. Therefore, fluctuations in the number of users and viewing habits also mean different requirements for the read / write performance of the storage system by cloud-native applications.
[0063] However, there are differences in read and write performance between different types of storage systems. For example, block storage systems provide the lowest level of byte addressing capabilities, which are suitable for low latency and high IOPS (Input / Output Operations Per Second) scenarios; file storage systems provide directory and file abstraction based on the file system, which are suitable for shared access and metadata management scenarios; object storage systems provide key-value pair abstraction based on the HTTP (Hypertext Transfer Protocol) protocol, which are suitable for scenarios with massive data and distributed access, and so on.
[0064] Based on this, it is necessary to continuously adjust the distribution of cloud-native application data between different types of storage systems to ensure the performance and resource utilization of cloud-native applications and avoid a mismatch between storage performance and actual needs.
[0065] However, in related technologies, data migration methods for cloud-native applications are usually based on static planning and offline execution. These data migration methods cannot be automatically and intelligently adjusted according to the real-time needs of cloud-native applications, and require manual prediction and evaluation of performance differences and cost-benefit between different storage systems.
[0066] Through the data migration method provided in this application, the data request characteristics of cloud native applications can be analyzed using a preset model to identify the read and write performance requirements of cloud native applications, and then the performance data of candidate storage systems can be matched with the read and write performance requirements of cloud native applications, and the target storage system that can better match the needs of cloud native applications can be determined, and the data of cloud native applications can be automatically migrated to the target storage system, thereby reducing the manpower and time costs required for data migration, and effectively utilizing the complementary advantages of various types of storage systems to reduce resource waste.
[0067] Specifically, the present application can be applied to servers, local servers or other servers in the network, to obtain data request characteristics of cloud native applications and performance data of multiple candidate storage systems and perform subsequent data request characteristic analysis steps. After determining the target storage system whose performance data matches the read and write performance requirements, the data of the cloud native application is automatically migrated to the target storage system to reduce the manpower and time costs required for data migration.
[0068] The above-mentioned server can be a server cluster or distributed system composed of multiple physical servers, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), as well as big data and artificial intelligence platforms.
[0069] Among them, cloud technology refers to a hosting technology that unifies hardware, software, network and other resources in a wide area network or local area network to realize data computing, storage, processing and sharing. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model. It can form a resource pool, which is used on demand and flexible and convenient. Cloud computing technology will become an important support. The background services of the technical network system require a large amount of computing and storage resources, such as video websites, picture websites and more portal websites. With the high development and application of the Internet industry, in the future, each item may have its own identification mark, and all need to be transmitted to the background system for logical processing. Data of different levels will be processed separately. All kinds of industry data require strong system backing support, which can only be achieved through cloud computing.
[0070] In this application, it is first necessary to obtain the data request characteristics of the cloud native application. The data request characteristics can reflect the characteristics exhibited by the cloud native application in the data request process, such as the data size, data access method, read-write ratio and request frequency each time the cloud native application requests data. This application does not limit this.
[0071] At the same time, it is also necessary to obtain the performance data of candidate storage systems. It is understandable that the data of cloud-native applications can be stored in many different types of storage systems, including block storage systems, file storage systems, and object storage systems, and different candidate storage systems have different performance.
[0072] Among them, any optional storage system can be used as a candidate storage system, and the performance data can reflect the system performance of each candidate storage system, including but not limited to: throughput, latency, and read and write times per second.
[0073] In this way, after obtaining the data request characteristics of the cloud-native application and the performance data of multiple candidate storage systems, the most suitable candidate storage system can be selected for the cloud-native application based on the characteristics of the cloud-native application and the characteristics of the candidate storage systems to achieve data migration of the cloud-native application.
[0074] In addition, we can introduce richer data request features that can represent the performance requirements of cloud-native applications and more types of candidate storage systems to continuously optimize and improve the rationality and diversity of the selection of candidate storage systems.
[0075] In step S12, based on the data request characteristics, a preset model is used to perform demand analysis on the cloud native application to obtain the read and write performance requirements of the cloud native application.
[0076] In this step, the data request characteristics can be input into the preset model, and the preset model will perform demand analysis on the cloud native application based on the data request characteristics. That is, according to the characteristics exhibited by the cloud native application during the data request process, the read and write performance requirements of the cloud native application for the storage system are analyzed.
[0077] It can be understood that the read and write performance requirements of cloud-native applications correspond to the performance data of candidate storage systems. Specifically, if the performance data of candidate storage systems include throughput, latency, and read and write times per second, then the read and write performance requirements of cloud-native applications are the restrictions on the throughput, latency, and read and write times per second of the candidate storage systems. For example, the read and write performance requirements of cloud-native applications may be high throughput, high latency, and high read and write times per second.
[0078] In this way, according to the read and write performance requirements of cloud-native applications, the performance data of candidate storage systems can be matched, and the most suitable candidate storage system can be selected for the cloud-native application to realize data migration of cloud-native applications.
[0079] For example, in this application, the read and write performance requirements of cloud native applications may include but are not limited to the following types:
[0080] ① High throughput, high latency, and high read / write times per second: This type of cloud-native application has read / write performance requirements and is suitable for object storage systems, which usually store unstructured data such as pictures and videos.
[0081] ② High throughput, low latency, and low read / write times per second: This type of cloud-native application has high read / write performance requirements and is suitable for file storage systems, which usually store semi-structured data such as documents and tables.
[0082] ③Low throughput, low latency, and high read and write times per second: This type of cloud-native application has read and write performance requirements and is suitable for block storage systems. Structured data, such as databases and logs, are usually stored in block storage systems.
[0083] In the present application, the preset model can be any machine learning algorithm, such as the K-nearest neighbor algorithm, the decision tree algorithm, and the support vector machine algorithm, etc. In addition, other more complex algorithms, such as deep learning algorithms, or algorithm integration methods can be used to train the preset model to improve the learning and adaptation capabilities of the preset model for complex application scenarios, thereby improving the accuracy and generalization capabilities of the machine learning algorithm. This application does not limit this.
[0084] In one implementation, based on data request characteristics, a preset model is used to perform demand analysis on cloud native applications to obtain the read and write performance requirements of cloud native applications, including:
[0085] The data request characteristics are input into the demand analysis decision tree model to perform multi-layer decision classification and determine the read and write performance requirements of cloud native applications.
[0086] That is to say, the preset model can be trained based on a multi-layer decision tree algorithm, where the decision tree algorithm is a classification and regression method based on a tree structure, which can divide the input data request features into different categories according to a series of rules or conditions, corresponding to different read and write performance requirements.
[0087] In this way, after the data request features are input into the demand analysis decision tree model, the demand analysis decision tree model can perform multi-layer decision classification on the data request features based on its own multi-layer tree structure, and determine the read and write performance requirements of the cloud native application based on the classification results. Then, based on the read and write performance requirements of the cloud native application, the most suitable candidate storage system is selected for the cloud native application to realize data migration of the cloud native application.
[0088] In one implementation, data request features are input into a demand analysis decision tree model to perform multi-layer decision classification to determine the read and write performance requirements of cloud native applications, including:
[0089] The first-layer nodes of the demand analysis decision tree model are used as target nodes, and the data request features are classified according to the judgment conditions corresponding to the target nodes to obtain the judgment results;
[0090] From the nodes in the next layer of the target node, determine the branch node corresponding to the judgment result as the new target node;
[0091] Return to the step of making decision classification on the data request features according to the judgment conditions corresponding to the target node, until the target node is the last leaf node of the demand analysis decision tree model, and then determine the read and write performance requirements of the cloud native application according to the read and write performance requirement types corresponding to the last leaf nodes.
[0092] Specifically, the demand analysis decision tree model is a multi-layer decision tree model built based on the data request characteristics of cloud-native applications. It includes multiple nodes, each of which corresponds to a data request characteristic and a corresponding judgment condition. Each branch of the node represents the judgment result of the data request characteristic corresponding to the node. If the data request characteristic of the cloud-native application meets the judgment result corresponding to the branch, a decision is made based on the branch node corresponding to the branch. Each leaf node in the last layer represents the category corresponding to the data request characteristic of the cloud-native application, that is, the category of the read and write performance requirements of the cloud-native application.
[0093] In this way, after the data request features are input into the demand analysis decision tree model, starting from the first layer of nodes, the data request features are judged in turn, and the corresponding branches are determined based on the judgment results, and then the next target node is determined, and the judgment continues until the last layer of leaf nodes of the demand analysis decision tree model is reached, so that the read and write performance requirements of the cloud native application can be determined.
[0094] In one implementation, data request characteristics include data size, data access method, read-write ratio and request frequency; correspondingly, the demand analysis decision tree model includes five layers of nodes, wherein the judgment condition corresponding to the first layer node is whether the data size is greater than the preset data volume, the judgment condition corresponding to the second layer node is whether the data access method is sequential reading and writing, the judgment condition corresponding to the third layer node is whether the read-write ratio is greater than the preset ratio, the judgment condition corresponding to the fourth layer node is whether the request frequency is greater than the preset frequency, and the fifth layer node corresponds to the read and write performance requirements of cloud native applications.
[0095] That is to say, the first-layer nodes represent the data size. If the data size of the cloud-native application is larger than the preset data volume, the corresponding target node is one of the branch nodes of the next layer. Otherwise, the corresponding target node is another branch node of the next layer; and so on. The fifth-layer leaf nodes are the read and write performance requirement types of the cloud-native application. The read and write performance requirement types may include multiple types, and each read and write performance requirement type corresponds to different read and write performance requirements of the cloud-native application.
[0096] For example, Figure 2As shown, it is a structural schematic diagram of a demand analysis decision tree model provided by the present application, wherein the first-layer nodes represent the data size. If the data size of the cloud native application is greater than 1MB, the corresponding target node is the left branch node, otherwise, the corresponding target node is the right branch node; the second-layer nodes are the data access method. If the data access method of the cloud native application is sequential read and write, the corresponding target node is the right branch node, otherwise, the corresponding target node is the left branch node; the third-layer nodes are the read-write ratio. If the read-write ratio of the cloud native application is less than 0.8, the corresponding target node is the left branch node, otherwise, the corresponding target node is the right branch node; the fourth-layer nodes are the request frequency. If the request frequency of the cloud native application is less than 1000 times / second, the corresponding target node is the right branch node, otherwise, the corresponding target node is the left branch node; the last-layer leaf nodes are the read-write performance requirement types of the cloud native application, which are A, B, and C. A corresponds to high throughput, high latency, and high read and write times per second, B corresponds to high throughput, low latency, and low read and write times per second, and C corresponds to low throughput, low latency, and high read and write times per second.
[0097] In step S13, a candidate storage system whose performance data matches the read / write performance requirement is determined as a target storage system.
[0098] In this step, after obtaining the read and write performance requirements of the cloud-native application, you can determine the target storage system that matches the read and write performance requirements of the cloud-native application from the candidate storage systems based on the performance data of the candidate storage systems. The target storage system is the storage system to which the data of the cloud-native application will be migrated.
[0099] From the above, we can see that the read and write performance requirements of cloud-native applications correspond to the performance data of candidate storage systems. Therefore, the determined target storage system can meet the read and write performance requirements of cloud-native applications, realize dynamic evaluation of candidate storage systems, effectively utilize the complementary advantages of various types of storage systems, and reduce resource waste.
[0100] In one implementation, determining a candidate storage system whose performance data matches the read / write performance requirement as a target storage system includes:
[0101] Determine the storage system type that matches the cloud-native application based on the read and write performance requirements; determine the target storage system from the candidate storage systems based on the storage system type and performance data.
[0102] As can be seen from the foregoing, the candidate storage systems may include different types of storage systems such as a block storage system, a file storage system, and an object storage system. Different types of storage systems have different performances.
[0103] Then, in this step, you can first determine the type of storage system that matches the cloud-native application based on the read and write performance requirements, and then determine the target storage system whose performance data matches the read and write performance requirements from the candidate storage systems of this type. This can reduce the amount of computation required for the matching process and improve the efficiency of storage system selection and data migration.
[0104] In one implementation, determining a candidate storage system whose performance data matches the read / write performance requirement as a target storage system includes:
[0105] Predict the amount of data required by cloud-native applications within a preset time period; determine candidate storage systems whose performance data matches the read and write performance requirements as reference storage systems; determine reference storage systems whose storage capacity meets the required data volume as target storage systems.
[0106] Specifically, before determining the target storage system, the amount of data required by the cloud native application within a preset time in the future can be predicted. For example, it can be judged based on the current request frequency and data size of the cloud native application. For example, if the current request frequency of the cloud native application is 10 times per second, and each request is about 1MB of data, then the amount of data required in the next minute is 600MB; it can also be judged based on the application nature of the cloud native application. For example, if the cloud native application is a database application, then the amount of data required by the cloud native application within the preset time is the planned capacity of the database; in addition, the amount of data required by some cloud native applications may be related to time. For example, if the cloud native application is a streaming media application, then the amount of data required by the cloud native application during the evening peak period will be larger than the amount of data required during working hours, etc. After determining the amount of data required, the target storage system can be determined from the candidate storage systems in combination with the amount of data required and the read and write performance requirements.
[0107] That is to say, in the process of determining the target storage system, we should not only consider the current performance requirements of cloud-native applications, but also the possible data and storage capacity requirements of cloud-native applications within a preset period of time in the future, make an overall plan, improve the rationality of the target storage system selection, and avoid the selected target storage system being saturated too quickly, resulting in the need for data migration again.
[0108] In step S14, the data of the cloud-native application is migrated to the target storage system.
[0109] In this step, after determining the target storage system, the data of the cloud-native application can be migrated to the target storage system to realize automatic data migration of the cloud-native application. During the migration process, the selection of the target storage system is also automatically realized, which can reduce the manpower and time costs required for data migration, and effectively utilize the complementary advantages of various types of storage systems to reduce resource waste.
[0110] In one implementation, after migrating the data of the cloud native application to the target storage system, the following steps are further included:
[0111] Obtain performance comparison information of cloud native applications; the performance comparison information is used to indicate the performance change of cloud native applications after data migration compared with before data migration;
[0112] Based on the performance comparison information, adjust the model parameters and / or model structure of the preset model to obtain a new preset model;
[0113] After obtaining the new data request features of the cloud-native application, the new preset model is used to perform demand analysis on the cloud-native application based on the new data request features to obtain the new read and write performance requirements of the cloud-native application.
[0114] Identify candidate storage systems whose performance data matches the new read and write performance requirements as new target storage systems, and migrate the data of cloud-native applications to the new target storage systems.
[0115] That is to say, the performance of cloud native applications can be monitored, and after the data of cloud native applications is migrated to the target storage system, the performance comparison information of cloud native applications before and after data migration can be obtained. The performance comparison information is used to indicate the performance change of cloud native applications after data migration compared with before data migration, and may include changes in one or more performances. For example, after data migration, the throughput of cloud native applications changes from A to A', the latency changes from B to B', and the number of reads and writes per second changes from C to C'. Then the performance comparison information may include throughput change A'-A, latency change B-B', read and write number change C'-C, and so on.
[0116] Furthermore, based on the performance comparison information, the model parameters and / or model structure of the preset model can be iteratively adjusted to obtain a new preset model. For example, if the preset model is a demand analysis decision tree model, then, based on the performance comparison information, the hierarchical relationship of the nodes corresponding to each judgment condition can be adjusted. For example, if the original judgment condition corresponding to the first-layer node is whether the data size is greater than the preset data amount, and the judgment condition corresponding to the second-layer node is whether the data access method is sequential reading and writing, then, after adjustment, the judgment condition corresponding to the first-layer node can be whether the data access method is sequential reading and writing, and the judgment condition corresponding to the second-layer node can be whether the data size is greater than the preset data amount, and so on; or, certain parameters in the judgment condition can also be adjusted, for example, the preset data amount in the judgment condition of whether the data size is greater than the preset data amount can be adjusted from 1MB to 2MB, and so on.
[0117] Through adjustment, the new preset model can match the read and write performance requirements obtained through demand analysis of cloud native applications with the actual situation of cloud native applications, so that the demand analysis effect of the preset model can be continuously optimized. In the next data migration process, after obtaining the new data request characteristics of cloud native applications, better demand analysis results can be obtained based on the new data request characteristics of cloud native applications, which is conducive to improving the efficiency of data migration.
[0118] like Figure 3 Shown is a logical schematic diagram of a data migration system of the present application.
[0119] Among them, a decision tree model is used to analyze the data request characteristics of cloud native applications to identify the read and write performance requirements of cloud native applications. Then, the storage system selector selects the target storage system that matches the read and write performance requirements of cloud native applications based on the performance data of the candidate storage systems. Then, the data of the cloud native application is dynamically migrated to the target storage system. Subsequently, the decision tree model can be evaluated and optimized based on the performance comparison information of the cloud native application after data migration.
[0120] From the above, it can be seen that the technical solution provided by the embodiments of the present disclosure uses a preset model to analyze the data request characteristics of cloud-native applications, and can accurately identify the read and write performance requirements of cloud-native applications. Then, the performance data of candidate storage systems can be matched with the read and write performance requirements of cloud-native applications. This can realize dynamic evaluation of candidate storage systems, determine the target storage system that can better match the needs of cloud-native applications, and automatically migrate the data of cloud-native applications to the target storage system, thereby reducing the manpower and time costs required for data migration, and effectively utilizing the complementary advantages of various types of storage systems to reduce resource waste.
[0121] Reference Figure 4, shows a schematic diagram of the structure of a data migration device of the present application, which may specifically include:
[0122] An acquisition module 201 is used to acquire data request characteristics of cloud native applications and performance data of multiple candidate storage systems;
[0123] An analysis module 202 is used to perform demand analysis on the cloud native application based on the data request characteristics using a preset model to obtain the read and write performance requirements of the cloud native application;
[0124] A determination module 203 is used to determine a candidate storage system whose performance data matches the read / write performance requirement as a target storage system;
[0125] The migration module 204 is used to migrate the data of the cloud native application to the target storage system.
[0126] In one implementation, the analysis module 202 is used to:
[0127] The data request features are input into a demand analysis decision tree model, and multi-layer decision classification is performed to determine the read and write performance requirements of the cloud native application.
[0128] In one implementation, the analysis module 202 is used to:
[0129] The first-layer node of the demand analysis decision tree model is used as the target node, and the data request feature is classified according to the judgment condition corresponding to the target node to obtain a judgment result;
[0130] Determine a branch node corresponding to the judgment result from the nodes in the next layer of the target node as a new target node;
[0131] Return to the step of making decision classification on the data request features according to the judgment condition corresponding to the target node, until the target node is the last leaf node of the demand analysis decision tree model, and then determine the read and write performance requirements of the cloud native application according to the read and write performance requirement type corresponding to the last leaf node.
[0132] In one implementation, the data request characteristics include data size, data access mode, read-write ratio, and request frequency;
[0133] The demand analysis decision tree model includes five layers of nodes, wherein the judgment condition corresponding to the first layer nodes is whether the data size is greater than the preset data volume, the judgment condition corresponding to the second layer nodes is whether the data access method is sequential reading and writing, the judgment condition corresponding to the third layer nodes is whether the read-write ratio is greater than the preset ratio, the judgment condition corresponding to the fourth layer nodes is whether the request frequency is greater than the preset frequency, and the fifth layer nodes correspond to the read-write performance requirement type of the cloud native application.
[0134] In one implementation, the determining module 203 is used to:
[0135] Determining a storage system type that matches the cloud native application according to the read and write performance requirements;
[0136] Based on the storage system type and the performance data, a target storage system is determined from the candidate storage systems.
[0137] In one implementation, the determining module 203 is used to:
[0138] Predicting the amount of data required by the cloud native application within a preset time period;
[0139] Determine a candidate storage system whose performance data matches the read / write performance requirement as a reference storage system;
[0140] The reference storage system whose storage capacity satisfies the required data volume is determined as the target storage system.
[0141] In one implementation, the device further includes an optimization module, which is used to:
[0142] Obtaining performance comparison information of the cloud native application; the performance comparison information is used to indicate a performance change of the cloud native application after data migration compared to before data migration;
[0143] Based on the performance comparison information, adjusting the model parameters and / or model structure of the preset model to obtain a new preset model;
[0144] After obtaining the new data request characteristics of the cloud native application, based on the new data request characteristics, the new preset model is used to perform demand analysis on the cloud native application to obtain new read and write performance requirements of the cloud native application;
[0145] A candidate storage system whose performance data matches the new read / write performance requirement is determined as a new target storage system, and the data of the cloud native application is migrated to the new target storage system.
[0146] In one implementation, the data request characteristics include data size, data access mode, read-write ratio, and request frequency;
[0147] The performance data includes throughput, latency, and read and write times per second.
[0148] From the above, it can be seen that the technical solution provided by the embodiments of the present disclosure uses a preset model to analyze the data request characteristics of cloud-native applications, and can accurately identify the read and write performance requirements of cloud-native applications. Then, the performance data of candidate storage systems can be matched with the read and write performance requirements of cloud-native applications. This can realize dynamic evaluation of candidate storage systems, determine the target storage system that can better match the needs of cloud-native applications, and automatically migrate the data of cloud-native applications to the target storage system, thereby reducing the manpower and time costs required for data migration, and effectively utilizing the complementary advantages of various types of storage systems to reduce resource waste.
[0149] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0150] Figure 5 The invention is a block diagram of an electronic device for data migration according to an exemplary embodiment, which includes a processor and a memory, wherein the memory is used to store computer programs; and the processor is used to execute the programs stored in the memory.
[0151] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0152] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0153] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory including instructions, and the above instructions can be executed by a processor of an electronic device to perform the above method. Optionally, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0154] In an exemplary embodiment, a computer program product is also provided. When the computer program product is executed on a computer, the computer implements the above-mentioned comment data migration method.
[0155] From the above, it can be seen that the technical solution provided by the embodiment of the embodiment of the present invention uses a preset model to analyze the data request characteristics of cloud native applications, and can accurately identify the read and write performance requirements of cloud native applications. Then, the performance data of the candidate storage system is matched with the read and write performance requirements of the cloud native application. This can realize dynamic evaluation of the candidate storage system, determine the target storage system that can better match the needs of the cloud native application, and automatically migrate the data of the cloud native application to the target storage system, thereby reducing the manpower and time costs required for data migration, and effectively utilizing the complementary advantages between various types of storage systems to reduce resource waste.
[0156] Figure 6 It is a block diagram of a device 800 for data migration according to an exemplary embodiment.
[0157] For example, apparatus 800 may be a mobile phone, a computer, a digital broadcast electronic device, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0158] Reference Figure 6 , the device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0159] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0160] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0161] The power supply component 807 provides power to the various components of the device 800. The power supply component 807 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.
[0162] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data to be processed. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0163] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0164] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0165] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor assembly 814 can also detect the position change of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0166] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0167] In an exemplary embodiment, the apparatus 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the methods described in the first and second aspects.
[0168] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 to complete the above method. Optionally, for example, the storage medium can be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0169] In an exemplary embodiment, a computer program product including instructions is also provided. When the computer program product is run on a computer, the computer is enabled to execute the data migration method described in any one of the above embodiments.
[0170] From the above, it can be seen that the technical solution provided by the embodiment of the embodiment of the present invention uses a preset model to analyze the data request characteristics of cloud native applications, and can accurately identify the read and write performance requirements of cloud native applications. Then, the performance data of the candidate storage system is matched with the read and write performance requirements of the cloud native application. This can realize dynamic evaluation of the candidate storage system, determine the target storage system that can better match the needs of the cloud native application, and automatically migrate the data of the cloud native application to the target storage system, thereby reducing the manpower and time costs required for data migration, and effectively utilizing the complementary advantages between various types of storage systems to reduce resource waste.
[0171] Those skilled in the art will readily appreciate other implementations of the embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The embodiments of the present invention are intended to cover any variations, uses, or adaptations of the embodiments of the present invention that follow the general principles of the embodiments of the present invention and include common knowledge or customary technical means in the art that are not disclosed in the embodiments of the present invention. The specification and embodiments are to be regarded as exemplary only, and the true scope and spirit of the embodiments of the present invention are indicated by the following claims.
[0172] It should be understood that the embodiments of the present invention are not limited to the precise structures described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the embodiments of the present invention is limited only by the appended claims.
Claims
1. A data migration method, characterized in that: include: Obtain data request characteristics of cloud-native applications and performance data of multiple candidate storage systems; Based on the data request characteristics, a preset model is used to perform demand analysis on the cloud native application to obtain the read and write performance requirements of the cloud native application; Determine a candidate storage system whose performance data matches the read / write performance requirement as a target storage system; Migrate the data of the cloud-native application to the target storage system.
2. The method according to claim 1, characterized in that: The step of performing demand analysis on the cloud native application based on the data request characteristics using a preset model to obtain the read and write performance requirements of the cloud native application includes: The data request features are input into a demand analysis decision tree model, and multi-layer decision classification is performed to determine the read and write performance requirements of the cloud native application.
3. The method according to claim 2, characterized in that The step of inputting the data request feature into a demand analysis decision tree model, performing multi-layer decision classification, and determining the read and write performance requirements of the cloud native application includes: The first-layer node of the demand analysis decision tree model is used as the target node, and the data request feature is classified according to the judgment condition corresponding to the target node to obtain a judgment result; Determine, from the nodes in the next layer of the target node, a branch node corresponding to the judgment result as a new target node; Return to the step of making decision classification on the data request features according to the judgment condition corresponding to the target node, until the target node is the last leaf node of the demand analysis decision tree model, and then determine the read and write performance requirements of the cloud native application according to the read and write performance requirement type corresponding to the last leaf node.
4. The method according to claim 3, characterized in that The data request characteristics include data size, data access mode, read-write ratio and request frequency; The demand analysis decision tree model includes five layers of nodes, wherein the judgment condition corresponding to the first layer nodes is whether the data size is greater than the preset data volume, the judgment condition corresponding to the second layer nodes is whether the data access method is sequential reading and writing, the judgment condition corresponding to the third layer nodes is whether the read-write ratio is greater than the preset ratio, the judgment condition corresponding to the fourth layer nodes is whether the request frequency is greater than the preset frequency, and the fifth layer nodes correspond to the read-write performance requirement type of the cloud native application.
5. The method according to claim 1, characterized in that The step of determining a candidate storage system whose performance data matches the read / write performance requirement as a target storage system includes: Determining a storage system type that matches the cloud native application according to the read and write performance requirements; Based on the storage system type and the performance data, a target storage system is determined from the candidate storage systems.
6. The method according to claim 1, characterized in that The step of determining a candidate storage system whose performance data matches the read / write performance requirement as a target storage system includes: Predicting the amount of data required by the cloud native application within a preset time period; Determine a candidate storage system whose performance data matches the read / write performance requirement as a reference storage system; The reference storage system whose storage capacity satisfies the required data volume is determined as the target storage system.
7. The method according to claim 1, characterized in that After migrating the data of the cloud native application to the target storage system, the method further includes: Obtaining performance comparison information of the cloud native application; the performance comparison information is used to indicate a performance change of the cloud native application after data migration compared to before data migration; Based on the performance comparison information, adjusting the model parameters and / or model structure of the preset model to obtain a new preset model; After obtaining the new data request characteristics of the cloud native application, based on the new data request characteristics, the new preset model is used to perform demand analysis on the cloud native application to obtain new read and write performance requirements of the cloud native application; A candidate storage system whose performance data matches the new read / write performance requirement is determined as a new target storage system, and the data of the cloud native application is migrated to the new target storage system.
8. The method according to claim 1, characterized in that The data request characteristics include data size, data access mode, read-write ratio and request frequency; The performance data includes throughput, latency, and read and write times per second.
9. A data migration device, characterized in that: include: The acquisition module is used to obtain the data request characteristics of cloud-native applications and the performance data of multiple candidate storage systems; An analysis module, configured to perform demand analysis on the cloud native application based on the data request characteristics using a preset model to obtain the read and write performance requirements of the cloud native application; A determination module, used to determine a candidate storage system whose performance data matches the read / write performance requirement as a target storage system; A migration module is used to migrate the data of the cloud native application to the target storage system.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the data migration method according to any one of claims 1 to 8 are implemented.
11. 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 data migration method according to any one of claims 1 to 8 are implemented.
12. A computer program product, characterized in that The program product is stored in a storage medium, and the program product is executed by at least one processor to implement the data migration method according to any one of claims 1 to 8.
Citation Information
Cited By
Elastic expansion and contraction method and device for storage space, medium and program product
CN119620959A
Data migration method and device, equipment and medium
CN119960697A
Data writing method and device based on load balancing and storage medium
CN120406824A
