Abstract
Modern data centers are increasingly transitioning from data replication to Erasure Coding (EC) to achieve high fault tolerance with minimal storage overhead. However, EC introduces a significant "repair penalty," where reconstructing a single failed node requires transferring large volumes of data across oversubscribed cross-rack network links. This paper presents DoubleR, a practical framework that introduces "repair layering" through a new class of Double Regenerating Codes (DRC). By performing partial data reconstruction within individual server racks before cross-rack transmission, DoubleR reduces expensive cross-rack repair traffic by up to 67% and significantly improves recovery throughput without sacrificing storage efficiency.
Introduction
As data volumes scale, traditional 3-way replication has become prohibitively expensive. Erasure Coding (EC) offers a storage-efficient alternative, but its primary drawback is the high network cost associated with data repair. In a typical hierarchical data center topology, servers are organized into racks connected by top-of-rack (ToR) switches. While intra-rack bandwidth is plentiful, the cross-rack links connecting these switches to the network core are often congested bottlenecks. Traditional EC repair strategies treat the network as a "flat" entity, pulling raw data blocks from various racks and saturating these critical cross-rack links. The challenge lies in minimizing this cross-rack traffic while maintaining the storage optimality of Maximum Distance Separable (MDS) codes.
The DoubleR Framework
DoubleR addresses the network bottleneck through the concept of Repair Layering. This approach shifts the repair process from a flat, global operation to a hierarchical one.
Hierarchical Architecture and Relayer Nodes
Unlike standard placement strategies that distribute blocks of a single stripe across as many racks as possible, DoubleR utilizes Hierarchical Block Placement. By placing multiple blocks of a data stripe within the same rack, the system enables local processing.
In this architecture, each rack involved in a repair operation designates a relayer node. This node collects data from its neighbors within the same rack, performs a partial repair (aggregation), and sends only the compressed result across the network core to the target node. This ensures that the raw "ingredients" of the repair never leave the rack, significantly reducing the load on the network core.
Double Regenerating Codes (DRC)
To support this hierarchical repair, the authors developed Double Regenerating Codes (DRC). DRC is designed to be systematic, meaning data is stored in its original form for fast reads, while providing the mathematical properties necessary for layered repair.
As shown in the comparison above, traditional Minimum Storage Regenerating (MSR) codes often require a one-block-per-rack placement to minimize total traffic, which ignores the physical rack boundaries. DRC(6,3,3) optimizes for a multi-block-per-rack setup, allowing for intra-rack aggregation. The authors propose two families of DRC:
- Interference Alignment Codes: These ensure that unwanted data components from different racks cancel each other out at the destination, leaving only the reconstructed block.
- Repair-by-Transfer Codes: These allow relayers to aggregate data with minimal computational overhead, reducing CPU and disk I/O strain.
Experimental Evaluation
The DoubleR prototype was implemented on top of Facebook’s HDFS-RAID and evaluated on a physical testbed of 11 machines. To simulate real-world conditions, a gateway machine was used to throttle cross-rack bandwidth, mimicking various levels of network oversubscription.
Key Results
- Traffic Reduction: Numerical analysis confirmed that DRC reduces cross-rack traffic by 33.3% to 66.7% compared to standard Reed-Solomon (RS) codes.
- Recovery Throughput: In bandwidth-constrained environments (200 Mb/s), DRC(9,5,3) achieved nearly 3x the recovery speed of RS(9,5,3).
- Degraded Read Latency: When a user requests a block from a failed node, DoubleR reduces the resulting read latency by 55.4% to 66.9%.
- System Bottlenecks: The experiments highlighted that as cross-rack bandwidth increases (e.g., to 2 Gb/s), the performance gain of DRC diminishes as the system bottleneck shifts from the network to local disk I/O speeds.
Discussion and Conclusion
DoubleR demonstrates that "repair layering" is a highly effective strategy for modern data centers. While placing multiple blocks per rack slightly reduces rack-level fault tolerance, the authors argue this is a justifiable trade-off given that individual node failures are far more frequent than total rack failures.
Future work remains in finding explicit DRC constructions for arbitrary $(n, k, r)$ parameters and exploring how repair layering might integrate with non-MDS codes like Locally Repairable Codes (LRC). Nevertheless, DoubleR provides a practical, high-performance path for scaling erasure-coded storage in network-constrained environments.
Summary updated