Load balancing method based on distributed storage and storage medium

By dividing geographical spatiotemporal data in time and space, performing group processing and optimization, combined with dynamic data migration, the problem of storage imbalance in distributed storage systems is solved, and the operating efficiency and flexibility of the system are improved.

CN118760723AInactive Publication Date: 2024-10-11ZHONGSHUN CENTURY (DONGGUAN) ELECTRONICS CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410791930.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-10-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing distributed storage systems can easily cause imbalance problems during data storage, and fail to pre-group data before storage to ensure load balancing after storage. Dynamic data migration is required to adjust storage balance.

Method used

Through time and space division of geographical spatiotemporal data, group processing and optimization operations are performed to ensure balanced storage of data in each period, and dynamic data migration is used to monitor and adjust storage node loads to ensure load balance is maintained after user operations.

Benefits of technology

It realizes that there is no need to adjust the data before storage to ensure balance, and dynamic migration is used to eliminate load imbalance after storage, which improves the operating efficiency and flexibility of the distributed storage system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760723A_ABST
    Figure CN118760723A_ABST
Patent Text Reader

Abstract

The invention discloses a load balancing method based on distributed storage and a storage medium, and relates to the technical field of distributed storage, and the method comprises the following steps: S1, taking a storage load balancing method for geographical spatio-temporal data as an example, obtaining the geographical spatio-temporal data needing to be stored, and time division and space division are respectively carried out on the geographic spatio-temporal data needing to be stored. The invention provides a load balancing method based on distributed storage and a storage medium, and provides a basis for subsequent data grouping by performing time division and space division on geographical spatio-temporal data by taking a storage load balancing method for the geographical spatio-temporal data as an example. And data grouping and grouping optimization operation are carried out on the divided geographical spatio-temporal data, so that the geographical spatio-temporal data in each time period is ensured to be stored in a balanced manner in a grouping result, and the geographical spatio-temporal data does not need to be adjusted in a data storage server when the geographical spatio-temporal data is not operated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of distributed storage technology, and in particular to a load balancing method and storage medium based on distributed storage. Background Art

[0002] Distributed computing is built on a distributed storage system, which provides data reading and writing services for the workload being executed. Therefore, the performance of distributed computing is closely related to the data access performance of the storage system. The Chinese patent application number 202211567973.4 discloses "a load balancing method and storage medium based on distributed storage, the method comprising: constructing a storage allocation model of a distributed storage system, the storage allocation model allocates each data object to at least one storage node; establishing a connection between the system load and the uniform spacing model, and constructing necessary and sufficient conditions for achieving load balancing of the distributed storage system based on the connection between the two; calculating a load balancing evaluation index based on the necessary and sufficient conditions, wherein the load balancing evaluation index includes the probability of the system running in a load balancing state and a load imbalance factor; adjusting the storage allocation model based on the calculation result of the load balancing evaluation index. The present invention improves the load balancing of the distributed storage system and improves the system operation efficiency.";

[0003] This prior art only solves the problem that there is no flexibility in randomly querying any number of nodes in the existing storage system. This is because each data object is usually stored on only a limited number of nodes, and an arriving request can only be served on one node that carries the requested object. This can easily lead to the problem of unbalanced distributed storage. It does not take into account the need to pre-group data before storing the data so that the data is in a storage load-balanced state in the storage server after storage, and there is no need to perform storage balancing operations after storage. In addition, after subsequent users operate on the data in the storage server, dynamic data migration operations are required to ensure load balancing of the data in the storage server. Summary of the invention

[0004] The purpose of the present invention is to provide a load balancing method and storage medium based on distributed storage to solve the problems raised in the above background technology.

[0005] To achieve the above object, the present invention provides the following technical solution: a load balancing method based on distributed storage, comprising the following steps:

[0006] S1: Taking the storage load balancing method for geographic spatiotemporal data as an example, the geographic spatiotemporal data to be stored is obtained, and time division and space division operations are performed on the geographic spatiotemporal data to be stored respectively;

[0007] S2: Perform grouping processing operations on the geographic spatiotemporal data that have undergone time division and space division operations, and perform optimization operations on the grouping results to ensure that the geographic spatiotemporal data of each time period are stored evenly in the grouping results;

[0008] S3: Based on the grouping results of the optimized geographic spatiotemporal data in step S2, the geographic spatiotemporal data is stored in the data storage server, and the load of each storage node is monitored and dynamic data migration is used to ensure the load balance of the geographic spatiotemporal data in each storage node to cope with the situation where users operate on the geographic spatiotemporal data in the data storage server, thereby causing load imbalance on each storage node.

[0009] Preferably, step S1 also includes obtaining geographic spatiotemporal data that need to be stored based on actual needs, and then performing an operation of first dividing the geographic spatiotemporal data that need to be stored by time and then by space, wherein the specific operation of dividing the geographic spatiotemporal data by time is that the administrator of the data storage server specifies the basic unit of time division, which may be year, month, day or hour, and sets the final number of time periods completed by the division, arranges the geographic spatiotemporal data in descending order according to time, and evenly divides the geographic spatiotemporal data according to the basic unit specified by the administrator to obtain evenly divided time segments, and when the number of evenly divided time segments is greater than the set final number of time periods, continuous evenly divided time segments are merged through a dynamic programming algorithm, so that the number of evenly divided time segments after the merger is equal to the set final number of time periods, and the amount of geographic spatiotemporal data in the evenly divided time segments after the merger is equal.

[0010] Preferably, step S1 also includes, when the number of uniform time segments is less than the set final time period number, splitting the uniform time segments with the largest data volume in half in turn until the number of time segments is equal to the set final time period number, wherein the specific operation of spatial division of geographic spatiotemporal data is percentage sampling of geographic spatiotemporal data to obtain small sample geographic spatial data, and setting multiple point thresholds of different sizes by linear interpolation method, and performing multiple spatial grid divisions on the small sample data set, and calculating the average imbalance degree of each division result by the average imbalance quantization algorithm, and the specific calculation formula is as follows:

[0011]

[0012] In the formula, n represents the total number of small sample data, ubd(sum) represents the overall imbalance, ubd(timebin i) represents the time period imbalance of the ith small sample data, and based on the calculation results of the average imbalance of each division result, it is intuitively displayed by drawing a line graph, and then the point threshold corresponding to the lowest average imbalance is obtained, and this value is divided by the sampling percentage to obtain the point threshold of the geographic spatiotemporal data, and then the geographic spatial data is spatially adaptively divided by splitting the grid from top to bottom or merging the grid from bottom to top, so that the number of points in each layer of the obtained multi-level grid does not exceed the point threshold, and the grids are numbered.

[0013] Preferably, step S2 also includes grouping processing operations on the geographic spatiotemporal data that have undergone time division and space division operations. The specific operation is to generate a quadtree based on the spatial distribution of the obtained multi-level grids, and screen out adjacent grids through the quadtree, construct a grid adjacency matrix, and then construct a CSR file. The open source graph partitioning tool Metis is used to output the required number of groups and the CSR file based on the input, and the grids with the same group number are divided into the same group based on the group number in the output partition result.

[0014] Preferably, step S2 also includes optimizing the grouping results, specifically searching for a grid that meets the migration conditions, and the migration conditions are that the grid cannot change the original group after migration and the grid cannot be infinitely extended in the same direction, and formulating the best migration plan, specifically calculating the average imbalance under the current grouping situation, traversing the grids under each group, and obtaining the adjacent group number of each group, traversing the grids under the adjacent group number, and comparing the amount of geographic spatiotemporal data in the group and its adjacent groups within the time period set by the administrator, and only when the adjacent group is within the When the amount of geographic spatiotemporal data is greater than the amount of geographic spatiotemporal data in the group within the time period set by the administrator, the grids in the group are moved to the adjacent group in the simulation, and the average imbalance of the group after the move is calculated and compared with the average imbalance of the group before the move. Only the decrease in the average imbalance is recorded, and the number of the moved grid with the largest decrease, the group number before the move, and the group number after the move are recorded. Based on this, the actual grid migration operation is performed and the grid sets under each group are updated to ensure that the geographic spatiotemporal data of each time period are stored evenly in the grouping results.

[0015] Preferably, step S3 further includes storing the geographic spatiotemporal data in a data storage server based on the grouping result of the optimized geographic spatiotemporal data in step S2, and monitoring the load of each storage node, and specifically calculating the current storage capacity of each storage node through a node storage algorithm, and the specific calculation formula is as follows:

[0016]

[0017] In the formula, S represents the status of each storage node. When the storage node is working normally, S=1. When the storage node fails, S=0. H represents the heterogeneous weight of each storage node. used Indicates the storage space used by each storage node, DN total It represents the total storage space of each storage node, and based on the calculation results, when there is a new geographic spatiotemporal data storage request, the storage node with the largest storage capacity is selected as the target node to process the request.

[0018] Preferably, step S3 also includes, when the user operates the geographic spatiotemporal data in the data storage server, resulting in an unbalanced load on each storage node, using a dynamic data migration method to ensure the load balance of the geographic spatiotemporal data on each storage node. The specific operation is to perform a division operation between the total load of the current data storage server and the total storage space of the current data storage server to obtain the overall load weight of the current data storage server, and calculate the load weight of each current storage node through a storage node load weight algorithm. The specific calculation formula is as follows:

[0019]

[0020] Where, DN l Indicates the load value of each storage node, DN c It represents the storage capacity of each storage node, and averages the maximum and minimum values ​​of the calculated load weights of each storage node to obtain the average load weight, and compares the average load weight with the overall load weight of the data storage server. When the average load weight is less than the overall load weight of the data storage server, the load weight to be migrated is obtained by subtracting the minimum value of the load weights of each storage node from the average load weight. Otherwise, the load weight to be migrated is obtained by subtracting the minimum value of the load weights of each storage node from the overall load weight of the data storage server. The amount of data to be migrated is calculated by the data migration algorithm. The specific calculation formula is as follows:

[0021] DA m =DN m ×DN ci ×H

[0022] Where, DN m Indicates the load weight of the migration, DN ci Indicates the storage capacity of the storage node corresponding to the maximum value in the storage node load weight, and based on the calculation result, performs data migration between the storage nodes corresponding to the maximum value and the minimum value in the storage node load weight.

[0023] A load balancing storage medium based on distributed storage, characterized in that: a computer program is stored on the load balancing storage medium based on distributed storage, and when the computer program is executed by a processor, the steps of any one of the load balancing methods based on distributed storage are implemented.

[0024] Compared with the prior art, the beneficial effects of the present invention include at least: the present invention proposes a load balancing method and storage medium based on distributed storage, taking the storage load balancing method of geographic spatiotemporal data as an example, by dividing the geographic spatiotemporal data by time and space, a basis is provided for subsequent data grouping, and the divided geographic spatiotemporal data is grouped and grouped and optimized to ensure that the geographic spatiotemporal data of each time period is stored evenly in the grouping result, and there is no need to adjust the geographic spatiotemporal data in the data storage server when no operation is performed on the geographic spatiotemporal data, and after the geographic spatiotemporal data is stored, the storage capacity of each storage node is monitored to ensure that when a data storage request occurs subsequently, the storage node with the largest storage capacity is preferentially used as the target node to process the request, and after the user operates the geographic spatiotemporal data in the data storage server, the load balancing of the geographic spatiotemporal data in each storage node is ensured by adopting a dynamic data migration method, thereby eliminating the load imbalance of each storage node caused by the user's operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 A schematic flow chart of a load balancing method based on distributed storage provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0027] See also Figure 1 The present invention provides a technical solution: a load balancing method based on distributed storage, comprising the following steps:

[0028] S1: Taking the storage load balancing method for geographic spatiotemporal data as an example, the geographic spatiotemporal data to be stored is obtained, and time division and space division operations are performed on the geographic spatiotemporal data to be stored respectively;

[0029] S2: Perform grouping processing operations on the geographic spatiotemporal data that have undergone time division and space division operations, and perform optimization operations on the grouping results to ensure that the geographic spatiotemporal data of each time period are stored evenly in the grouping results;

[0030] S3: Based on the grouping results of the optimized geographic spatiotemporal data in step S2, the geographic spatiotemporal data is stored in the data storage server, and the load of each storage node is monitored and dynamic data migration is used to ensure the load balance of the geographic spatiotemporal data in each storage node to cope with the situation where users operate on the geographic spatiotemporal data in the data storage server, thereby causing load imbalance on each storage node.

[0031] The step S1 also includes obtaining the geographic spatiotemporal data to be stored based on actual demand conditions, and then performing an operation of first dividing the geographic spatiotemporal data to be stored by time and then dividing it by space, wherein the specific operation of dividing the geographic spatiotemporal data by time is that the administrator of the data storage server specifies the basic unit of time division, which may be year, month, day or hour, and sets the number of final time periods completed by division, arranges the geographic spatiotemporal data in descending order according to time, and divides the geographic spatiotemporal data evenly according to the basic unit specified by the administrator to obtain even time segments that have been divided, and when the number of even time segments is greater than the number of final time periods set, merges continuous even time segments through a dynamic programming algorithm, so that the number of even time segments after merging is equal to the number of final time periods set, and the amount of geographic spatiotemporal data in the even time segments after merging is equal;

[0032] The step S1 also includes, when the number of uniform time segments is less than the set final time period number, splitting the uniform time segments with the largest data volume in half in turn until the number of time segments is equal to the set final time period number, wherein the specific operation of spatial division of geographic spatiotemporal data is to perform percentage sampling on the geographic spatiotemporal data to obtain small sample geographic spatial data, and set multiple point number thresholds of different sizes by linear interpolation method, and perform multiple spatial grid divisions on the small sample data set, and calculate the average imbalance degree of each division result by the average imbalance quantization algorithm, and the specific calculation formula is as follows:

[0033]

[0034] In the formula, n represents the total number of small sample data, ubd(sum) represents the overall imbalance, ubd(timebin i) represents the time period imbalance of the i-th small sample data, and based on the calculation results of the average imbalance of each division result, it is intuitively displayed by drawing a line graph, and then the point threshold corresponding to the lowest average imbalance is obtained, and this value is divided by the sampling percentage to obtain the point threshold of the geographic spatiotemporal data, and then the geographic spatial data is spatially adaptively divided by splitting the grid from top to bottom or merging the grid from bottom to top, so that the number of points in each layer of the obtained multi-level grid does not exceed the point threshold, and the grids are numbered;

[0035] The step S2 also includes performing a grouping processing operation on the geographic spatiotemporal data that has undergone time division and space division operations, specifically generating a quadtree based on the spatial distribution of the obtained multi-level grids, and filtering out adjacent grids through the quadtree, constructing a grid adjacency matrix, and then constructing a CSR file, and outputting the required number of groups and the CSR file based on the input through the open source graph division tool Metis, and dividing the grids with the same group number into the same group based on the group number in the output division result;

[0036] The step S2 also includes optimizing the grouping result, specifically searching for a grid that meets the migration condition, and the migration condition is that the grid cannot change the original grouping after migration and the grid cannot be infinitely extended in the same direction, and formulating the best migration plan, specifically calculating the average imbalance under the current grouping situation, traversing the grids under each group, and obtaining the adjacent group number of each group, traversing the grids under the adjacent group number, and comparing the amount of geographic spatiotemporal data in the group and its adjacent groups within the time period set by the administrator, and only when the amount of geographic spatiotemporal data in the adjacent group is greater than the amount of geographic spatiotemporal data in the group within the time period set by the administrator, in the simulation, the grid in the group is moved to the adjacent group, and the average imbalance of the group after the move is calculated, and compared with the average imbalance of the group before the move, only the decline in the average imbalance is recorded, and the number of the mobile grid with the largest decline, the group number before the move, and the group number after the move are recorded, and based on this, the actual grid migration operation is performed and the grid set under each group is updated to ensure that the geographic spatiotemporal data of each time period is stored evenly in the grouping result;

[0037] The step S3 further includes storing the geographic spatiotemporal data in the data storage server based on the grouping result of the optimized geographic spatiotemporal data in step S2, and monitoring the load of each storage node. Specifically, the current storage capacity of each storage node is calculated by a node storage algorithm, and the specific calculation formula is as follows:

[0038]

[0039] In the formula, S represents the status of each storage node. When the storage node is working normally, S=1. When the storage node fails, S=0. H represents the heterogeneous weight of each storage node. used Indicates the storage space used by each storage node, DN total Indicates the total storage space of each storage node, and based on the calculation results, when there is a new geographic spatiotemporal data storage request, selects the storage node with the largest storage capacity as the target node to process the request;

[0040] The step S3 also includes when the user operates the geographic spatiotemporal data in the data storage server, resulting in an unbalanced load on each storage node, using a dynamic data migration method to ensure the load balance of the geographic spatiotemporal data on each storage node. The specific operation is to perform a division operation between the total load of the current data storage server and the total storage space of the current data storage server to obtain the overall load weight of the current data storage server, and calculate the load weight of each current storage node through the storage node load weight algorithm. The specific calculation formula is as follows:

[0041]

[0042] Where, DN l Indicates the load value of each storage node, DN c It represents the storage capacity of each storage node, and averages the maximum and minimum values ​​of the calculated load weights of each storage node to obtain the average load weight, and compares the average load weight with the overall load weight of the data storage server. When the average load weight is less than the overall load weight of the data storage server, the load weight to be migrated is obtained by subtracting the minimum value of the load weights of each storage node from the average load weight. Otherwise, the load weight to be migrated is obtained by subtracting the minimum value of the load weights of each storage node from the overall load weight of the data storage server. The amount of data to be migrated is calculated by the data migration algorithm. The specific calculation formula is as follows:

[0043] DA m =DN m ×DN ci ×H

[0044] Where, DN m Indicates the load weight of the migration, DN ci Indicates the storage capacity of the storage node corresponding to the maximum value in the storage node load weight, and based on the calculation result, performs data migration between the storage nodes corresponding to the maximum value and the minimum value in the storage node load weight.

[0045] A load balancing storage medium based on distributed storage, characterized in that: a computer program is stored on the load balancing storage medium based on distributed storage, and when the computer program is executed by a processor, the steps of any one of the load balancing methods based on distributed storage are implemented.

[0046] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0047] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A load balancing method based on distributed storage, characterized in that The following steps are involved: S1: Taking the storage load balancing method for geographic spatiotemporal data as an example, the geographic spatiotemporal data to be stored is obtained, and time division and space division operations are performed on the geographic spatiotemporal data to be stored respectively; S2: Perform grouping processing operations on the geographic spatiotemporal data that have undergone time division and space division operations, and perform optimization operations on the grouping results to ensure that the geographic spatiotemporal data of each time period are stored evenly in the grouping results; S3: Based on the grouping results of the optimized geographic spatiotemporal data in step S2, the geographic spatiotemporal data is stored in the data storage server, and the load of each storage node is monitored and dynamic data migration is used to ensure the load balance of the geographic spatiotemporal data in each storage node to cope with the situation where users operate on the geographic spatiotemporal data in the data storage server, thereby causing load imbalance on each storage node.

2. The load balancing method based on distributed storage according to claim 1, characterized in that: The step S1 also includes obtaining the geographic spatiotemporal data that needs to be stored based on actual needs, and then performing an operation of first dividing the geographic spatiotemporal data that needs to be stored by time and then dividing it by space, wherein the specific operation of dividing the geographic spatiotemporal data by time is that the administrator of the data storage server specifies the basic unit of time division, which can be year, month, day or hour, and sets the final number of time periods completed by the division, arranges the geographic spatiotemporal data in descending order according to time, and divides the geographic spatiotemporal data evenly according to the basic unit specified by the administrator to obtain even time segments that have been divided, and when the number of even time segments is greater than the set final number of time periods, merges continuous even time segments through a dynamic programming algorithm, so that the number of even time segments after the merger is equal to the set final number of time periods, and the amount of geographic spatiotemporal data in the even time segments after the merger is equal.

3. The load balancing method based on distributed storage according to claim 1, characterized in that: The step S1 also includes when the number of uniform time segments is less than the set final time period number, then the uniform time segments with the largest data volume are split in half in turn until the number of time segments is equal to the set final time period number, wherein the specific operation of spatially dividing the geographic spatiotemporal data is to perform percentage sampling on the geographic spatiotemporal data to obtain small sample geographic spatial data, and set multiple point thresholds of different sizes by linear interpolation, and perform multiple spatial grid divisions on the small sample data set, and calculate the average imbalance of each division result by an average imbalance quantization algorithm, and based on the calculation result of the average imbalance of each division result, intuitively display it by drawing a line graph, and then obtain the point threshold corresponding to the lowest average imbalance, and divide the value by the sampling percentage to obtain the point threshold of the geographic spatiotemporal data, and then perform spatial adaptive division on the geographic spatial data by splitting the grid from top to bottom or merging the grid from bottom to top, so that the number of points in each layer of grids in the obtained multi-level grids does not exceed the point threshold, and the grids are numbered.

4. The load balancing method based on distributed storage according to claim 1, characterized in that: The step S2 also includes grouping processing operations on the geographic spatiotemporal data that have undergone time division and space division operations. The specific operation is to generate a quadtree based on the spatial distribution of the obtained multi-level grids, and filter out adjacent grids through the quadtree, construct a grid adjacency matrix, and then construct a CSR file. The open source graph partitioning tool Metis is used to output the required number of groups and the CSR file based on the input, and the grids with the same group number are divided into the same group based on the group number in the output partition result.

5. The load balancing method based on distributed storage according to claim 1, characterized in that: The step S2 also includes optimizing the grouping result, specifically searching for a grid that meets the migration condition, and the migration condition is that the grid cannot change the original grouping after migration and the grid cannot be infinitely extended in the same direction, and formulating the best migration plan, specifically calculating the average imbalance under the current grouping situation, traversing the grids under each group, and obtaining the adjacent group number of each group, traversing the grids under the adjacent group number, and comparing the amount of geographic spatiotemporal data in the group and its adjacent groups within the time period set by the administrator, and only when the amount of geographic spatiotemporal data in the adjacent group is greater than the amount of geographic spatiotemporal data in the group within the time period set by the administrator, in the simulation, the grid in the group is moved to the adjacent group, and the average imbalance of the group after the move is calculated, and compared with the average imbalance of the group before the move, only the decrease in the average imbalance is recorded, and the number of the mobile grid with the largest decrease, the group number before the move, and the group number after the move are recorded, and based on this, the actual grid migration operation is performed and the grid set under each group is updated to ensure that the geographic spatiotemporal data of each time period is stored evenly in the grouping result.

6. The load balancing method based on distributed storage according to claim 1, characterized in that: The step S3 also includes storing the geographic spatiotemporal data in the data storage server based on the grouping results of the optimized geographic spatiotemporal data in step S2, and monitoring the load conditions of each storage node. Specifically, the current storage capacity of each storage node is calculated through a node storage algorithm, and based on the calculation results, when there is a new geographic spatiotemporal data storage request, the storage node with the largest storage capacity is selected as the target node to process the request.

7. The load balancing method based on distributed storage according to claim 1, characterized in that: The step S3 also includes, when the user operates the geographic spatiotemporal data in the data storage server, resulting in an unbalanced load on each storage node, ensuring the load balance of the geographic spatiotemporal data on each storage node by a dynamic data migration method. The specific operation is to perform a division operation between the total load of the current data storage server and the total storage space of the current data storage server to obtain the overall load weight of the current data storage server, and calculate the load weights of each current storage node by a storage node load weight algorithm, and average the maximum and minimum values ​​of the calculated load weights of each storage node to obtain an average load weight, and compare the average load weight with the overall load weight of the data storage server. When the average load weight is less than the overall load weight of the data storage server, the migrated load weight is obtained by subtracting the minimum value of the load weights of each storage node from the average load weight, otherwise, the migrated load weight is obtained by subtracting the minimum value of the load weights of each storage node from the overall load weight of the data storage server, and the data migration algorithm is used to calculate the amount of data to be migrated, and based on the calculation result, data migration is performed between the storage nodes corresponding to the maximum and minimum values ​​in the storage node load weights.

8. A load balancing storage medium based on distributed storage, characterized in that: The load balancing storage medium based on distributed storage stores a computer program, and when the computer program is executed by a processor, the steps of the load balancing method based on distributed storage described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Load balancing method based on distributed storage and storage medium

    CN115629717A

  • Method and device for managing cluster system

    CN116257349A

  • Spatial data storage method and device, computer equipment and storage medium

    CN116755627A

  • Balanced load space-time perception big data storage query method and system based on storage object separation mechanism

    CN116775641A

  • Load balancing optimization method and device in data assimilation mode and storage medium

    CN117407166A