A multi-node distributed redundant cloud storage server

By optimizing the repair process of multi-node distributed redundant cloud storage service servers through the minimum storage regeneration code and repair scheduler module, the problem of excessive bandwidth for single-node fault repair in heterogeneous networks is solved, thereby shortening the repair time and improving system availability.

CN123178167APending Publication Date: 2026-11-27SHENZHEN XINGHONGYE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611349015.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-02
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing multi-node distributed redundant cloud storage servers, under the constraints of heterogeneous networks and node capabilities, suffer from excessive bandwidth requirements for single-node fault repair, and the repair time is difficult to meet service level requirements.

Method used

By employing a minimum storage regeneration code and a repair scheduler module, and by monitoring the uplink bandwidth, computing speed, and link capacity of each storage node, the system dynamically selects helper nodes and allocates unequal amounts of data transmission, thereby optimizing the repair process to reduce the total repair bandwidth and shorten the repair time.

Benefits of technology

In heterogeneous networks, it effectively reduces repair bandwidth, makes full use of high-bandwidth nodes, shortens repair time, and improves the system's automation and continuous availability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178167A_ABST
    Figure CN123178167A_ABST
Patent Text Reader

Abstract

The application relates to the field of cloud computing and data technology, and discloses a multi-node distributed redundant cloud storage server, which comprises a control plane, a data plane and a monitoring plane, the control plane comprises a metadata service module, a policy engine module, a health monitoring module and a repair scheduler module, the data plane comprises a plurality of storage nodes, the monitoring plane is used for collecting uplink bandwidth, calculation rate, link capacity, rack topology and health status of each storage node and reporting the same to the control plane; the data plane adopts a minimum storage regenerating code to encode a file, and each storage node stores a coded fragment of the file. Through heterogeneous minimum storage regenerating code and joint optimization of a helper node, in a deployment environment where the uplink bandwidth and calculation capacity of the storage nodes are uneven, the total repair bandwidth when a single node fails is close to the lower bound of information theory, and cross-rack data flow is significantly reduced compared with a traditional erasure code scheme.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of cloud computing and data technology, specifically to a multi-node distributed redundant cloud storage server. Background Technology

[0002] Multi-node distributed redundant cloud storage servers achieve redundancy and fault tolerance by encoding data and distributing it across multiple nodes, and using replication or erasure coding. When a storage node fails, the system needs to download data from other surviving nodes to reconstruct the lost fragments; the data transfer volume generated in this process is called the repair bandwidth.

[0003] Existing distributed storage systems mostly employ fixed replicas or Reed-Solomon erasure coding. Fixed replica schemes have high storage overhead, with three replicas achieving 200% redundancy. Reed-Solomon erasure coding provides fault tolerance while maintaining low storage overhead, but single-node repair requires downloading k complete data shards, with repair bandwidth equal to the original file size. This results in significant network traffic and long repair times in cross-rack or cross-data center scenarios.

[0004] To reduce repair bandwidth, the minimum storage regeneration code has been proposed. Under the homogeneous network assumption, the minimum storage regeneration code ensures that each helper node sends an equal amount of data through interference alignment, achieving a repair bandwidth that reaches the lower bound of information theory. However, in real-world cloud storage servers, the uplink bandwidth, coding computation rate, and link capacity of each node vary, nodes are distributed across different racks, and cross-rack link capacity is limited. The homogeneous minimum storage regeneration code requires all helper nodes to send the same amount of data, limiting the repair process to the helper node with the smallest bandwidth. The transmission capacity of high-bandwidth nodes is not fully utilized, and the repair bandwidth cannot reach the optimal value in heterogeneous scenarios. Furthermore, existing repair scheduling typically waits until a node completely fails before reconstruction begins. The selection of helper nodes for repair tasks does not fully consider node capability differences and fault domain constraints, resulting in concentrated cross-rack traffic and making it difficult to meet service level requirements in terms of repair completion time. Summary of the Invention

[0005] To address the shortcomings of existing technologies, this invention provides a multi-node distributed redundant cloud storage server, which solves the problem of excessive bandwidth for single-node fault repair under the constraints of heterogeneous networks and node capabilities.

[0006] To achieve the above objectives, the present invention provides the following technical solution: a multi-node distributed redundant cloud storage server, comprising a control plane, a data plane, and a monitoring plane. The control plane includes a metadata service module, a policy engine module, a health monitoring module, and a repair scheduler module. The data plane includes multiple storage nodes. The monitoring plane is used to collect the uplink bandwidth, computing speed, link capacity, rack topology, and health status of each storage node and report them to the control plane. The data plane uses a minimum storage regeneration code to encode the file, and each storage node stores an encoded fragment of the file. The minimum storage regeneration code encoding method is as follows: each storage node... Stored encoded fragments The first matrix generated by the data matrix and the MDS The product of rows plus the first row of the interference alignment matrix The product of the row and the random disturbance matrix is ​​obtained; When the control plane detects a failure in any storage node, the repair scheduler selects a number of nodes from the surviving storage nodes. The maximum amount of data that each helper node can send is determined based on its maximum available transmission rate and preset repair time. A linear programming approach is then used to determine the amount of data each helper node can send, with the objective of minimizing the total repair bandwidth. and Less than the total number of storage nodes, the amount of data stored by each storage node is equal to the original file size divided by 1 / 2. , The number of storage nodes required to recover the original file; When repairing a failed storage node, each helper node calculates a linear combination based on the repair matrix and sends it to the replacement node. The amount of data sent by different helper nodes is not equal. The interference items of different helper nodes are aligned to the same subspace at the replacement node to eliminate interference and restore the encoded fragments of the failed storage node.

[0007] Preferably, the repair scheduler determines the maximum available transmission rate of each helper node based on the smaller of the uplink bandwidth of each helper node and the link capacity from the helper node to the replacement node, and determines the upper limit of the amount of data that each helper node can send based on the maximum available transmission rate and the preset repair time. The constraint condition for the total repair bandwidth is that it is not less than the lower bound of the repair bandwidth derived from the information flow graph cut capacity.

[0008] Preferably, each storage node The stored encoded fragments are generated by the data matrix and the MDS generation matrix. The product of rows plus the first row of the interference alignment matrix The data matrix is ​​obtained by multiplying the row and the random disturbance matrix. The data matrix is ​​obtained by dividing the original file into... The MDS generation matrix is ​​composed of several data vectors. The rows are linearly independent, and the interference alignment matrix satisfies any The column interference alignment condition is that the number of fragment symbols stored in each storage node is the original file size divided by 1 / 2. Then divide by the number of symbol bits in the finite field.

[0009] Preferably, the repair matrix is ​​an identity matrix only in the row corresponding to the subspace assigned to the helper node, and the remaining rows are zero. The subspace is obtained by orthogonal decomposition of the fragmented symbol space according to the number of symbols sent by each helper node, and the subspaces corresponding to different helper nodes are mutually exclusive.

[0010] Preferably, the repair scheduler performs joint optimization of helper node selection and data transmission volume allocation, the joint optimization including: Relax the node selection variables to continuous variables and solve the linear programming problem to obtain a fractional solution; Determine the set of integer helper nodes based on the fractional solution; Determine the transmission path and path capacity from each helper node to the replacement node; Under the path capacity constraint, the linear programming problem is solved again to determine the final amount of data sent by each helper node.

[0011] Preferably, the final amount of data sent is obtained by solving a linear programming problem with the objective function being to minimize the total repair bandwidth. The constraints include the total repair bandwidth being no less than the lower bound of the repair bandwidth, the amount of data sent by each helper node not exceeding the maximum amount of data that the helper node can send, and the amount of data sent by each helper node not exceeding the capacity of its corresponding path. The maximum amount of data that can be sent is determined by the uplink bandwidth, the computation rate, the number of symbol bits in the finite field, and the repair time threshold.

[0012] Preferred, helper node The maximum transmittable data amount is the smaller of the product of the uplink bandwidth and the repair time threshold, and a second value determined by the computation rate, the number of symbol bits in the finite field, the uplink bandwidth, and the repair time threshold. This second value is calculated according to the following formula: in, For calculation speed, For the number of symbol bits in a finite field, For uplink bandwidth, This is to repair the time threshold.

[0013] Preferably, after selecting helper nodes and determining the amount of data to be sent, the control plane uses the cumulative generating function and Chernoff bound in random network calculus to calculate the probability that the repair completion time exceeds a preset threshold. The cumulative generating function is the logarithm of the moment generating function of the helper node's transmission service process. If the probability exceeds a preset allowable value, the repair scheduler increases the repair time threshold or adjusts the number of helper nodes and then re-executes the optimization.

[0014] Preferably, data is transmitted between storage nodes in the data plane via RDMA, and the helper node offloads the coded linear combination to the DPU for calculation. The message header carries a data length field to support different helper nodes sending data of varying lengths.

[0015] Preferably, when the determined transmission path and path capacity do not meet the repair bandwidth constraint, the repair scheduler removes the node with the smallest contribution from the current set of helper nodes and adds candidate nodes, and re-executes the joint optimization until the constraint is met.

[0016] This invention provides a multi-node distributed redundant cloud storage server. It has the following beneficial effects: 1. This invention optimizes heterogeneous minimum storage regeneration code and helper nodes together. In deployment environments with uneven uplink bandwidth and computing power of storage nodes, the total repair bandwidth when a single node fails is close to the lower bound of information theory. Compared with traditional erasure coding schemes, it significantly reduces cross-rack data traffic and reduces network occupancy.

[0017] 2. Before performing the repair, this invention selects helper nodes and allocates the amount of data to be sent by combining the fault domain topology, link capacity constraints and repair time threshold. Each helper node undertakes an unequal amount of data according to its own available transmission rate, avoiding low-bandwidth nodes from becoming repair bottlenecks, shortening the repair completion time and improving the adaptability of the repair process to heterogeneous network conditions.

[0018] 3. This invention organizes the coding matrix generation, data writing, operation monitoring, fault triggering, optimization decision-making, data transmission recovery, and metadata update into a closed-loop process. After the repair is completed, the mapping is updated and resources are released through a consensus protocol, and the system automatically returns to the monitoring state. While maintaining fault tolerance, it improves the automation of repair scheduling and the continuous availability of the system. Attached Figure Description

[0019] Figure 1 This is a flowchart illustrating the execution steps of the node-distributed redundant cloud storage service server in this invention. Detailed Implementation

[0020] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0021] Please see the appendix Figure 1 This invention provides a multi-node distributed redundant cloud storage server, comprising the following steps: Step S1: System initialization and encoding matrix generation: Step S1 is executed during the initial system deployment phase. It generates the encoding matrix and parameters and distributes them to each storage node, providing the computational foundation for data writing and encoded storage in step S2. In this step, the metadata service module of the control plane stores the matrix and parameters, the policy engine module is responsible for verification, and each storage node in the data plane receives and persists the matrix. The subspace decomposition rules determined in step S1 also determine the structure of the subsequent repair matrix.

[0022] In this embodiment, the total number of storage nodes is assumed to be . The minimum number of storage nodes required to restore the original file is The number of helper nodes required to repair a single failed node is: ,satisfy Less than and Less than The original file size is Bit, finite field is , For prime powers, the percentage of each sign is a specific number. equal Base of 2 The logarithm of the number of fragment symbols stored in each storage node. Generate the MDS generation matrix. , belong On OK Column matrix, its elements ,in for middle A number of distinct non-zero elements Satisfy any Linearly independent, the first Travelogue Generate interference alignment matrix , belong On OK Column matrix, the first Travelogue , satisfy any Column interference alignment conditions. Fragment the symbol space. Decomposed into The orthogonal subspace, the th The dimension of each subspace is equal to the helper node. Number of symbols sent ,in To help nodes The number of bits of data sent is determined during the initialization phase. Generate a random disturbance matrix. , belong On OK Column matrix, the first Line number Column elements Independently and uniformly randomly selected from .

[0023] After the matrix is ​​generated, it is distributed to each storage node. save , and The metadata service module synchronously saves the matrix. , Finite field parameters, file size The mapping relationship between nodes and racks. Policy engine module verification matrix. any Are rows linearly independent? Matrix Does it satisfy any Column interference alignment conditions and matrix After verifying whether the elements are evenly distributed, the system enters the write-ready state. The matrix generated in step S1 is used in step S2 to calculate the encoded fragment vector. ,in The original file was divided into OK Column data matrix.

[0024] Step S2: Data writing and encoding storage: Step S2 is executed after the encoding matrix generation and distribution are completed in step S1. The control plane receives the original file uploaded by the client and generates the matrix according to the MDS determined in step S1. Interference alignment matrix Random interference matrix The original file is divided and encoded using finite field parameters, and the encoded fragments are written to the local persistent storage of each storage node. This step connects to the subsequent step S3 as follows: the encoded fragments generated in step S2 serve as the data source to help nodes calculate linear combinations during subsequent fault repair; the node mappings and encoding parameters recorded by the metadata service in step S2 provide necessary input for fault detection in step S3 and optimization decisions in step S4.

[0025] In this embodiment, the control plane obtains the original file size. Bits, based on the minimum number of storage nodes required to recover the original file as determined in step S1. and the number of symbol bits in a finite field Calculate the number of fragment symbols that each storage node needs to store. Divide the original file into Data vectors , From 1 to Each belong The first line Column vectors, arranged in rows to form a data matrix , belong On OK Column matrix, its first Line number Column elements are denoted as , From 1 to Read the MDS generation matrix. , belong On OK Column matrix, the first Line number Column elements are denoted as , No. Travelogue , Satisfy any Rows are linearly independent; read the interference alignment matrix. , belong On OK Column matrix, the first Line number Column elements are denoted as , No. Travelogue , Satisfy any Column interference alignment condition; random interference matrix belong On OK Column matrix, the first Line number Column elements are denoted as , From 1 to , From 1 to For each storage node , From 1 to Calculate the encoded fragment vector: in, belong The first line Column vector, where the first One element: All multiplication and addition operations are performed within a finite field. Executed in the storage node. Will Persisting to a local NVMe SSD, the storage format includes a fragment header and a data body. The fragment header records the file ID, fragment index, encoding version number, finite field parameters, and number of fragment symbols. Checksums and timestamps, data body storage All Each symbol. After all storage nodes have confirmed the write operation, the metadata service module records the file ID and the original file size. Encoding parameters , , , , , The mapping relationship between each shard and storage node, the rack topology of each storage node, and the version number of the encoding matrix.

[0026] In some embodiments, the original file size no and When the product is an integer multiple, the control plane pads the end of the file with zero bits before partitioning. Data partitioning can be performed by the policy engine module or by the client. and The parameters are completed and transmitted via a secure channel. Encoding calculations can be performed by each storage node based on broadcast. and The process can be completed independently, or the DPU can perform vectorized finite field multiplication and addition operations, with multiplication accelerated by a pre-computed table. The data writing process also includes checksum calculation, using either CRC32 or SHA-256 algorithms. After step S2 is completed, the monitoring plane begins periodically collecting the uplink bandwidth of each storage node. Calculation speed Link capacity The health status provides real-time parameters for fault detection in step S3 and repair scheduling in step S4.

[0027] Step S3: Triggering of Operation Monitoring and Fault Detection: Step S3 continues running after data writing and encoding storage are completed in step S2. The monitoring plane collects heterogeneous parameters from each storage node, and the health monitoring module in the control plane determines node faults based on the collected results. Upon confirmation of a fault, the repair process is triggered. The connection between this step and subsequent step S4 is as follows: the uplink bandwidth, computing rate, link capacity, and rack topology collected in step S3 provide real-time input for calculating the lower bound of the repair bandwidth and assisting in joint node optimization in step S4; the faulty node number and replacement node number confirmed in step S3 determine the repair task context in step S4.

[0028] In this embodiment, each module of the monitoring plane periodically performs data acquisition tasks. The bandwidth monitoring module acquires data from each storage node. Uplink bandwidth The load monitoring module collects and encodes data to calculate the processing speed. The link capacity monitoring module collects data from each directed edge. Link capacity Topology management module maintains rack collection The health monitoring module detects the node's liveness status through a heartbeat mechanism, and the storage node updates every [time period]. Send heartbeat message Take 500 milliseconds, the control plane in more than If no heartbeat is received, the node is initially marked as a suspected fault. Take 3 seconds. Compare disk SMART data with a preset threshold; if the number of remapped sectors exceeds... When a fault risk is identified, If the read error rate or write error rate is higher than 100 for multiple consecutive periods, then... Disk performance is detected in time. Take 10 to the power of -6. Calculate a health score for each storage node. , This equals 1 minus the maximum probability of disk failure on that node. Upon confirming the failure, a repair request is generated, and the repair scheduler requests a replacement node. The replacement node must be located in a different rack than the faulty node and have a remaining storage capacity greater than or equal to [a certain value]. Health score Higher than ,in , This is the original file size. The minimum number of storage nodes required to recover the original file. After the replacement nodes are determined, the policy engine module recalculates the number of surviving nodes. To the replacement node Maximum available transmission rate , ,in For nodes To the replacement node The link capacity is expressed in bits per second. The metadata service module marks failed nodes as unavailable and removes them from the set of live nodes.

[0029] In some embodiments, the heartbeat message content includes the storage node number, the current timestamp, and the node load status. The triggering priority of repair requests is adjusted according to the importance of the data stored on the faulty node, with hot data receiving higher priority. If multiple storage nodes fail simultaneously, the repair scheduler prioritizes repairing faulty nodes distributed across different racks. The fault detection and repair triggering process is recorded in the system log, which includes the faulty node number, the basis for fault determination, the fault confirmation time, and the replacement node number.

[0030] Step S4: Fix the joint optimization of bandwidth lower bound calculation and helper nodes; Step S4 is executed after the faulty node is confirmed and the replacement node is determined in Step S3. The repair scheduler calculates the information-theoretic lower bound of the repair bandwidth based on heterogeneous parameters such as the current set of surviving nodes, the maximum available transmission rate of each node, and the computing rate. It then performs joint optimization of helper node selection and data transmission allocation to determine the set of helper nodes that minimizes the total repair bandwidth and the data transmission amount of each helper node under the constraints. The connection between this step and the subsequent step S5 is as follows: the set of helper nodes and the data transmission amount determined in S4 provide precise parameters for the issuance of repair instructions and data transmission in S5; the path capacity calculated in S4 determines the upper limit of the data transmission amount that helper nodes can send in S5.

[0031] In this embodiment, the repair scheduler obtains the set of currently alive nodes from the metadata service module. Fault Node Replace nodes Repair time threshold and each surviving node To the replacement node Maximum available transmission rate The repair bandwidth lower bound is calculated based on the lower bound of the heterogeneous weighted cut-set. That is, solving for the inequality. The minimum total number of transmissions, of which This is the original file size. The minimum number of storage nodes required to recover the original file. , To assist the node set, joint optimization is then performed, introducing a node selection indicator variable. And relax it to a continuous variable, calculate each candidate node Maximum amount of data that can be sent ,in For the number of symbol bits in a finite field, For nodes The encoding computation rate. To minimize As the goal, the constraints are Link capacity constraints and rack constraints , For the edge Link capacity, For the first A set of nodes for a rack. Find the maximum number of helpful nodes that can contribute to each rack, and solve this linear programming problem to obtain a fractional solution. Construct a weighted bipartite graph, with the left side representing the racks and the right side representing the... For each helper node slot, the edge weight is taken as the maximum value of the fractional solutions within the rack. The Kuhn-Munkres algorithm is used to find the maximum weight matching to obtain the set of integer helper nodes. Construct a flow network where the source connects to the helper node, and the edges from the helper node to the replacement node follow the topological path with a capacity of [value missing]. Solve for minimum cost maximum flow to determine the path and path capacity. If the maximum flow value is less than... Then, remove the node with the smallest contribution from the current set and add candidate nodes, then re-execute the matching and flow solution. Finally, solve for the path capacity constraint. A linear programming problem with the objective of... , constraint is ,in Assigning nodes in the minimum cost flow The optimal data transmission volume is obtained by considering the path capacity. .

[0032] In some embodiments, when all helper nodes have equal capacity, the heterogeneous weighted Cut-Set lower bound degenerates into the classic MSR lower bound. The linear programming in the joint optimization was solved using Google OR Tools, the bipartite graph matching was solved using the Kuhn-Munkres algorithm, and the minimum cost maximum flow was solved using the continuous shortest path algorithm. When link capacity changes dynamically, the repair scheduler utilizes the cumulative generating function from random network calculus. The calculated repair time exceeds The probability, if it exceeds the allowable value Adjust or Re-optimization. Finalized. To meet the repair requirements of heterogeneous MSR codes, different helper nodes send data of unequal lengths, making full use of high-bandwidth nodes and reducing the total repair bandwidth.

[0033] Step S5: Repair data transmission and decode recovery; Step S5 is executed after determining the set of helper nodes and the amount of data each helper node transmits in step S4. The control plane issues repair instructions to each helper node. The helper nodes calculate a linear combination based on the repair matrix and send it to the replacement node via RDMA. Upon receiving the instruction, the replacement node uses the interference alignment structure to eliminate interference terms and solves the system of equations to accurately recover the encoded fragments of the failed node. The connection between this step and the subsequent step S6 is as follows: after completing decoding, the replacement node verifies the recovered fragments and submits the fragment data and checksum to the metadata service module, providing input for the metadata update and consistency confirmation in step S6.

[0034] In this embodiment, the control plane uses the set of helper nodes determined in step S4. and optimal data transmission volume Send to each help node Send a repair command, which includes the fault node number. Replace node number Repair Matrix Data volume sent Finite field parameters and Help node Read its encoded fragment vector from local storage. , belong The first line Column vectors This represents the number of fragment symbols. (Help node) According to the repair matrix Calculate linear combinations , belong The first line Column vectors Repair Matrix belong On OK A column matrix is ​​constructed by partitioning the symbol space. Decomposed according to the subspace decomposition method determined in step S1 into The orthogonal subspace, the th The dimension of each subspace is , Take the identity matrix only in the corresponding row of this subspace, and zeros for the rest of the rows. Help node Will Send to the replacement node via RDMA The RDMA message header carries a data length field to support different helper nodes sending data of varying lengths. (Replacement node) Collect all Concatenate them into a row vector , belong The first line Column vector. Replacement nodes utilize the interference alignment matrix from step S1. By utilizing the interference alignment property, all interference terms are eliminated through solving a system of linear equations, and the failed node is accurately recovered. Encoded fragments ,in , For matrix The OK, For matrix The OK, For data matrix, This is a random disturbance matrix.

[0035] In some embodiments, the decoding process of the replacement node utilizes the property that interference terms are aligned to the same subspace. The portion of the received linear combination related to the interference matrix is ​​projected onto the common interference subspace and eliminated. Then, the remaining portion is solved. Replace the node to restore The checksum is calculated using either CRC32 or SHA-256 algorithm and compared with the checksum stored in step S2. If they match, the recovery is confirmed to be correct. Linear combination calculations for the helper node are performed by the DPU, which utilizes vectorized finite field multiply-accumulate instructions and pre-computed tables to accelerate the operation. RDMA transmission uses the RoCEv2 or InfiniBand protocol. The helper node will... Write directly to the pre-allocated buffer of the replacement node. If the verification fails, the replacement node reports a failure to the repair scheduler. The repair scheduler can choose to increase the number of helper nodes or replace the helper nodes and then re-execute steps S4 and S5.

[0036] Step S6: Metadata update and state recovery; Step S6 is executed after the replacement node completes decoding, recovery, and verification in step S5. The replacement node submits the recovered fragment information to the metadata service module. The metadata service module updates the mapping relationship between files and nodes through the consensus protocol, completes the state clearing of the faulty node and the asynchronous deletion of old fragments, and the repair scheduler releases the temporary resources occupied by this repair. The system returns to the running monitoring state of step S3. This step marks the end of the closed loop of a single repair process and provides a consistent and up-to-date metadata foundation for subsequent possible fault detection and repair scheduling.

[0037] In this embodiment, the replacement node The recovered encoded fragments Persist to local NVMe SSD belong The first line Column vectors This represents the number of shard symbols. The replacement node submits shard information to the metadata service module, including file ID, shard index, checksum, encoding version number, and timestamp. The metadata service module submits the shard information as a log entry to the Raft consensus cluster. After confirmation by a majority of nodes, it updates the file-to-node mapping, replacing the mapping corresponding to the original failed node with that of the replacement node. The metadata service module marks the faulty node as replaced and records the replacement completion time. Shards on the old faulty node are asynchronously deleted after the replacement node is confirmed to be available. The repair scheduler releases the temporary buffer and task context of this repair request, updates the health status of each surviving node, writes the repair record to the system log, and the system then returns to the running monitoring state of step S3.

[0038] In some embodiments, the repair record includes the faulty node number, the replacement node number, the repair start time, the repair completion time, and the total repair bandwidth. and repair time ,in To help nodes The amount of data sent, For nodes The encoding calculation rate, For nodes The maximum available transmission rate to the replacement node, This represents the number of bits for a finite field symbol. If, during asynchronous deletion, an old failed node is found to have recovered and come back online, the control plane adds it back to the set of live nodes, and its old fragments are marked as awaiting reclamation and no longer participate in read / write services. Before releasing resources, the repair scheduler checks if there are other repair requests in the queue; if so, it immediately starts the next repair task.

[0039] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.

Claims

1. A multi-node distributed redundant cloud storage server, characterized in that, It includes a control plane, a data plane, and a monitoring plane. The control plane includes a metadata service module, a policy engine module, a health monitoring module, and a repair scheduler module. The data plane includes multiple storage nodes. The monitoring plane is used to collect the uplink bandwidth, computing rate, link capacity, rack topology, and health status of each storage node and report them to the control plane. The data plane uses a minimum storage regeneration code to encode the file, and each storage node stores an encoded fragment of the file. The minimum storage regeneration code encoding method is as follows: each storage node... Stored encoded fragments The first generation matrix generated from the data matrix and the MDS The product of the rows plus the first row of the interference alignment matrix The product of the row and the random disturbance matrix is ​​obtained; When the control plane detects a failure in any storage node, the repair scheduler selects a number of nodes from the surviving storage nodes. The maximum amount of data that each helper node can send is determined based on its maximum available transmission rate and preset repair time. A linear programming approach is then used to determine the amount of data each helper node can send, with the objective of minimizing the total repair bandwidth. and Less than the total number of storage nodes, the amount of data stored by each storage node is equal to the original file size divided by 1 / 2. , The number of storage nodes required to recover the original file; When repairing a failed storage node, each helper node calculates a linear combination based on the repair matrix and sends it to the replacement node. The amount of data sent by different helper nodes is not equal. The interference items of different helper nodes are aligned to the same subspace at the replacement node to eliminate interference and restore the encoded fragments of the failed storage node.

2. The multi-node distributed redundant cloud storage server according to claim 1, characterized in that, The repair scheduler determines the maximum available transmission rate of each helper node based on the smaller of the uplink bandwidth of each helper node and the link capacity from the helper node to the replacement node, and determines the upper limit of the amount of data that each helper node can send based on the maximum available transmission rate and the preset repair time. The constraint condition for the total repair bandwidth is that it is not less than the lower bound of the repair bandwidth derived from the information flow graph cut capacity.

3. A multi-node distributed redundant cloud storage server according to claim 1, characterized in that, Each storage node The stored encoded fragments are generated by the data matrix and the MDS generation matrix. The product of the rows plus the first row of the interference alignment matrix The data matrix is ​​obtained by multiplying the row and the random disturbance matrix. The data matrix is ​​obtained by dividing the original file into... The MDS generation matrix is ​​composed of several data vectors. The rows are linearly independent, and the interference alignment matrix satisfies any The column interference alignment condition is that the number of fragment symbols stored on each storage node is equal to the original file size divided by 1 / 2. Then divide by the number of symbol bits in the finite field.

4. A multi-node distributed redundant cloud storage server according to claim 1, characterized in that, The repair matrix is ​​an identity matrix only in the row corresponding to the subspace assigned to the helper node, and the remaining rows are zero. The subspace is obtained by orthogonally decomposing the fragmented symbol space according to the number of symbols sent by each helper node, and the subspaces corresponding to different helper nodes are mutually exclusive.

5. A multi-node distributed redundant cloud storage server according to claim 1, characterized in that, The repair scheduler performs a joint optimization of helper node selection and data transmission volume allocation, the joint optimization including: Relax the node selection variables to continuous variables and solve the linear programming problem to obtain a fractional solution; Determine the set of integer helper nodes based on the fractional solution; Determine the transmission path and path capacity from each helper node to the replacement node; Under the path capacity constraint, the linear programming problem is solved again to determine the final amount of data sent by each helper node.

6. A multi-node distributed redundant cloud storage server according to claim 5, characterized in that, The final amount of data sent is obtained by solving a linear programming problem with the objective function being to minimize the total repair bandwidth. The constraints include that the total repair bandwidth is not less than the lower bound of the repair bandwidth, the amount of data sent by each helper node does not exceed the maximum amount of data that the helper node can send, and the amount of data sent by each helper node does not exceed the capacity of its corresponding path. The maximum amount of data that can be sent is determined by the uplink bandwidth, the calculation rate, the number of symbol bits in the finite field, and the repair time threshold.

7. A multi-node distributed redundant cloud storage server according to claim 1, characterized in that, Help Node The maximum transmittable data amount is the smaller of the product of the uplink bandwidth and the repair time threshold, and a second value determined by the computation rate, the number of symbol bits in the finite field, the uplink bandwidth, and the repair time threshold. This second value is calculated according to the following formula: in, For calculation speed, For the number of symbol bits in a finite field, For uplink bandwidth, This is to repair the time threshold.

8. A multi-node distributed redundant cloud storage server according to claim 1, characterized in that, After selecting helper nodes and determining the amount of data to be sent, the control plane uses the cumulative generating function and Chernoff bound in random network calculus to calculate the probability that the repair completion time exceeds a preset threshold. The cumulative generating function is the logarithm of the moment generating function of the helper node's transmission service process. If the probability exceeds a preset allowable value, the repair scheduler increases the repair time threshold or adjusts the number of helper nodes and then re-executes the optimization.

9. A multi-node distributed redundant cloud storage server according to claim 1, characterized in that, In the data plane, data is transmitted between storage nodes via RDMA. The helper node offloads the coded linear combination to the DPU for computation. The message header carries a data length field to support different helper nodes sending data of varying lengths.

10. A multi-node distributed redundant cloud storage server according to claim 5, characterized in that, When the determined transmission path and path capacity do not meet the repair bandwidth constraint, the repair scheduler removes the node with the smallest contribution from the current set of helper nodes and adds candidate nodes, and re-executes the joint optimization until the constraint is met.