Data migration method and device based on capacity balancing, equipment, medium and product

By acquiring cloud pool utilization and cold data at preset intervals in cloud computing, selecting neighboring cloud pools in ascending order of distance, and generating a target cloud pool set based on capacity conditions, the problem of high-cost and low-speed migration caused by the geographical location of cloud pools is solved, achieving more efficient data migration and resource utilization.

CN123157403APending Publication Date: 2026-11-24CHINA UNITED NETWORK COMM GRP CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510669823.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-22
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In existing technologies, cloud pools distributed in different geographical locations lead to high network transmission costs and low transmission rates during data migration.

Method used

By acquiring the utilization rate of each cloud pool at preset intervals, identifying cloud pools with unbalanced resources, determining the list of data to be migrated based on cold data, selecting neighboring cloud pools in ascending order of distance, generating a set of target neighboring cloud pools based on capacity conditions, and prioritizing the selection of target cloud pools with close geographical locations for data migration.

Benefits of technology

It effectively reduces data migration delays and costs, improves transmission efficiency, optimizes storage resource utilization, and reduces network transmission time and bandwidth consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123157403A_ABST
    Figure CN123157403A_ABST
Patent Text Reader

Abstract

This application provides a data migration method, apparatus, device, medium, and product based on capacity balancing. The method includes: acquiring the utilization rate of each cloud pool at preset intervals; if the utilization rate of any cloud pool meets a preset condition, acquiring corresponding cold data; determining a first list of data to be migrated based on the cold data; determining a list of neighboring cloud pools based on a preset distance, and sequentially selecting at least one target neighboring cloud pool from the list in ascending distance order; when the average capacity of at least one target neighboring cloud pool and the cloud pools meets a preset capacity condition, determining the migration capacity corresponding to any cloud pool and a set of target neighboring cloud pools based on the average capacity; and determining the migration task of the first data to be migrated in the first list of data to be migrated based on the migration capacity and the set of target neighboring cloud pools. This method aims to reduce network transmission costs and improve transmission speed during data migration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of cloud computing technology, and in particular to a data migration method, apparatus, device, medium and product based on capacity balancing. Background Technology

[0002] With the continuous development of cloud computing technology, wide-area distributed storage systems have gradually become the core infrastructure for enterprise data storage. This type of storage distributes data across multiple cloud pools (storage node clusters) nationwide or even globally to improve data reliability, availability, and access efficiency.

[0003] In existing technologies, data migration is typically used to balance resource usage among cloud pools, achieving capacity balancing. This involves migrating data from high-load cloud pools to less busy ones. This traditional balancing method optimizes storage distribution among cloud pools to some extent, resulting in more efficient use of storage resources across each pool.

[0004] However, since cloud pools are distributed across different geographical locations across the country, selecting a target cloud pool for migration based solely on factors such as cloud pool capacity during data migration results in high network transmission costs and low transmission rates during data migration. Summary of the Invention

[0005] This application provides a data migration method, apparatus, device, medium, and product based on capacity balancing, which reduces network transmission costs and improves transmission speed during data migration.

[0006] In a first aspect, embodiments of this application provide a data migration method based on capacity balancing, the method comprising:

[0007] The utilization rate of each cloud pool is obtained at preset intervals;

[0008] For any cloud pool, if the utilization rate of the cloud pool meets the preset conditions, then the cold data in the cloud pool is obtained, and the first list of data to be migrated corresponding to the cloud pool is determined based on the cold data.

[0009] Based on a preset distance, a list of neighboring cloud pools corresponding to any cloud pool is determined, and at least one target neighboring cloud pool is selected sequentially from the list of neighboring cloud pools in ascending order of distance. When the average capacity of at least one target neighboring cloud pool and the cloud pool meets a preset capacity condition, the migration capacity corresponding to any cloud pool and the set of target neighboring cloud pools are determined based on the average capacity. The set of target neighboring cloud pools includes one or more target neighboring cloud pools.

[0010] Based on the migration capacity and the target set of neighboring cloud pools, determine the migration task for the first data to be migrated in the first list of data to be migrated.

[0011] In one possible implementation, the method further includes:

[0012] For any cloud pool, if the utilization rate of the cloud pool does not meet the preset conditions, then according to the remote access policy, a second list of data to be migrated for any cloud pool is determined; wherein, the second list of data to be migrated includes multiple second data to be migrated, and each second data to be migrated includes at least one regional information for indicating remote access.

[0013] Based on at least one region information corresponding to each second data to be migrated, determine the target cloud pool corresponding to each second data to be migrated; wherein, one region corresponds to one target cloud pool;

[0014] Based on the target cloud pool, determine the migration task for the second set of data to be migrated.

[0015] In one possible implementation, at least one target neighboring cloud pool is selected sequentially from the list of neighboring cloud pools in ascending order of distance. When the average capacity of at least one target neighboring cloud pool and the cloud pools meets a preset capacity condition, the migration capacity corresponding to any cloud pool and the set of target neighboring cloud pools are determined based on the average capacity, including:

[0016] Obtain the first actual capacity of any cloud pool and the second actual capacity of each neighboring cloud pool in the corresponding list of neighboring cloud pools; wherein, the first actual capacity is used to indicate the current remaining available storage capacity of any cloud pool, and the second actual capacity is used to indicate the current remaining available storage capacity of each neighboring cloud pool;

[0017] Select the first neighboring cloud pool from the list of neighboring cloud pools in ascending order of distance, set i=1, and repeat the following operation:

[0018] Calculate the second actual capacity of the first i neighboring cloud pools and the first actual capacity of any corresponding cloud pool to determine the average capacity of any cloud pool and the first i neighboring cloud pools in the list of neighboring cloud pools.

[0019] If the average capacity is less than or equal to the first preset threshold capacity of each neighboring cloud pool in the first i neighboring cloud pools and the second preset threshold capacity of any cloud pool, then the first i neighboring cloud pools are taken as the target neighboring cloud pool set. The first preset threshold capacity of each neighboring cloud pool and the second preset threshold capacity of any cloud pool are used to indicate the preset capacity conditions.

[0020] If the average capacity is greater than the first preset threshold capacity of each of the i neighboring cloud pools or the second preset threshold capacity of any cloud pool, then the value of i is incremented by 1.

[0021] The migration capacity corresponding to any cloud pool is obtained by calculating the average capacity and the first actual capacity of any cloud pool.

[0022] In one possible implementation, the method further includes:

[0023] Iterate through the list of neighboring cloud pools. If the average capacity is greater than the first preset threshold capacity of each of the currently selected neighboring cloud pools and the second preset threshold of any cloud pool, then generate the corresponding alarm information.

[0024] In one possible implementation, the migration task for the first data to be migrated in the first list of data to be migrated is determined based on the migration capacity and the target neighboring cloud pool set, including:

[0025] Obtain the first occupied capacity of each data to be migrated in the first list of data to be migrated. Based on the first occupied capacity and the migration capacity, determine n data to be migrated, where n is greater than or equal to 1.

[0026] Select the m-th target neighboring cloud pool from the set of target neighboring cloud pools in ascending order of distance. For the m-th target neighboring cloud pool, select the first first data to be migrated from the n first data to be migrated in order.

[0027] If the first occupied capacity of the first data to be migrated is less than or equal to the average capacity, then the sum of the first occupied capacity of the first data to be migrated and the second actual capacity of the m-th target neighboring cloud pool is calculated to obtain the calculation result;

[0028] If the calculation result satisfies the average capacity of the m-th target neighboring cloud pool, then the migration task corresponding to the first data to be migrated is obtained.

[0029] Traverse n first data to be migrated, calculate the cumulative sum corresponding to the first occupied capacity of at least one selected first data to be migrated, and add the cumulative sum to the second actual capacity of the m-th target neighboring cloud pool to obtain the processing result;

[0030] If the processing result satisfies the average capacity corresponding to the m-th target neighboring cloud pool, then at least one first data to be migrated corresponding to the m-th target neighboring cloud pool is obtained, and the corresponding migration task is generated.

[0031] Traverse the set of neighboring cloud pools of the target to obtain the migration task of the first data to be migrated.

[0032] In one possible implementation, determining the target cloud pool corresponding to each second piece of data to be migrated, based on at least one geographic information corresponding to each second piece of data to be migrated, includes:

[0033] For any second piece of data to be migrated, based on at least one corresponding regional information, obtain the number of times each region accesses any second piece of data to be migrated, and sort the regions according to the number of times to obtain a region list;

[0034] Obtain the second occupied capacity of each second data to be migrated, select candidate regions sequentially from the region list, and determine the target cloud pool corresponding to each second data to be migrated based on the preset threshold capacity of the cloud pool corresponding to the candidate region and the second occupied capacity of the second data to be migrated.

[0035] Secondly, embodiments of this application provide a cloud management system, including multiple cloud pools, an agent center, and a scheduling center, wherein the scheduling center is used to execute the first aspect and / or various possible implementations of the first aspect;

[0036] The agent center is used to obtain migration tasks issued by the scheduling center and perform data migration between multiple cloud pools according to the migration tasks.

[0037] Thirdly, embodiments of this application provide a data migration apparatus based on capacity balancing, comprising:

[0038] The acquisition module is used to acquire the utilization rate of each cloud pool at preset intervals;

[0039] The first processing module is used to, for any cloud pool, if the utilization rate of the cloud pool meets the preset conditions, obtain the cold data in the cloud pool, and determine the first list of data to be migrated corresponding to the cloud pool based on the cold data.

[0040] The second processing module is used to determine a list of neighboring cloud pools corresponding to any cloud pool based on a preset distance, and to select at least one target neighboring cloud pool from the list of neighboring cloud pools in ascending order of distance. When the average capacity of at least one target neighboring cloud pool and the cloud pool meets a preset capacity condition, the module determines the migration capacity corresponding to any cloud pool and the set of target neighboring cloud pools based on the average capacity. The set of target neighboring cloud pools includes one or more target neighboring cloud pools.

[0041] The third processing module is used to determine the migration task of the first data to be migrated in the first list of data to be migrated based on the migration capacity and the target set of nearby cloud pools.

[0042] In one possible implementation, the second processing module is further configured to:

[0043] Obtain the first actual capacity of any cloud pool and the second actual capacity of each neighboring cloud pool in the corresponding list of neighboring cloud pools; wherein, the first actual capacity is used to indicate the current remaining available storage capacity of any cloud pool, and the second actual capacity is used to indicate the current remaining available storage capacity of each neighboring cloud pool;

[0044] Select the first neighboring cloud pool from the list of neighboring cloud pools in ascending order of distance, set i=1, and repeat the following operation:

[0045] Calculate the second actual capacity of the first i neighboring cloud pools and the first actual capacity of any corresponding cloud pool to determine the average capacity of any cloud pool and the first i neighboring cloud pools in the list of neighboring cloud pools.

[0046] If the average capacity is less than or equal to the first preset threshold capacity of each of the first i neighboring cloud pools and the second preset threshold capacity of any cloud pool, then the first i neighboring cloud pools are taken as the target neighboring cloud pool set.

[0047] If the average capacity is greater than the first preset threshold capacity of each of the i neighboring cloud pools or the second preset threshold capacity of any cloud pool, then the value of i is incremented by 1.

[0048] The migration capacity corresponding to any cloud pool is obtained by calculating the average capacity and the first actual capacity of any cloud pool.

[0049] In one possible implementation, the second processing module is further configured to:

[0050] Iterate through the list of neighboring cloud pools. If the average capacity is greater than the first preset threshold capacity of each of the currently selected neighboring cloud pools and the second preset threshold of any cloud pool, then generate the corresponding alarm information.

[0051] In one possible implementation, the third processing module is further configured to:

[0052] Obtain the first occupied capacity of each data to be migrated in the first list of data to be migrated. Based on the first occupied capacity and the migration capacity, determine n data to be migrated, where n is greater than or equal to 1.

[0053] Select the m-th target neighboring cloud pool from the set of target neighboring cloud pools in ascending order of distance. For the m-th target neighboring cloud pool, select the first first data to be migrated from the n first data to be migrated in order.

[0054] If the first occupied capacity of the first data to be migrated is less than or equal to the average capacity, then the sum of the first occupied capacity of the first data to be migrated and the second actual capacity of the m-th target neighboring cloud pool is calculated to obtain the calculation result;

[0055] If the calculation result satisfies the average capacity of the m-th target neighboring cloud pool, then the migration task corresponding to the first data to be migrated is obtained.

[0056] Iterate through n first data to be migrated, calculate the cumulative sum corresponding to the first occupied capacity of at least one selected first data to be migrated, and add the cumulative sum to the second actual capacity of the m-th target neighboring cloud pool to obtain the processing result;

[0057] If the processing result satisfies the average capacity corresponding to the m-th target neighboring cloud pool, then at least one first data to be migrated corresponding to the m-th target neighboring cloud pool is obtained, and the corresponding migration task is generated.

[0058] Traverse the set of neighboring cloud pools of the target to obtain the migration task of the first data to be migrated.

[0059] In one possible implementation, the second processing module is further configured to:

[0060] For any cloud pool, if the utilization rate of the cloud pool does not meet the preset conditions, then according to the remote access policy, a second list of data to be migrated for any cloud pool is determined; wherein, the second list of data to be migrated includes multiple second data to be migrated, and each second data to be migrated includes at least one regional information for indicating remote access.

[0061] Based on at least one region information corresponding to each second data to be migrated, determine the target cloud pool corresponding to each second data to be migrated; wherein, one region corresponds to one target cloud pool;

[0062] Based on the target cloud pool, determine the migration task for the second set of data to be migrated.

[0063] In one possible implementation, the second processing module is further configured to:

[0064] For any second piece of data to be migrated, based on at least one corresponding regional information, obtain the number of times each region accesses any second piece of data to be migrated, and sort the regions according to the number of times to obtain a region list;

[0065] Obtain the second occupied capacity of each second data to be migrated, select candidate regions sequentially from the region list, and determine the target cloud pool corresponding to each second data to be migrated based on the preset threshold capacity of the cloud pool corresponding to the candidate region and the second occupied capacity of the second data to be migrated.

[0066] Fourthly, embodiments of this application provide a data migration device based on capacity balancing, including: a memory and a processor;

[0067] The memory stores computer-executed instructions;

[0068] The processor executes computer execution instructions stored in the memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.

[0069] Fifthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect.

[0070] In a sixth aspect, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.

[0071] The data migration method, apparatus, device, and medium based on capacity balancing provided in this application generate a set of target neighboring cloud pools by comprehensively considering distance and capacity conditions, replacing the selection logic based solely on capacity factors. This ensures that the migration target meets capacity requirements while minimizing transmission overhead. Furthermore, by filtering neighboring cloud pools according to preset distances, prioritizing geographically proximate target cloud pools, it effectively reduces data migration latency and costs. Selecting neighboring cloud pools facilitates data migration between geographically proximate storage nodes, thereby reducing network transmission time and bandwidth consumption, and improving transmission efficiency. Attached Figure Description

[0072] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0073] Figure 1 A flowchart illustrating a capacity-balancing-based data migration method provided in this application embodiment. Figure 1 ;

[0074] Figure 2 A flowchart illustrating a capacity-balancing-based data migration method provided in this application embodiment. Figure 2 ;

[0075] Figure 3 A flowchart illustrating a capacity-balancing-based data migration method provided in this application embodiment. Figure 3 ;

[0076] Figure 4 A flowchart illustrating a capacity-balancing-based data migration method provided in this application embodiment. Figure 4 ;

[0077] Figure 5 This is a schematic diagram of the structure of the cloud management system provided in the embodiments of this application;

[0078] Figure 6 A flowchart illustrating a capacity-balancing-based data migration method provided in this application embodiment. Figure 5 ;

[0079] Figure 7 A schematic diagram of a data migration device based on capacity balancing provided in an embodiment of this application;

[0080] Figure 8This is a schematic diagram of the structure of a data migration device provided in an embodiment of this application.

[0081] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0082] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0083] With the continuous development of cloud computing technology, wide-area distributed storage systems have emerged as a core infrastructure for enterprise data storage. The unique feature of this storage system is its ability to distribute data across multiple cloud pools nationwide or even globally; these cloud pools are essentially clusters of storage nodes. Through this distributed storage approach, enterprise data reliability, availability, and access efficiency can be significantly improved.

[0084] From a reliability perspective, when a cloud pool encounters unexpected events such as hardware failure, natural disasters, or cyberattacks, the data is distributed across multiple cloud pools, ensuring the integrity and accessibility of enterprise data. This significantly reduces the risk of data loss. Regarding availability, users in different regions can choose cloud pools closer to them or with more stable network connections to access data, effectively reducing latency and improving user experience. Furthermore, the multi-cloud-pool storage architecture enables the system to process a large number of data access requests in parallel, further enhancing data availability.

[0085] Within the existing technological framework, data migration is widely used to achieve capacity balancing in order to balance resource usage among cloud pools. Specifically, this involves migrating data from heavily loaded cloud pools to relatively less loaded ones. This traditional balancing method optimizes the storage distribution among cloud pools to some extent. For example, one cloud pool might be facing storage space constraints due to excessive data storage, while other cloud pools have ample unused space. Through data migration, storage resources in each cloud pool can be used more rationally, avoiding waste and improving the resource utilization efficiency of the entire wide-area distributed storage system.

[0086] However, the fact that cloud pools are distributed across different geographical locations nationwide presents challenges for data migration. When migrating data, selecting a target cloud pool solely based on its capacity leads to high network transmission costs and slow transmission speeds.

[0087] To address the aforementioned issues, this application provides a capacity-balanced data migration method. By acquiring the utilization rate of each cloud pool at preset intervals, it identifies which cloud pools have unbalanced resource usage. When the utilization rate of a cloud pool meets preset conditions, it acquires cold data from that cloud pool and determines a first list of data to be migrated for that cloud pool. Based on a preset distance, it determines a list of neighboring cloud pools for each cloud pool. Then, it selects a target set of neighboring cloud pools in ascending order of distance from the determined list. Finally, based on the migration capacity and the target set of neighboring cloud pools, it determines the migration task for the first data in the first list of data to be migrated. Therefore, by generating a target set of neighboring cloud pools by comprehensively considering distance and capacity conditions, replacing the selection logic based solely on capacity, the migration target satisfies both capacity requirements and minimizes transmission overhead. Furthermore, by filtering neighboring cloud pools based on preset distance, prioritizing geographically proximate target cloud pools, it effectively reduces data migration latency and cost. Selecting neighboring cloud pools facilitates data migration between geographically proximate storage nodes, thereby reducing network transmission time and bandwidth consumption and improving transmission efficiency.

[0088] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0089] Figure 1 A flowchart illustrating a capacity-balancing-based data migration method provided in this application embodiment. Figure 1 ,like Figure 1 As shown, this method is applied to a scheduling center, and the method includes:

[0090] S101. Obtain the utilization rate of each cloud pool at preset intervals.

[0091] In this embodiment, the preset period is a pre-defined time interval, such as hourly, daily, or weekly intervals. The specific time interval depends on factors such as the characteristics of the cloud environment, business needs, and management strategies. The utilization rate of the cloud pools in each region is obtained through statistical functions provided by the scheduling center. The utilization rate of the cloud pools includes the usage of various resources, such as computing resources (Central Processing Unit (CPU), memory, etc.) and storage resources. For computing resources, the management system can statistically analyze the average CPU utilization rate and memory usage ratio in the cloud pool within a specific time period; for storage resources, it can obtain the ratio of used storage capacity to total storage capacity.

[0092] S102. For any cloud pool, if the utilization rate of the cloud pool meets the preset conditions, then obtain the cold data in the cloud pool, and determine the first list of data to be migrated corresponding to the cloud pool based on the cold data.

[0093] In this embodiment, the preset condition could be, for example, that the usage rate reaches a certain threshold (e.g., the usage rate exceeds 50%). After obtaining the usage rate of each cloud pool, it is compared with the preset condition. If the preset condition is not met, the detection continues for the next preset period; if the preset condition is met, cold data is determined in each cloud pool based on attributes such as data access frequency and recent access time. For example, data that has not been accessed for a long time (e.g., no read operations for more than 30 days) can be defined as cold data. This cold data can be filtered out by querying data access logs in the cloud pool or using specialized data analysis tools. In any cloud pool, based on the identified cold data, the coldness value of each cold data point is calculated. A higher coldness value indicates colder data, meaning that data with higher coldness should be migrated first. Based on the calculated coldness values, the corresponding cold data are arranged from largest to smallest coldness value to determine the first list of data to be migrated for that cloud pool.

[0094] Optionally, the cooling value is related to the access frequency and access time. The cooling value C is calculated as follows: In the formula, 'a' represents the weight of access frequency, and 'b' represents the weight of the most recent access time. Since this is a capacity-sensitive scenario, more attention is paid to data that hasn't been accessed in a long time, so 'a' can be set to 0.6 and 'b' to 0.4. c T is the current timestamp. l (o) represents the last access time (timestamp) of cold data o, T max This refers to the maximum last access time of the cold data within the cloud pool. The maximum last access time is T. l The maximum value in (o), F(o) is the access frequency of cold data o in the past month, F max This represents the maximum access frequency of cold data within the cloud pool over the past month. If all values ​​are 0, the default value of 1 will be used.

[0095] For example, Table 1 is a schematic table showing the last access time, access frequency, and capacity size corresponding to the multiple cold data points of the cloud pool obtained in this embodiment. As shown in Table 1:

[0096] Table 1

[0097] Cold data Last access time (days ago) Access frequency (times) Size (GB) <![CDATA[d1]]> 27 5 10 <![CDATA[d2]]> 15 10 20 <![CDATA[d3]]> 120 0 15

[0098] As can be seen from the last access time in Table 1, T max =120, F max =10, then the coldness value corresponding to cold data d1 is: 0.6×(27 / 120)+0.4×(1-5 / 10)=0.13+0.2=0.33; the coldness value corresponding to cold data d2 is: 0.6×(15 / 120)+0.4×(1-10 / 10)=0.07+0=0.07; the coldness value corresponding to cold data d3 is: 0.6×(120 / 120)+0.4×(1-0 / 10)=0.6+0.4=1. Compare the coldness values ​​corresponding to cold data d1, cold data d2, and cold data d3, and sort them in descending order to obtain the corresponding first list of data to be migrated.

[0099] S103. Based on the preset distance, determine the list of neighboring cloud pools corresponding to any cloud pool, and select at least one target neighboring cloud pool from the list of neighboring cloud pools in ascending order of distance. When the average capacity of at least one target neighboring cloud pool and the cloud pool meets the preset capacity condition, determine the migration capacity corresponding to any cloud pool and the set of target neighboring cloud pools based on the average capacity.

[0100] The target neighbor cloud pool set includes one target neighbor cloud pool or multiple target neighbor cloud pools.

[0101] Optionally, for any cloud pool, the distances between the cloud pool and multiple neighboring cloud pools are obtained. Based on preset distances, it is determined whether the distances between the cloud pool and each neighboring cloud pool are within the preset distances. If so, a first list of data to be migrated is generated based on the corresponding multiple neighboring cloud pools. The cloud pools in the neighboring cloud pool list are sorted in ascending order of distance. Starting with the nearest cloud pool, one cloud pool is selected sequentially as the target neighboring cloud pool at a time. During the selection process, it is necessary to continuously check whether the subsequent capacity conditions are met. The average capacity of the cloud pool and the selected target neighboring cloud pools is calculated. The average capacity is calculated, for example, by adding the total capacity of the cloud pool and all selected target neighboring cloud pools, and then dividing by the total number of the cloud pool and the target neighboring cloud pools.

[0102] Optionally, the preset capacity condition could be, for example, that the average capacity is less than a specific value. This specific value could be, for example, a first preset threshold capacity corresponding to each neighboring cloud pool and a second preset threshold capacity corresponding to any cloud pool. If the preset capacity condition is met, the migration capacity of the cloud pool is determined based on this average capacity. Simultaneously, target neighboring cloud pools that meet the preset capacity condition are identified to form a target neighboring cloud pool set.

[0103] S104. Based on the migration capacity and the target neighboring cloud pool set, determine the migration task of the first data to be migrated in the first data to be migrated list.

[0104] Optionally, the cold data in the first list of data to be migrated can be reasonably divided according to the migration capacity. For example, if the migration capacity is 100GB and the total amount of cold data in the first list of data to be migrated is 200GB, then, for example, the cold data in the first list of data to be migrated can be filtered from the first cold data according to the order of the cold data, and multiple corresponding cold data with a total amount of less than or equal to 100GB can be obtained, thus obtaining multiple first data to be migrated. For any target neighboring cloud pool in the target neighboring cloud pool set, the capacity of multiple first data to be migrated is first obtained, and based on the capacity of each first data to be migrated and the current remaining available storage capacity of the target neighboring cloud pool, it is determined whether any first data to be migrated can be migrated to the target neighboring cloud pool. If it can be migrated, at least one first data to be migrated is obtained. Based on at least one first data to be migrated and the corresponding target neighboring cloud pool, a corresponding migration task is generated.

[0105] The capacity-balanced data migration method provided in this application identifies which cloud pools have unbalanced resource usage by acquiring the utilization rate of each cloud pool at preset intervals. When the utilization rate of a cloud pool meets preset conditions, cold data is acquired from the cloud pool, and a first list of data to be migrated corresponding to the cloud pool is determined based on the cold data. A list of neighboring cloud pools corresponding to any cloud pool is determined based on a preset distance. A target set of neighboring cloud pools is selected based on the determined list of neighboring cloud pools and sorted in ascending order of distance. The migration task of the first data to be migrated in the first list of data to be migrated is determined based on the migration capacity and the target set of neighboring cloud pools. This method generates a target set of neighboring cloud pools by comprehensively considering distance and capacity conditions, replacing the selection logic based solely on capacity. This ensures that the migration target meets capacity requirements while minimizing transmission overhead. Furthermore, by filtering neighboring cloud pools based on preset distance, prioritizing geographically proximate target cloud pools, it effectively reduces data migration latency and cost. Selecting neighboring cloud pools facilitates data migration between geographically proximate storage nodes, thereby reducing network transmission time and bandwidth consumption and improving transmission efficiency.

[0106] Figure 2A flowchart illustrating a capacity-balancing-based data migration method provided in this application embodiment. Figure 2 ,like Figure 2 As shown, in this embodiment... Figure 1 Based on the embodiments, a possible implementation method is described in detail for selecting at least one target neighboring cloud pool sequentially from the list of neighboring cloud pools in ascending order of distance, and determining the migration capacity corresponding to any cloud pool and the set of target neighboring cloud pools based on the average capacity when the average capacity of at least one target neighboring cloud pool and the cloud pools meets a preset capacity condition. The method includes:

[0107] S201. Obtain the first actual capacity of any cloud pool and the second actual capacity of each neighboring cloud pool in the corresponding list of neighboring cloud pools.

[0108] In this embodiment, the first actual capacity is used to indicate the current remaining available storage capacity of any cloud pool, and the second actual capacity is used to indicate the current remaining available storage capacity of each neighboring cloud pool.

[0109] S202. Select the first neighboring cloud pool from the list of neighboring cloud pools in ascending order of distance, set i=1, and repeat steps S203-S205.

[0110] S203. Calculate the second actual capacity of the first i neighboring cloud pools and the first actual capacity of any corresponding cloud pool to determine the average capacity of any cloud pool and the first i neighboring cloud pools in the list of neighboring cloud pools.

[0111] In this embodiment, the neighboring cloud pools in the neighboring cloud pool list are arranged in ascending order of distance from any corresponding cloud pool. When the first neighboring cloud pool in the neighboring cloud pool list is selected, i.e., when i=1, the second actual capacity corresponding to the first neighboring cloud pool and the first actual capacity of any corresponding cloud pool are calculated to obtain the average capacity corresponding to that cloud pool and the first neighboring cloud pool.

[0112] For example, from the list N of neighboring cloud pools corresponding to any cloud pool A. A Select the first neighboring cloud pool B, and then select the second actual capacity U of the neighboring cloud pool B. B With the first actual capacity U of any cloud pool A A Calculate the mean capacity of both:

[0113] S204. If the average capacity is less than or equal to the first preset threshold capacity of each of the first i neighboring cloud pools and the second preset threshold capacity of any cloud pool, then the first i neighboring cloud pools are taken as the target neighboring cloud pool set.

[0114] In this embodiment, the average capacity calculated in step S203 is compared with the first preset threshold capacity corresponding to the first neighboring cloud pool and the second preset threshold capacity corresponding to any cloud pool. The first preset threshold capacity is a capacity limit set for each neighboring cloud pool, which can be determined based on factors such as the hardware performance of each neighboring cloud pool, the strategy of allocated resources, or other service-related restrictions. The second preset threshold capacity is a capacity limit set for any specific cloud pool, also determined based on the characteristics and service requirements of that cloud pool. Only when the average capacity is less than or equal to both threshold capacities (i.e., the first preset threshold capacity and the second preset threshold capacity) is the first neighboring cloud pool designated as the target neighboring cloud pool, and this target neighboring cloud pool is used to construct the target neighboring cloud pool set.

[0115] The first preset threshold capacity corresponding to each neighboring cloud pool and the second preset threshold capacity corresponding to any cloud pool are used to indicate the preset capacity conditions.

[0116] S205. If the average capacity is greater than the first preset threshold capacity of each of the i neighboring cloud pools or the second preset threshold capacity of any cloud pool, then the value of i is incremented by 1.

[0117] In this embodiment, when it is found in step S203 that the average capacity does not meet the condition of being less than or equal to all threshold capacities, that is, when the average capacity is greater than the first preset threshold capacity corresponding to each of the i neighboring cloud pools or the second preset threshold capacity corresponding to any cloud pool, then by adding 1 to the value of i, more neighboring cloud pools can be considered in the next loop.

[0118] For example, if the condition in step S204 is not met when selecting the first neighboring cloud pool (i=1), then i=2, meaning from the neighboring cloud pool list N... A Select the second neighboring cloud pool C, and determine the second actual capacity U corresponding to neighboring cloud pool B and neighboring cloud pool C respectively. B With the first actual capacity U of any cloud pool A A Calculate the average capacity of these three cloud pools together: If the mean capacity If the capacity is less than or equal to the first preset threshold capacity of each of the first two neighboring cloud pools and the second preset threshold capacity of any cloud pool, then the first two neighboring cloud pools are taken as the target neighboring cloud pool set. If the average capacity... If the capacity of i is greater than the first preset threshold capacity of the two nearest neighboring cloud pools or the second preset threshold capacity of any cloud pool, then the value of i is incremented by 1. This process continues until the average capacity of the nth nearest neighboring cloud pool is reached. The target set of neighboring cloud pools is determined by taking the capacity of each neighboring cloud pool as less than or equal to the first preset threshold capacity of each of the selected neighboring cloud pools and the second preset threshold capacity of any cloud pool.

[0119] S206. Calculate the average capacity and the first actual capacity of any cloud pool to obtain the migration capacity corresponding to any cloud pool.

[0120] For example, the mean capacity obtained according to the above steps The first actual capacity U of any corresponding cloud pool A Calculations are performed to obtain the corresponding migration capacity. This migration capacity is used to indicate the capacity that needs to be migrated from any cloud pool to the target set of neighboring cloud pools.

[0121] S207. Traverse the list of neighboring cloud pools. If the average capacity is greater than the first preset threshold capacity of each of the currently selected neighboring cloud pools and the second preset threshold of any cloud pool, generate the corresponding alarm information.

[0122] In this embodiment, if none of the neighboring cloud pool lists traversed in steps S201 to S205 meet the conditions corresponding to step S204 (i.e., the conditions corresponding to step S205 are met), it indicates that cloud pools in other regions have no available capacity. Therefore, a corresponding alarm is generated to promptly identify potential capacity risks in the cloud pool system. When the average capacity exceeds all relevant thresholds, it may mean that the cloud pool system is about to face resource shortages or excessive load. Timely alarms allow administrators to take preventative measures, such as increasing cloud pool resources, optimizing task allocation, or adjusting data storage strategies, thereby ensuring the normal operation of cloud services and reducing the risk of service interruptions or performance degradation due to capacity issues.

[0123] The capacity-balanced data migration method provided in this application obtains the actual capacity of a cloud pool and calculates the average capacity step by step according to distance. Based on the actual capacity of different neighboring cloud pools and a preset threshold capacity, it can find a suitable combination of neighboring cloud pools. This prioritizes cloud pools with closer proximity as target cloud pools, resulting in lower network transmission costs and faster transmission speeds during data migration. Calculating the migration capacity based on the average capacity and the first actual capacity of any cloud pool provides a precise basis for data migration or resource allocation between cloud pools. This helps ensure the accuracy of the migration process, enabling cloud pools to adjust data or resources according to reasonable capacity planning, avoiding the migration of too much or too little data, thereby improving the stability and reliability of cloud services.

[0124] Figure 3 A flowchart illustrating a capacity-balancing-based data migration method provided in this application embodiment. Figure 3,like Figure 3 As shown, in this embodiment... Figure 1 Based on the embodiments, a possible implementation of the migration task of determining the first data to be migrated in the first list of data to be migrated according to the migration capacity and the target neighboring cloud pool set is described in detail. The method includes:

[0125] S301. Obtain the first occupied capacity of each data to be migrated in the first data to be migrated list. Based on the first occupied capacity and the migration capacity, determine n first data to be migrated, where n is greater than or equal to 1.

[0126] In this embodiment, for each piece of data in the first list of data to be migrated, the corresponding first occupied capacity is obtained. The first occupied capacity represents the space occupied by each piece of data to be migrated in the current storage or operating environment. The migration capacity is a reference value calculated by the above method, representing the overall capacity limit or target capacity when migrating data from any corresponding cloud pool to a neighboring cloud pool. The first occupied capacity of each piece of data to be migrated is compared with the migration capacity. If the first occupied capacity of a piece of data to be migrated is less than or equal to the migration capacity, then this data is determined as the first piece of data to be migrated. This process requires checking the data in the list of data to be migrated one by one, performing this capacity comparison operation on each piece of data. After completing the comparison of all the data to be migrated, all data that meet the condition that the first occupied capacity is less than or equal to the migration capacity are determined as the first piece of data to be migrated. Since multiple pieces of data may meet this condition, n pieces of first piece of data to be migrated are finally determined, of which the number of first pieces of data to be migrated is at least one. These first pieces of data to be migrated will be the main objects of subsequent data migration operations.

[0127] S302. Select the m-th target neighboring cloud pool from the target neighboring cloud pool set in ascending order of distance. For the m-th target neighboring cloud pool, select the first first data to be migrated from the n first data to be migrated in order. If the first occupied capacity of the first data to be migrated is less than or equal to the average capacity, calculate the sum of the first occupied capacity of the first data to be migrated and the second actual capacity of the m-th target neighboring cloud pool to obtain the calculation result. If the calculation result satisfies the average capacity corresponding to the m-th target neighboring cloud pool, the migration task corresponding to the first data to be migrated is obtained.

[0128] In this embodiment, the target neighboring cloud pools in the target neighboring cloud pool set are also sorted in ascending order of distance from any corresponding cloud pool. The m-th target neighboring cloud pool is selected from this set. For the selected m-th target neighboring cloud pool, the first piece of data to be migrated is selected sequentially from the determined n pieces of data to be migrated. This order is the arrangement order of the data in the list of data to be migrated. If the first occupied capacity of the first piece of data to be migrated is less than or equal to the average capacity, then the data is suitable for migration to the m-th target neighboring cloud pool in terms of capacity. Next, the sum of the first occupied capacity of the first piece of data to be migrated and the second actual capacity of the m-th target neighboring cloud pool is calculated to obtain the calculation result. If the calculation result satisfies the average capacity corresponding to the m-th target neighboring cloud pool, a migration task corresponding to the first piece of data to be migrated is generated. This migration task includes relevant instructions for migrating the data from the original cloud pool to the m-th target neighboring cloud pool, such as source address, target address, migration method, etc.

[0129] S303. Traverse n first data to be migrated, calculate the cumulative sum corresponding to the first occupied capacity of at least one selected first data to be migrated, and add the cumulative sum to the second actual capacity of the m-th target neighboring cloud pool to obtain the processing result. If the processing result satisfies the average capacity corresponding to the m-th target neighboring cloud pool, then at least one first data to be migrated corresponding to the m-th target neighboring cloud pool is obtained, and the corresponding migration task is generated.

[0130] In this embodiment, n first data sets to be migrated are traversed, and one data set is selected each time, with its first occupied capacity obtained. During the traversal, the first occupied capacities of at least one selected first data set to be migrated are accumulated. The purpose of this accumulation is to compare it with the average capacity corresponding to the m-th target neighboring cloud pool. When the sum of the first occupied capacities of at least one selected first data set to be migrated plus the second actual capacity of the m-th target neighboring cloud pool satisfies the average capacity corresponding to the m-th target neighboring cloud pool, these data sets are determined to be at least one first data set to be migrated corresponding to the m-th target neighboring cloud pool. The condition is met when the sum of the accumulated first occupied capacity and the second actual capacity is equal to or less than the average capacity, ensuring that the total amount of data migrated to the m-th target neighboring cloud pool is within its acceptable capacity range.

[0131] S304. Traverse the set of neighboring cloud pools of the target to obtain the migration task of the first data to be migrated.

[0132] In this embodiment, according to steps S301-S303 above, at least one first data to be migrated has been determined for the m-th target neighboring cloud pool; then, the (m+1)-th target neighboring cloud pool repeats steps S301-S303 to determine at least one first data to be migrated corresponding to the (m+1)-th target neighboring cloud pool. It should be noted that the at least one first data to be migrated determined by the (m+1)-th target neighboring cloud pool does not overlap with the at least one first data to be migrated determined by the m-th target neighboring cloud pool.

[0133] The capacity-balanced data migration method provided in this application compares the occupied capacity of the data to be migrated with the migration capacity of the cloud pool to select suitable data for migration, thus achieving data-cloud pool capacity matching and optimizing resource utilization. When selecting a nearby cloud pool, priority is given to cloud pools with closer proximity to reduce network latency and transmission costs, thereby improving migration efficiency. By systematically selecting and traversing the data to be migrated, the efficiency of data migration planning is improved, and the plan is transformed into specific migration tasks, facilitating scheduling and management. A comprehensive traversal of the set of nearby cloud pools ensures the integrity and effectiveness of the data migration scheme, making the entire process more orderly and controllable.

[0134] Figure 4 A flowchart illustrating a capacity-balancing-based data migration method provided in this application embodiment. Figure 4 ,like Figure 4 As shown, in this embodiment... Figure 1 Based on the examples, a possible implementation of the capacity-balanced data migration method is described in detail, which includes:

[0135] S401. For any cloud pool, if the utilization rate of the cloud pool does not meet the preset conditions, then determine the second list of data to be migrated for any cloud pool according to the off-site access policy.

[0136] In this embodiment, the off-site access strategy is a rule formulated based on the off-site access needs of data. When the cloud pool utilization rate does not meet preset conditions, this off-site access strategy determines which data needs to be migrated, and these data constitute a second list of data to be migrated. Each piece of data in the second list of data to be migrated contains one or more geographic information indicating off-site access. This means that these data may have access needs in different regions, and by identifying this geographic information, a basis can be provided for subsequent data migration planning.

[0137] The second list of data to be migrated includes multiple second data sets to be migrated, each of which includes one or more geographic information used to indicate remote access.

[0138] For example, the remote access policy can be set to a value F=30. Within a preset time period, for cloud pool in region A, when users in regions B and C access the first data object in cloud pool in region A remotely, with region B accessing 35 times and region C accessing 32 times, and the number of accesses in both regions is greater than F=10, then the first data object is stored in the second list of data to be migrated as a second data to be migrated. The first data object includes the geographical information of region B and region C used to indicate remote access.

[0139] S402. For any second data to be migrated, based on at least one corresponding regional information, obtain the number of times each region accesses any second data to be migrated, and sort the regions according to the number of times to obtain a regional list.

[0140] In this embodiment, for any second piece of data to be migrated in the second list of data to be migrated, the number of times each region accesses the cloud pool is counted based on its geographical information. This count reflects the access frequency of data in the cloud pool; the higher the access frequency, the stronger the correlation between the region and the data. Based on the count of each region accessing the second piece of data to be migrated, the regions are sorted in a certain order (e.g., from high to low). The sorted results form a region list, and the order of the regions in this list reflects the priority relationship of different regions accessing the data.

[0141] S403. Obtain the second occupied capacity of each second data to be migrated, select candidate regions sequentially from the region list, and determine the target cloud pool corresponding to each second data to be migrated based on the preset threshold capacity of the cloud pool corresponding to the candidate region and the second occupied capacity of the second data to be migrated, wherein one region corresponds to one target cloud pool.

[0142] In this embodiment, a second occupied capacity is determined for each second piece of data to be migrated. This capacity indicator is used to indicate the space required for data storage, the amount of computing resources required for data processing, etc. Candidate regions are selected sequentially from the region list. For each candidate region, the preset threshold capacity of its corresponding cloud pool is obtained. The preset threshold capacity is a capacity limit that the corresponding cloud pool can receive new data, and this limit can be set according to the cloud pool's resource planning, performance requirements, etc. The target cloud pool is determined based on the preset threshold capacity of the cloud pool corresponding to the candidate region and the second occupied capacity of the second piece of data to be migrated. The third actual capacity of the cloud pool corresponding to the candidate region is obtained. If the sum of the second occupied capacity of the second piece of data to be migrated and the third actual capacity of the cloud pool corresponding to the candidate region is less than or equal to the preset threshold capacity of the cloud pool corresponding to the candidate region, then the cloud pool corresponding to this candidate region can be determined as the target cloud pool for the second piece of data to be migrated. If the second occupied capacity of the second data to be migrated is greater than the preset threshold capacity of the cloud pool corresponding to the candidate region, then select the next candidate region from the region list and repeat the above steps until the sum of the second occupied capacity of the second data to be migrated and the third actual capacity of the cloud pool corresponding to the candidate region is less than or equal to the preset threshold capacity of the cloud pool corresponding to the candidate region.

[0143] For example, with remote access policy F=30, there are cloud pools A, B, and C, each with a maximum capacity of 100GB and a preset threshold of 50%, which means the preset threshold capacity is 50GB. At this time, the actual available capacity of the cloud pools (the third actual capacity) is: A: 30GB, B: 45GB, C: 30GB.

[0144] The second list of data to be migrated selected from Cloud Pool A is: [a (size: 4GB, recent accesses: Cloud Pool B, 50 times), b (size: 10GB, recent accesses: Cloud Pool C, 40 times), c (size: 10GB, recent accesses: Cloud Pool B, 35 times)]

[0145] The second list of data to be migrated selected by Cloud Pool B is: [d (size: 8GB, recent accesses: Cloud Pool A, 70 times), e (size: 11GB, recent accesses: Cloud Pool C, 65 times)), f (size: 7GB, recent accesses: Cloud Pool C, 45 times)]

[0146] The second list of data to be migrated selected by Cloud Pool C is: [g (size: 26GB, most recently accessed: Cloud Pool A, 70 visits)]

[0147] Therefore, the migration is as follows:

[0148] Cloud Pool A: 'a' can be migrated to Cloud Pool B. After migration, A: 26GB, B: 49GB, C: 30GB; 'b' can be migrated to Cloud Pool C. After migration, A: 16GB, B: 49GB, C: 40GB.

[0149] Cloud Pool B: d can be migrated to Cloud Pool A. After migration, A: 24GB, B: 41GB, C: 40GB; f objects can be migrated to Cloud Pool C. After migration, A: 24GB, B: 34GB, C: 47GB.

[0150] There are no objects available for migration in C-Cloud Pool.

[0151] S404. Based on the target cloud pool, determine the migration task for the second data to be migrated.

[0152] In this embodiment, a migration task is formulated for each second piece of data to be migrated, based on the target cloud pool. The migration task includes relevant operational information for migrating data from the original cloud pool to the target cloud pool, such as the data's source address, target address, migration method (e.g., synchronous or asynchronous migration), and migration schedule. These migration tasks are determined to achieve a reasonable transfer of data between different cloud pools, meeting the needs of remote access and optimizing the utilization of cloud pool resources.

[0153] The data migration method based on capacity balancing provided in this application embodiment determines that the second data to be migrated includes geographical information of remote access. By planning the data migration according to factors such as the number of times the region accesses the cloud pool, the data can be migrated to the cloud pool (target cloud pool) that is closer to the region that frequently accesses the data, which can reduce data transmission latency and improve data availability and access efficiency.

[0154] Optionally, this application provides a cloud management system. The cloud storage system includes multiple cloud pools, an agent center, and a scheduling center. The scheduling center is used to execute a data migration method based on capacity balancing. The agent center is used to obtain migration tasks issued by the scheduling center and perform data migration between multiple cloud pools according to the migration tasks.

[0155] Optional, such as Figure 5 As shown, the scheduling center is a global role within the wide area storage system. Deployed on the metadata center node of the wide area storage, it is responsible for managing the agent processes in various regions. Through these agent processes, the scheduling center can obtain global information, such as the data capacity of cloud pools in each region and data access information for each region.

[0156] The scheduling center comprises a command module (cmd), an application programming interface (api), a database (DB), a regional information collection module, and a migration decision module. The regional information collection module periodically collects local resource status reports (such as CPU, memory, network latency, etc.) from agents and sends them to the database for storage, used for subsequent analysis and decision-making. The migration decision module analyzes the data in the database for cross-regional load conditions and generates migration strategies (such as migrating tasks from region A to region B). The command module receives and processes migration commands, and the application programming interface provides external interfaces.

[0157] The "agent" component consists of several processes deployed on the access nodes of each region of the wide area storage system. Each agent maintains a local copy of the scheduling center's address and registers and updates information with the scheduling center via heartbeats. Agents within each region are assigned master and slave roles, with the scheduling center determining the master. Each agent uses heartbeats with the scheduling center to determine which agent in its local region is the master, and the others are slaves. The master agent periodically collects usage information from the local region's storage cluster (cloud pool) and reports it to the scheduling center. Each agent receives migration tasks from the scheduling center. In these tasks, the agent pulls data from the corresponding cloud pool across regions, transfers the data specified in the migration task to the corresponding cloud pool in its local region, performs data verification, and updates the data's storage region information. Agents executing tasks must report their progress to the scheduling center via heartbeats.

[0158] Optional, such as Figure 6 As shown, this scheduling center is used to execute a capacity-balanced data migration method. Therefore, another possible implementation of the capacity-balanced data migration method is described in detail, which is as follows:

[0159] The scheduling center determines the information of each cloud pool based on the information reported by the agent: for example, the basic information of each cloud pool, including regional information, capacity information and utilization rate; the basic information of data objects in each cloud pool, as well as the corresponding recent access time, access count, access count in the past month, access region, percentage of the most accessed region, upload region, and post-migration region; sets the preset threshold capacity for each region corresponding to the cloud pool; and sets the preset distance, which is the Euclidean distance between cloud pool i and cloud pool j.

[0160] Every preset period, the utilization rate of each cloud pool is obtained. For any cloud pool, it is determined whether the utilization rate of the cloud pool has reached the preset condition. If so, multiple cold data in the cloud pool are obtained, and the coldness value corresponding to the multiple cold data is calculated. The multiple cold data are sorted according to the coldness value to generate the corresponding migration object list. A list of neighboring cloud pools corresponding to the current cloud pool is generated based on a preset distance. The first neighboring cloud pool is selected from the list in ascending order of distance. The actual capacity of the first neighboring cloud pool and the actual capacity of the corresponding cloud pool are calculated to obtain the corresponding average capacity. It is then determined whether the average capacity is less than or equal to the preset threshold capacity of the first neighboring cloud pool and the preset threshold capacity of any other cloud pool. If so, the first neighboring cloud pool is selected as a target neighboring cloud pool. If not, the second neighboring cloud pool is selected from the list in ascending order of distance. The actual capacity of the first and second neighboring cloud pools and the actual capacity of the cloud pool are calculated to obtain the corresponding average capacity. This process is repeated. If no target neighboring cloud pool can be determined after traversing the list of neighboring cloud pools, it means that there is no available capacity in other regional cloud pools. An alarm is then issued and the load balancing is canceled.

[0161] If the list of neighboring cloud pools is traversed and a neighboring cloud pool that meets the judgment condition is found, then the corresponding target neighboring cloud pool set is obtained.

[0162] The above steps determine the set of target neighboring cloud pools. Starting with the first target neighboring cloud pool, migration objects are selected sequentially from the migration object list, and their corresponding capacity values ​​are recorded. If the capacity value is less than the average capacity of the first target neighboring cloud pool, the object is considered to be able to migrate to that cloud pool; otherwise, it is skipped, and the next object is selected. This process continues until the capacity of the first cloud pool reaches its average capacity or there are no more objects to choose from. The steps for selecting migration objects for the second and subsequent target neighboring cloud pools are the same as those for the first target neighboring cloud pool, and will not be repeated here. The set of target neighboring cloud pools is traversed to obtain the migration tasks for the corresponding migration objects.

[0163] For example, the second actual capacity of target neighboring cloud pools B, C, and D is 50GB, and the average capacity is 60GB; the migration capacity of any cloud pool A is 20GB; the corresponding first data to be migrated list in any cloud pool A is [a: 6GB, b: 3GB, c: 10GB, d: 4GB, e: 1GB]. Based on the corresponding first data to be migrated list and migration capacity, it can be seen that all five data to be migrated can be used as first data to be migrated. For target neighboring cloud pool B, the first data to be migrated, 'a', is selected sequentially from the five first data to be migrated. The first occupied capacity of 'a' (6GB) is less than the average capacity of target neighboring cloud pool B, indicating that 'a' can be migrated to target neighboring cloud pool B. At this time, the occupied capacity of target neighboring cloud pool B is 50 + 6 = 56GB < 60GB. Continuing to select 'b', the first occupied capacity of 'b' (3GB) is less than the average capacity of target neighboring cloud pool B, indicating that 'b' can be migrated to target neighboring cloud pool B. At this time, the occupied capacity of target neighboring cloud pool B is 56 + 3 = 59GB < 60GB. Continuing with option c, the initial occupied capacity of 10GB is less than the average capacity of the target neighboring cloud pool B. Although c can be migrated to the target neighboring cloud pool B, the current occupied capacity of the target neighboring cloud pool B is 56 + 10 = 66GB > 60GB, indicating that c cannot be migrated to the target neighboring cloud pool B. Continuing with option d, according to the above calculation method, d also cannot be migrated to the target neighboring cloud pool B. Continuing with option e, the initial occupied capacity of 1GB is less than the average capacity of the target neighboring cloud pool B, indicating that e can be migrated to the target neighboring cloud pool B. At this time, the occupied capacity of the target neighboring cloud pool B is 59 + 1 = 60GB. Therefore, the first data to be migrated to the target neighboring cloud pool B are determined to be a, b, and e. Based on the method for determining the corresponding first data to be migrated to the target neighboring cloud pool B, the first data to be migrated to the target neighboring cloud pool C is determined to be c, and the first data to be migrated to the target neighboring cloud pool D is determined to be d.

[0164] For any cloud pool, if its utilization rate does not meet the preset conditions, a list of data to be migrated for that cloud pool is determined according to the remote access policy. The scheduling center stores the number of accesses and the access regions for each object over the past month. The remote access policy is, for example, a value F. When the number of remote accesses for an object over the past month is greater than or equal to this value F, the object is considered for migration to a cloud pool in that region. The selection is performed on a cloud pool basis, and the selected objects are stored in an object list, sorted in descending order of access count. For each object, if the target cloud pool's capacity is less than the set threshold capacity, the migration is considered feasible, and the scheduling center generates a migration task and issues a migration trigger to the agent. Otherwise, it is skipped, and the next migrateable object is searched. The above steps are repeated, iterating through all cloud pools and searching for migrateable objects for each cloud pool, until completion.

[0165] Figure 7 A schematic diagram of a data migration device based on capacity balancing provided in this application embodiment is shown below. Figure 7 As shown, the data migration device 700 based on capacity balancing provided in this embodiment includes:

[0166] The acquisition module 701 is used to acquire the utilization rate of each cloud pool at preset intervals;

[0167] The first processing module 702 is used to, for any cloud pool, if the utilization rate of the cloud pool meets the preset conditions, obtain the cold data in the cloud pool, and determine the first list of data to be migrated corresponding to the cloud pool based on the cold data.

[0168] The second processing module 703 is used to determine a list of neighboring cloud pools corresponding to any cloud pool based on a preset distance, and to select at least one target neighboring cloud pool from the list of neighboring cloud pools in ascending order of distance. When the average capacity of at least one target neighboring cloud pool and the cloud pool meets a preset capacity condition, the migration capacity corresponding to any cloud pool and the set of target neighboring cloud pools are determined based on the average capacity. The set of target neighboring cloud pools includes one or more target neighboring cloud pools.

[0169] The third processing module 704 is used to determine the migration task of the first data to be migrated in the first data to be migrated list based on the migration capacity and the target neighboring cloud pool set.

[0170] In one possible implementation, the second processing module 703 is further configured to:

[0171] Obtain the first actual capacity of any cloud pool and the second actual capacity of each neighboring cloud pool in the corresponding list of neighboring cloud pools; wherein, the first actual capacity is used to indicate the current remaining available storage capacity of any cloud pool, and the second actual capacity is used to indicate the current remaining available storage capacity of each neighboring cloud pool;

[0172] Select the first neighboring cloud pool from the list of neighboring cloud pools in ascending order of distance, set i=1, and repeat the following operation:

[0173] Calculate the second actual capacity of the first i neighboring cloud pools and the first actual capacity of any corresponding cloud pool to determine the average capacity of any cloud pool and the first i neighboring cloud pools in the list of neighboring cloud pools.

[0174] If the average capacity is less than or equal to the first preset threshold capacity of each of the first i neighboring cloud pools and the second preset threshold capacity of any cloud pool, then the first i neighboring cloud pools are taken as the target neighboring cloud pool set.

[0175] If the average capacity is greater than the first preset threshold capacity of each of the i neighboring cloud pools or the second preset threshold capacity of any cloud pool, then the value of i is incremented by 1.

[0176] The migration capacity corresponding to any cloud pool is obtained by calculating the average capacity and the first actual capacity of any cloud pool.

[0177] In one possible implementation, the second processing module 703 is further configured to:

[0178] Iterate through the list of neighboring cloud pools. If the average capacity is greater than the first preset threshold capacity of each of the currently selected neighboring cloud pools and the second preset threshold of any cloud pool, then generate the corresponding alarm information.

[0179] In one possible implementation, the third processing module 704 is further configured to:

[0180] Obtain the first occupied capacity of each data to be migrated in the first list of data to be migrated. Based on the first occupied capacity and the migration capacity, determine n data to be migrated, where n is greater than or equal to 1.

[0181] Select the m-th target neighboring cloud pool from the set of target neighboring cloud pools in ascending order of distance. For the m-th target neighboring cloud pool, select the first first data to be migrated from the n first data to be migrated in order.

[0182] If the first occupied capacity of the first data to be migrated is less than or equal to the average capacity, then the sum of the first occupied capacity of the first data to be migrated and the second actual capacity of the m-th target neighboring cloud pool is calculated to obtain the calculation result;

[0183] If the calculation result satisfies the average capacity of the m-th target neighboring cloud pool, then the migration task corresponding to the first data to be migrated is obtained.

[0184] Traverse n first data to be migrated, calculate the cumulative sum corresponding to the first occupied capacity of at least one selected first data to be migrated, and add the cumulative sum to the second actual capacity of the m-th target neighboring cloud pool to obtain the processing result;

[0185] If the processing result satisfies the average capacity corresponding to the m-th target neighboring cloud pool, then at least one first data to be migrated corresponding to the m-th target neighboring cloud pool is obtained, and the corresponding migration task is generated.

[0186] Traverse the set of neighboring cloud pools of the target to obtain the migration task of the first data to be migrated.

[0187] In one possible implementation, the second processing module 703 is further configured to:

[0188] For any cloud pool, if the utilization rate of the cloud pool does not meet the preset conditions, then according to the remote access policy, a second list of data to be migrated for any cloud pool is determined; wherein, the second list of data to be migrated includes multiple second data to be migrated, and each second data to be migrated includes at least one regional information for indicating remote access.

[0189] Based on at least one region information corresponding to each second data to be migrated, determine the target cloud pool corresponding to each second data to be migrated; wherein, one region corresponds to one target cloud pool;

[0190] Based on the target cloud pool, determine the migration task for the second set of data to be migrated.

[0191] In one possible implementation, the second processing module 703 is further configured to:

[0192] For any second piece of data to be migrated, based on at least one corresponding regional information, obtain the number of times each region accesses any second piece of data to be migrated, and sort the regions according to the number of times to obtain a region list;

[0193] Obtain the second occupied capacity of each second data to be migrated, select candidate regions sequentially from the region list, and determine the target cloud pool corresponding to each second data to be migrated based on the preset threshold capacity of the cloud pool corresponding to the candidate region and the second occupied capacity of the second data to be migrated.

[0194] The data migration device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.

[0195] Figure 8 This is a schematic diagram of a data migration device based on capacity balancing, provided as an embodiment of this application. Figure 8 As shown, the capacity-balanced data migration device 800 provided in this embodiment includes at least one processor 801 and a memory 802. Optionally, the device 800 further includes a communication component 803. The processor 801, memory 802, and communication component 803 are connected via a bus 804.

[0196] In a specific implementation, at least one processor 801 executes computer execution instructions stored in memory 802, causing at least one processor 801 to perform the above-described method.

[0197] The specific implementation process of processor 801 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.

[0198] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.

[0199] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.

[0200] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0201] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.

[0202] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.

[0203] The aforementioned readable storage medium 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 storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.

[0204] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.

[0205] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0206] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0207] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0208] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0209] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0210] It should be noted that the data involved in this application (including but not limited to data used for analysis, data stored, data displayed, etc.) are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, storage, use, processing, transmission, provision, disclosure, and application of the relevant data all comply with the relevant laws, regulations, and standards of the relevant countries and regions, have taken necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation access points for users to choose to authorize or refuse.

[0211] It should be noted that the terms "first," "second," etc., in the claims, specification, and accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented, for example, in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, products, or apparatus.

[0212] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.

Claims

1. A data migration method based on capacity balancing, characterized in that, include: The utilization rate of each cloud pool is obtained at preset intervals; For any cloud pool, if the utilization rate of the cloud pool meets a preset condition, then cold data in the cloud pool is obtained, and based on the cold data, the first list of data to be migrated corresponding to the cloud pool is determined. Based on a preset distance, a list of neighboring cloud pools corresponding to any cloud pool is determined, and at least one target neighboring cloud pool is selected sequentially from the list of neighboring cloud pools in ascending order of distance. When the average capacity of the at least one target neighboring cloud pool and the cloud pool meets a preset capacity condition, the migration capacity corresponding to any cloud pool and the set of target neighboring cloud pools are determined based on the average capacity; wherein, the set of target neighboring cloud pools includes one target neighboring cloud pool or multiple target neighboring cloud pools. Based on the migration capacity and the target neighboring cloud pool set, determine the migration task of the first data to be migrated in the first data to be migrated list.

2. The method according to claim 1, characterized in that, The method further includes: For any of the cloud pools, if the utilization rate of the cloud pool does not meet the preset conditions, then according to the remote access policy, a second list of data to be migrated corresponding to the cloud pool is determined; wherein, the second list of data to be migrated includes multiple second data to be migrated, and each second data to be migrated includes at least one regional information for indicating remote access. Based on at least one region information corresponding to each of the second data to be migrated, a target cloud pool corresponding to each of the second data to be migrated is determined; wherein, one region corresponds to one target cloud pool; Based on the target cloud pool, determine the migration task for the second data to be migrated.

3. The method according to claim 1, characterized in that, At least one target neighboring cloud pool is selected sequentially from the list of neighboring cloud pools in ascending order of distance. When the average capacity of the at least one target neighboring cloud pool and the cloud pool meets a preset capacity condition, the migration capacity corresponding to any cloud pool and the set of target neighboring cloud pools are determined based on the average capacity, including: Obtain the first actual capacity of any cloud pool and the second actual capacity of each neighboring cloud pool in the neighboring cloud pool list; wherein, the first actual capacity is used to indicate the current remaining available storage capacity of any cloud pool, and the second actual capacity is used to indicate the current remaining available storage capacity of each neighboring cloud pool; Select the first neighboring cloud pool from the list of neighboring cloud pools in ascending order of distance, set i=1, and repeat the following operation: Calculate the second actual capacity of the first i neighboring cloud pools and the first actual capacity of any cloud pool to determine the average capacity of any cloud pool and the first i neighboring cloud pools in the list of neighboring cloud pools; If the average capacity is less than or equal to the first preset threshold capacity of each neighboring cloud pool in the first i neighboring cloud pools and the second preset threshold capacity of any cloud pool, then the first i neighboring cloud pools are taken as the target neighboring cloud pool set, wherein the first preset threshold capacity of each neighboring cloud pool and the second preset threshold capacity of any cloud pool are used to indicate the preset capacity condition. If the average capacity is greater than the first preset threshold capacity of each of the i neighboring cloud pools or the second preset threshold capacity of any cloud pool, then the value of i is incremented by 1. The migration capacity corresponding to any cloud pool is obtained by calculating the average capacity and the first actual capacity of any cloud pool.

4. The method according to claim 3, characterized in that, The method further includes: Traverse the list of neighboring cloud pools. If the average capacity is greater than the first preset threshold capacity of each of the currently selected neighboring cloud pools and the second preset threshold of any cloud pool, then generate the corresponding alarm information.

5. The method according to claim 1, characterized in that, Based on the migration capacity and the target neighboring cloud pool set, determine the migration task for the first data to be migrated in the first list of data to be migrated, including: Obtain the first occupied capacity of each data to be migrated in the first list of data to be migrated, and determine n first data to be migrated based on the first occupied capacity and the migration capacity, where n is greater than or equal to 1; Select the m-th target neighboring cloud pool from the set of target neighboring cloud pools in ascending order of distance. For the m-th target neighboring cloud pool, select the first first data to be migrated from the n first data to be migrated in order. If the first occupied capacity of the first data to be migrated is less than or equal to the average capacity, then the sum of the first occupied capacity of the first data to be migrated and the second actual capacity of the m-th target neighboring cloud pool is calculated to obtain the calculation result; If the calculation result satisfies the average capacity corresponding to the m-th target neighboring cloud pool, then the migration task corresponding to the first first data to be migrated is obtained; Traverse n first data to be migrated, calculate the cumulative sum corresponding to the first occupied capacity of at least one selected first data to be migrated, and add the cumulative sum to the second actual capacity of the m-th target neighboring cloud pool to obtain the processing result; If the processing result satisfies the average capacity corresponding to the m-th target neighboring cloud pool, then at least one first data to be migrated corresponding to the m-th target neighboring cloud pool is obtained, and a corresponding migration task is generated. Traverse the set of neighboring cloud pools of the target to obtain the migration task of the first data to be migrated.

6. The method according to claim 2, characterized in that, Based on at least one geographic information corresponding to each of the second data to be migrated, determine the target cloud pool corresponding to each of the second data to be migrated, including: For any second data to be migrated, based on at least one corresponding regional information, the number of times each region accesses the second data to be migrated is obtained, and the regions are sorted according to the number of times to obtain a regional list; Obtain the second occupied capacity of each of the second data to be migrated, select candidate regions sequentially from the region list, and determine the target cloud pool corresponding to each of the second data to be migrated based on the preset threshold capacity of the cloud pool corresponding to the candidate region and the second occupied capacity of the second data to be migrated.

7. A cloud management system, comprising multiple cloud pools, an agent center, and a scheduling center, wherein the scheduling center is used to execute the method of any one of claims 1-6; The agent center is used to obtain migration tasks issued by the scheduling center and perform data migration between multiple cloud pools according to the migration tasks.

8. A data migration device based on capacity balancing, characterized in that, The device includes: The acquisition module is used to acquire the utilization rate of each cloud pool at preset intervals; The first processing module is used to, for any cloud pool, if the utilization rate of the cloud pool meets a preset condition, acquire cold data in the cloud pool, and determine the first list of data to be migrated corresponding to the cloud pool based on the cold data. The second processing module is used to determine a list of neighboring cloud pools corresponding to any cloud pool based on a preset distance, and to select at least one target neighboring cloud pool from the list of neighboring cloud pools in ascending order of distance. When the average capacity of the at least one target neighboring cloud pool and the cloud pool meets a preset capacity condition, the module determines the migration capacity corresponding to any cloud pool and a set of target neighboring cloud pools based on the average capacity. The set of target neighboring cloud pools includes one or more target neighboring cloud pools. The third processing module is used to determine the migration task of the first data to be migrated in the first data to be migrated list based on the migration capacity and the target neighboring cloud pool set.

9. A data migration device based on capacity balancing, characterized in that, The device includes: a memory and a processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the capacity-balanced data migration method as described in any one of claims 1-6.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the data migration method based on capacity balancing as described in any one of claims 1-6.

11. A computer program product comprising a computer program that, when executed by a processor, implements the capacity-balanced data migration method according to any one of claims 1-6.