A method, device, equipment and storage medium for data transmission load balancing

By randomly selecting backup nodes in the software-defined storage system to process and forward data, the problem of excessive network pressure and load imbalance on the main node is solved, and the data transmission efficiency and the overall performance of the system are improved.

CN114138475BActive Publication Date: 2024-09-06ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202111400529.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-19
Publication Date
2024-09-06
Estimated Expiration
2041-11-19

AI Technical Summary

Technical Problem

In the software-defined storage system, the master node faces excessive network pressure during data transmission, and the IO load among nodes is unbalanced, resulting in low data transmission efficiency.

Method used

By obtaining the client's backup request, the first backup node is randomly determined from all nodes in the software-defined storage system, and the target data is forwarded to the second backup node for backup, thereby transferring the network pressure of the primary node to the first backup node. And achieve load-balanced distribution of data on it.

Benefits of technology

It effectively reduces the network pressure on the master node, improves the IO throughput between nodes of the software-defined storage system, achieves data transmission load balancing, and ensures the integrity of user data and efficient data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114138475B
    Figure CN114138475B
Patent Text Reader

Abstract

The present application discloses a data transmission load balancing method, device, equipment and storage medium, including: obtaining a backup request for target data sent by a client; creating an IO request for transmitting the target data according to the backup request, and randomly determining a first backup node from all nodes of a software-defined storage system; sending the IO request to the first backup node so that the first backup node backs up the target data obtained through the IO request, and forwards the target data to a second backup node for backup; the second backup node is a slave node randomly determined from the software-defined storage system. The above-mentioned data transmission load balancing process of the present application uses a randomly selected first backup node to perform calculations on the second backup node and forward target data, without the need to directly forward target data to the second backup node with the help of a master node, thereby reducing the network IO processing pressure of the master node and achieving IO load balancing between nodes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to software defined storage technology, and in particular to a data transmission load balancing method, device, equipment and storage medium. Background Art

[0002] Hyper-Converged Infrastructure (HCI) refers to the use of software-defined technology to build a large number of standard servers into a resource pool that integrates computing, storage, and networking, replacing the separate computing nodes, storage servers, etc. in traditional servers, and supporting seamless horizontal expansion. Software-defined Storage (SDS) is the core of HCI, which centrally manages the disks on each server node and provides storage functions to the outside. Software-defined storage supports multiple data backups. The target data to be backed up will be saved on the disks of different nodes according to the policy. When a node fails, the complete target data still exists in the server cluster, thereby ensuring the integrity of user data; when a node is damaged and causes data loss on the node, software-defined storage also supports data reconstruction to ensure the redundancy of the target data.

[0003] Currently, when the software-defined storage system is working, it will automatically select a node from all nodes as the master node according to the strategy to provide services to the outside. After receiving the request, the master node will process and forward the data request, for example, calculate the remaining backup nodes according to the hash algorithm, and then send the target data to be backed up to the remaining backup nodes for processing. After receiving the request, the remaining backup nodes will further calculate the disk where the target data is located and the location of the disk, and write it to the disk, and finally notify the master node that the target data has been processed. There is a problem with the above data forwarding process: the master node must not only receive data requests sent by the application, but also forward multiple target data to the remaining backup nodes. Therefore, the IO (Input Output) pressure of the master node is very high, and it also leads to the problem of unbalanced IO load between nodes in the software-defined storage system.

[0004] In summary, it can be seen that how to achieve network pressure transfer of the master node and complete load balancing in the data transmission process is a problem to be solved in this field. Summary of the invention

[0005] In view of this, the purpose of the present invention is to provide a data transmission load balancing method, device, equipment and storage medium, which can realize the network pressure transfer of the master node and complete the load balancing of the data transmission process. The specific scheme is as follows:

[0006] In a first aspect, the present application discloses a data transmission load balancing method, which is applied to a master node in a software-defined storage system, comprising:

[0007] Obtain a backup request for target data sent by a client;

[0008] Creating an IO request for transmitting the target data according to the backup request, and randomly determining a first backup node from all nodes of the software-defined storage system;

[0009] The IO request is sent to the first backup node so that the first backup node backs up the target data obtained through the IO request and forwards the target data to the second backup node for backup; the second backup node is a slave node randomly determined from the software-defined storage system.

[0010] Optionally, the randomly determining a first backup node from all nodes of the software-defined storage system includes:

[0011] Performing a hash operation on the target data using a preset hash algorithm to obtain a corresponding hash value;

[0012] The hash value is processed to obtain a number, and a node corresponding to the number is selected from all nodes of the software-defined storage system as a first backup node.

[0013] Optionally, the randomly determining a first backup node from all nodes of the software-defined storage system includes:

[0014] Performing a hash operation on the target data using a preset hash algorithm to obtain a corresponding hash value;

[0015] Processing the hash value to obtain a first preset number of numbers, and screening out nodes corresponding to the first preset number of numbers from all nodes of the software-defined storage system to obtain corresponding first preset number of nodes;

[0016] Select any one node from the first preset number of nodes as the first backup node.

[0017] Optionally, sending the IO request to the first backup node so that the first backup node backs up the target data obtained through the IO request and forwards the target data to the second backup node for backup, includes:

[0018] Using the remaining nodes of the first preset number of nodes except the first backup node as the second backup nodes;

[0019] The IO request and the number corresponding to the second backup node are sent to the first backup node, so that the first backup node backs up the target data obtained through the IO request and forwards the target data to the second backup node corresponding to the obtained number for backup.

[0020] Optionally, sending the IO request to the first backup node so that the first backup node backs up the target data obtained through the IO request and forwards the target data to the second backup node for backup, includes:

[0021] The IO request is sent to the first backup node so that the first backup node backs up the target data obtained through the IO request, and uses a preset hash algorithm to perform a hash operation on the target data to obtain a second preset number of numbers, and selects nodes corresponding to the second preset number of numbers from all nodes of the software-defined storage system as second backup nodes and forwards the target data to the second backup node for backup.

[0022] Optionally, the process of sending the IO request to the first backup node further includes:

[0023] The second preset number is sent to the first backup node, so that after the first backup node performs a hash operation on the target data, the first backup node determines the second preset number of the numbers based on the acquired second preset number and the hash value obtained after the hash operation.

[0024] Optionally, the data transmission load balancing method further includes:

[0025] Obtain the backup request response information collected and sent by the first backup node, and forward the backup request response information to the client; the backup request response information collected by the first backup node includes the backup status information corresponding to the target data in the first backup node and the backup status information corresponding to the target data in the second backup node.

[0026] In a second aspect, the present application discloses a data transmission load balancing device, comprising:

[0027] A request acquisition module, used to acquire a backup request for target data sent by a client;

[0028] a node determination module, configured to create an IO request for transmitting the target data according to the backup request, and randomly determine a first backup node from all nodes of the software defined storage system;

[0029] A request sending module is used to send the IO request to the first backup node, so that the first backup node backs up the target data obtained through the IO request and forwards the target data to the second backup node for backup; the second backup node is a slave node randomly determined from the software-defined storage system.

[0030] In a third aspect, the present application discloses an electronic device, comprising:

[0031] Memory, used to store computer programs;

[0032] The processor is used to execute the computer program to implement the steps of the aforementioned disclosed data transmission load balancing method.

[0033] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the aforementioned disclosed data transmission load balancing method are implemented.

[0034] It can be seen that the present application obtains a backup request for target data sent by a client; creates an IO request for transmitting the target data according to the backup request, and randomly determines a first backup node from all nodes of the software-defined storage system; sends the IO request to the first backup node, so that the first backup node backs up the target data obtained through the IO request, and forwards the target data to the second backup node for backup; the second backup node is a slave node randomly determined from the software-defined storage system. It can be seen that the present application can determine the first backup node by selecting the first backup node through the master node, and the task of transmitting the target data to each node for backup is transferred from the master node to the first backup node, thereby realizing the transfer of network pressure, and because the first backup node is randomly selected, the target data IO can be evenly distributed on each node, improving the IO throughput between nodes of the software-defined storage system, thereby eliminating the network pressure problem of the master node and realizing data transmission load balancing. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0036] Figure 1 A flow chart of a data transmission load balancing method disclosed in an embodiment of the present invention;

[0037] Figure 2 A schematic diagram of data transmission disclosed in this application;

[0038] Figure 3 A flow chart of a specific data transmission load balancing method disclosed in an embodiment of the present invention;

[0039] Figure 4 A flow chart of a specific data transmission load balancing method disclosed in an embodiment of the present invention;

[0040] Figure 5 A schematic diagram of the structure of a data transmission load balancing device disclosed in an embodiment of the present invention;

[0041] Figure 6 The present invention is a schematic diagram of the structure of an electronic device disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0042] 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.

[0043] Currently, in software-defined storage systems, most of them use the master node to control the forwarding of target data to each backup node. However, this method will cause the master node to face greater network pressure and unbalanced load on other nodes during data transmission. Therefore, the present invention provides a data transmission load balancing solution, which can reduce the network bandwidth pressure of the master node in the face of large throughput data volume scenarios and achieve data transmission load balancing.

[0044] Reference Figure 1 As shown, an embodiment of the present invention discloses a data transmission load balancing method, which is applied to a master node in a software-defined storage system, including:

[0045] Step S11: Obtain a backup request for target data sent by the client.

[0046] In this embodiment, the master node obtains a backup request sent by the client, where the backup request is a backup request for target data. Since the target data pre-exists in the software-defined storage system, or the software-defined storage system has not stored the target data, or the target data in this backup request is updated target data for the original target data already existing in the software-defined storage system, etc., there are various situations, so the following implementation methods exist.

[0047] In a specific implementation, if the target data pre-exists in the software-defined storage system, the backup request for the target data sent by the client may not include the target data, and the backup request may specifically include feature information about the target data stored in the software-defined storage system. After the master node obtains the backup request, it may use the feature information in the backup request to perform data query work from the software-defined storage system to obtain the corresponding target data.

[0048] In another specific implementation, if the software-defined storage system has not stored the target data, the backup request for the target data sent by the client may specifically include relevant information such as the target data. When the master node obtains the backup request, it can directly use the target data information in the backup request to perform subsequent node storage processing tasks without obtaining the target data from the software-defined storage system.

[0049] In another specific embodiment, if the target data included in the backup request is updated target data for original target data already existing in the software-defined storage system, then when the original target data in the software-defined storage system is updated, the updated target data in the backup request needs to be used to complete the subsequent update and storage task of the target data.

[0050] Step S12: creating an IO request for transmitting the target data according to the backup request, and randomly determining a first backup node from all nodes of the software defined storage system.

[0051] In this embodiment, an IO request for transmitting the target data in the backup request is created, and a first backup node is randomly determined from all nodes in the software-defined storage system through the master node. It can be understood that the randomly determined first backup node can transfer the network pressure of the master node to the first backup node, wherein the location of the first backup node is random, that is, the first backup node can be any node in the software-defined storage system.

[0052] Step S13: Send the IO request to the first backup node so that the first backup node backs up the target data obtained through the IO request and forwards the target data to the second backup node for backup; the second backup node is a slave node randomly determined from the software-defined storage system.

[0053] In this embodiment, refer to Figure 2As shown, an IO request for transmitting data including the backup request is sent to the first backup node so that the first backup node backs up the target data. Further, in a first implementation, the first backup node forwards the backed-up target data to the second backup node selected from all slave nodes according to certain rules for backup, so that the function of saving multiple copies of data can be realized. It can be seen that when a node in the software-defined storage system fails, the cluster still has the completed target data, which can ensure the integrity of user data. Further, when a node is damaged and the node data is lost, the software-defined storage system can also reconstruct the data according to the target data saved in other backup nodes. In another implementation, the target data obtained through the IO request is sent to the second backup node, and the first backup node and the second backup node are backed up in parallel, and the target data is completed. The first backup node and the second backup node are backed up in parallel, so the second backup node does not need to wait for the first backup node to complete the data drop, thereby improving the response speed of backup data processing and achieving efficient data transmission.

[0054] In this embodiment, the IO request is sent to the first backup node so that the first backup node backs up the target data obtained through the IO request, and after forwarding the target data to the second backup node for backup, the backup request response information collected and sent by the first backup node is obtained, and the backup request response information is forwarded to the client; the backup request response information collected by the first backup node includes the backup status information corresponding to the target data in the first backup node and the backup status information corresponding to the target data in the second backup node.

[0055] It is understandable that after the first backup node and the second backup have completed backing up the target data, the first backup node needs to send the backup request response information to the master node. The backup request response information includes the backup status information of the first backup node and the second backup node about the target data. After the master node receives the backup request response information, it forwards it to the client so that the client can decide whether the data transmission is completed based on the received backup request response information. Among them, the backup status information can specifically include status information such as backup completion and backup failure. When the backup request response information received by the client contains backup status information of backup completion, it is determined that the data transmission has been completed. When the backup request response information received by the client contains backup status information of backup failure, the client re-sends the backup request for the target data to the master node and re-performs the backup task for the target data.

[0056] It can be seen that the present application obtains a backup request for target data sent by a client; creates an IO request for transmitting the target data according to the backup request, and randomly determines a first backup node from all nodes of the software-defined storage system; sends the IO request to the first backup node, so that the first backup node backs up the target data obtained through the IO request, and forwards the target data to the second backup node for backup; the second backup node is a slave node randomly determined from the software-defined storage system. It can be seen that the present application can determine the first backup node by selecting the first backup node through the master node, and the task of transmitting the target data to each node for backup is transferred from the master node to the first backup node, thereby realizing the transfer of network pressure, and because the first backup node is randomly selected, the target data IO can be evenly distributed on each node, improving the IO throughput between nodes of the software-defined storage system, thereby eliminating the network pressure problem of the master node and realizing data transmission load balancing.

[0057] See also Figure 3 As shown, the embodiment of the present application discloses a specific data transmission load balancing method. Compared with the previous embodiment, this embodiment further illustrates and optimizes the technical solution. Specifically, it includes:

[0058] Step S21: Obtain a backup request for target data sent by the client.

[0059] Step S22: creating an IO request for transmitting the target data according to the backup request, and performing a hash operation on the target data using a preset hash algorithm to obtain a corresponding hash value.

[0060] In this embodiment, a hash operation is performed on the target data by using a preset hash algorithm to obtain a hash value corresponding to the target data. It should be pointed out that according to the definition of the hash algorithm, when the input target data is certain, the obtained hash value is also certain.

[0061] Step S23: Process the hash value to obtain a number, and select a node corresponding to the number from all nodes of the software-defined storage system as the first backup node.

[0062] In this embodiment, after obtaining the above hash value, the hash value is processed to obtain a number. It should be noted that this embodiment also requires numbering all nodes of the software-defined storage system, and each node has a unique number, and then a node corresponding to the above number is selected from all nodes and their numbers as the first backup node. In a specific embodiment, the above processing of the hash value can be specifically performed by operating the hash value through a modulus algorithm. The specific method is as follows: first, all nodes in the software-defined storage system are numbered from 0 to N-1, and then the above-obtained hash value is used to perform a modulus operation on N to obtain the modulus i. It can be understood that i is a number from 0 to N-1, and a node corresponding to the same number as i is used as the first backup node.

[0063] Step S24: Send the IO request to the first backup node so that the first backup node backs up the target data obtained through the IO request, and uses a preset hash algorithm to perform a hash operation on the target data to obtain a second preset number of numbers, and selects nodes corresponding to the second preset number of numbers from all nodes of the software-defined storage system as second backup nodes and forwards the target data to the second backup node for backup.

[0064] In this embodiment, the process of sending the IO request to the first backup node also includes: sending the second preset number to the first backup node, so that after the first backup node performs a hash operation on the target data, it determines the second preset number of the numbers based on the second preset number obtained and the hash value obtained after the hash operation. It can be understood that in this embodiment, it is also necessary to send the second preset number related to the number of second backup nodes to the first backup node, so that after the first backup node performs a hash calculation on the target data to obtain the corresponding hash value, it obtains the second preset number of numbers based on the second preset number and using a modulus operation. Then select the node corresponding to the second preset number of numbers from 0 to N-1 as the second backup node.

[0065] For a more specific processing procedure of the above step S21, reference may be made to the corresponding contents disclosed in the above embodiments, which will not be described in detail here.

[0066] It can be seen that in the embodiment of the present application, firstly, a node is randomly selected from all nodes of the software-defined storage system using a preset hash algorithm at the master node as the first backup node, and then an IO request for transmitting the target data and a second preset number related to the number of second backup nodes are sent to the first backup node, and the preset hash algorithm is again used at the first backup node to randomly select nodes corresponding to the second preset number of numbers from all nodes of the software-defined storage system as the second backup node, so that the first backup node forwards the target data to the second backup node for backup. In this way, the master node only needs to calculate the position of the first backup node and forward data once, and the first backup node will continue to complete the position calculation and data forwarding of the second backup node. In this way, the IO pressure of the master node is reduced, and load balancing between nodes during data transmission is achieved.

[0067] See also Figure 4 As shown, the embodiment of the present application discloses a specific data transmission load balancing method. Compared with the previous embodiment, this embodiment further illustrates and optimizes the technical solution. Specifically, it includes:

[0068] Step S31: Obtain a backup request for target data sent by the client.

[0069] Step S32: creating an IO request for transmitting the target data according to the backup request, and performing a hash operation on the target data using a preset hash algorithm to obtain a corresponding hash value.

[0070] Step S33: Process the hash value to obtain a first preset number of numbers, and filter out nodes corresponding to the first preset number of numbers from all nodes of the software-defined storage system to obtain the corresponding first preset number of nodes.

[0071] In this embodiment, after obtaining the above-mentioned hash value, the hash value is processed by a modulo algorithm to obtain a first preset number of numbers. It should be noted that, similar to the previous embodiment, this embodiment also needs to number all nodes of the software-defined storage system from 0 to N-1, and then select the first preset number of nodes corresponding to the above-mentioned first preset number of numbers from all nodes and their numbers.

[0072] Step S34: Select any one node from the first preset number of nodes as the first backup node.

[0073] In this embodiment, after obtaining the first preset number of nodes, any one node is selected from the nodes as the first backup node.

[0074] Step S35: using the remaining nodes of the first preset number of nodes except the first backup node as the second backup nodes.

[0075] In this embodiment, after the first backup node is determined, the remaining nodes in the first preset number of nodes are used as second backup nodes.

[0076] Step S36: Send the IO request and the number corresponding to the second backup node to the first backup node, so that the first backup node backs up the target data obtained through the IO request and forwards the target data to the second backup node corresponding to the obtained number for backup.

[0077] In this embodiment, different from the previous embodiment, the first backup node does not need to perform a hash operation based on the target data to obtain a second preset number of numbers to obtain the second backup node. Instead, the master node sends the IO request and the calculated number corresponding to the second backup node directly to the first backup node, so that the first backup node can select the corresponding node from all nodes of the software-defined storage system as the second backup node based on the above number and back it up.

[0078] For more specific processing procedures of the above steps S31 and S32, reference may be made to the corresponding contents disclosed in the above embodiments, which will not be described in detail here.

[0079] It can be seen that in the embodiment of the present application, firstly, a preset hash algorithm is used at the master node to randomly select a first preset number of nodes from all nodes of the software-defined storage system, and any one node is selected as the first backup node, and then the remaining nodes except the first backup node in the first preset number of nodes are used as the second backup node, and the number related to the second backup node is sent to the first backup node, so that the first backup node forwards the target data to the second backup node corresponding to the acquired number for backup. In this way, the first backup node is prevented from performing a hash operation on the target data again, and the master node directly sends the digital information related to the second backup node to the first backup node, and the data forwarding work is completed by the randomly selected first backup node, which reduces the IO pressure of the master node and realizes the load balancing between nodes during the data transmission process.

[0080] Reference Figure 5 As shown, an embodiment of the present invention discloses a data transmission load balancing device, including:

[0081] The request acquisition module 11 is used to acquire a backup request for target data sent by a client;

[0082] A node determination module 12, configured to create an IO request for transmitting the target data according to the backup request, and randomly determine a first backup node from all nodes of the software defined storage system;

[0083] The request sending module 13 is used to send the IO request to the first backup node, so that the first backup node backs up the target data obtained through the IO request and forwards the target data to the second backup node for backup; the second backup node is a slave node randomly determined from the software-defined storage system.

[0084] It can be seen that the present application obtains a backup request for target data sent by a client; creates an IO request for transmitting the target data according to the backup request, and randomly determines a first backup node from all nodes of the software-defined storage system; sends the IO request to the first backup node, so that the first backup node backs up the target data obtained through the IO request, and forwards the target data to the second backup node for backup; the second backup node is a slave node randomly determined from the software-defined storage system. It can be seen that the present application can determine the first backup node by selecting the first backup node through the master node, and the task of transmitting the target data to each node for backup is transferred from the master node to the first backup node, thereby realizing the transfer of network pressure, and because the first backup node is randomly selected, the target data IO can be evenly distributed on each node, improving the IO throughput between nodes of the software-defined storage system, thereby eliminating the network pressure problem of the master node and realizing data transmission load balancing.

[0085] In some specific embodiments, the node determination module 12 specifically includes:

[0086] The first node determination unit is used to perform a hash operation on the target data using a preset hash algorithm to obtain a corresponding hash value; process the hash value to obtain a number, and select a node corresponding to the number from all nodes of the software-defined storage system as a first backup node.

[0087] In some specific embodiments, the node determination module 12 specifically includes:

[0088] The first node screening unit is used to perform a hash operation on the target data using a preset hash algorithm to obtain a corresponding hash value; process the hash value to obtain a first preset number of numbers, and screen out nodes corresponding to the first preset number of numbers from all nodes of the software-defined storage system to obtain the corresponding first preset number of nodes; and screen any one node from the first preset number of nodes as a first backup node.

[0089] In some specific embodiments, the request sending module 13 specifically includes:

[0090] A data backup unit, used to use the remaining nodes of the first preset number of nodes except the first backup node as the second backup nodes; send the IO request and the number corresponding to the second backup node to the first backup node, so that the first backup node backs up the target data obtained through the IO request, and forwards the target data to the second backup node corresponding to the obtained number for backup.

[0091] In some specific embodiments, the request sending module 13 specifically includes:

[0092] The second node determination unit is used to send the IO request to the first backup node so that the first backup node backs up the target data obtained through the IO request, and uses a preset hash algorithm to perform a hash operation on the target data to obtain a second preset number of numbers, select nodes corresponding to the second preset number of numbers from all nodes of the software-defined storage system as second backup nodes, and forward the target data to the second backup node for backup.

[0093] In some specific embodiments, the request sending module 13 specifically includes:

[0094] The second number determination unit is used to send the second preset number to the first backup node, so that after the first backup node performs a hash operation on the target data, it determines the second preset number of the numbers based on the acquired second preset number and the hash value obtained after the hash operation.

[0095] An information feedback unit is used to obtain the backup request response information collected and sent by the first backup node, and forward the backup request response information to the client; the backup request response information collected by the first backup node includes the backup status information corresponding to the target data in the first backup node and the backup status information corresponding to the target data in the second backup node.

[0096] Furthermore, the present application also discloses an electronic device. Figure 6 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be considered as any limitation on the scope of use of the present application.

[0097] Figure 6 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the data transmission load balancing method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0098] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0099] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0100] The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the data transmission load balancing method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.

[0101] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the aforementioned disclosed data transmission load balancing method. The specific steps of the method can refer to the corresponding contents disclosed in the aforementioned embodiments, and will not be repeated here.

[0102] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0103] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application. The steps of the method or algorithm described in conjunction with the embodiments disclosed herein can be directly implemented with a software module executed by a hardware or processor, or a combination of the two. The software module can be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the technical field.

[0104] Finally, 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. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0105] The above is a detailed introduction to a data transmission load balancing method, device, equipment and storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A data transmission load balancing method, characterized in that: The master node used in the software-defined storage system includes: Obtain a backup request for target data sent by a client; Creating an IO request for transmitting the target data according to the backup request, and randomly determining a first backup node from all nodes of the software-defined storage system; The IO request is sent to the first backup node so that the first backup node backs up the target data obtained through the IO request and forwards the target data to the second backup node for backup; the second backup node is a slave node randomly determined from the software-defined storage system.

2. The data transmission load balancing method according to claim 1, characterized in that: The randomly determining a first backup node from all nodes of the software-defined storage system includes: Performing a hash operation on the target data using a preset hash algorithm to obtain a corresponding hash value; The hash value is processed to obtain a number, and a node corresponding to the number is selected from all nodes of the software-defined storage system as a first backup node.

3. The data transmission load balancing method according to claim 1, characterized in that: The randomly determining a first backup node from all nodes of the software-defined storage system includes: Performing a hash operation on the target data using a preset hash algorithm to obtain a corresponding hash value; Processing the hash value to obtain a first preset number of numbers, and screening out nodes corresponding to the first preset number of numbers from all nodes of the software-defined storage system to obtain corresponding first preset number of nodes; Select any one node from the first preset number of nodes as the first backup node.

4. The data transmission load balancing method according to claim 3, characterized in that: The sending the IO request to the first backup node so that the first backup node backs up the target data obtained through the IO request and forwards the target data to the second backup node for backup, including: Using the remaining nodes of the first preset number of nodes except the first backup node as the second backup nodes; The IO request and the number corresponding to the second backup node are sent to the first backup node, so that the first backup node backs up the target data obtained through the IO request and forwards the target data to the second backup node corresponding to the obtained number for backup.

5. The data transmission load balancing method according to claim 1, characterized in that: The sending the IO request to the first backup node so that the first backup node backs up the target data obtained through the IO request and forwards the target data to the second backup node for backup, including: The IO request is sent to the first backup node so that the first backup node backs up the target data obtained through the IO request, and uses a preset hash algorithm to perform a hash operation on the target data to obtain a second preset number of numbers, and selects nodes corresponding to the second preset number of numbers from all nodes of the software-defined storage system as second backup nodes and forwards the target data to the second backup node for backup.

6. The data transmission load balancing method according to claim 5, characterized in that: The process of sending the IO request to the first backup node further includes: The second preset number is sent to the first backup node, so that after the first backup node performs a hash operation on the target data, the first backup node determines the second preset number of the numbers based on the acquired second preset number and the hash value obtained after the hash operation.

7. The data transmission load balancing method according to any one of claims 1 to 6, characterized in that: Also includes: Acquire the backup request response information collected and sent by the first backup node, and forward the backup request response information to the client; The backup request response information collected by the first backup node includes backup status information corresponding to the target data in the first backup node and backup status information corresponding to the target data in the second backup node.

8. A data transmission load balancing device, characterized in that: include: A request acquisition module, used to acquire a backup request for target data sent by a client; A node determination module, configured to create an IO request for transmitting the target data according to the backup request, and randomly determine a first backup node from all nodes of the software-defined storage system; A request sending module, used for sending the IO request to the first backup node, so that the first backup node backs up the target data obtained through the IO request and forwards the target data to the second backup node for backup; The second backup node is a slave node randomly determined from the software defined storage system.

9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor is used to execute the computer program to implement the steps of the data transmission load balancing method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the steps of the data transmission load balancing method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Data storage method based on version

    CN104767822A

  • Load balancing method, device and system, equipment and medium

    CN110958326A

  • Load balancing method and device based on distributed storage system

    CN111064808A

  • Data storage method and device

    CN111198784A

  • Backup method, system and equipment for distributed cluster and medium

    CN111611109A