A Solution to the Network Challenges of Data Recovery in Erasure-coded Distributed Storage Systems: A Study on the Facebook Warehouse Cluster

K. V. Rashmi, Nihar B. Shah, Dikang Gu, Hairong Kuang, Dhruba Borthakur, Kannan Ramchandran

Introduction

While Reed-Solomon (RS) codes are the gold standard for storage efficiency in massive data centers, they trigger a "network storm" whenever a single disk fails. This paper analyzes Facebook’s production traffic to show that recovery operations generate over 180 TB of cross-rack traffic daily. To address this, the authors introduce Piggybacked-RS codes—a novel coding scheme that reduces this recovery traffic by 30% without sacrificing storage efficiency.

The Recovery Problem in Erasure Coding

Modern distributed storage systems, such as HDFS, have transitioned from simple 3x replication to Erasure Coding to manage petabyte-scale data cost-effectively. RS codes provide high reliability with only 1.4x storage overhead. However, a significant hidden cost exists: The Recovery Problem. In a standard (10, 4) RS setup, losing a single block requires downloading 10 other blocks from across the network for reconstruction. This creates a massive bottleneck at Top-of-Rack (TOR) switches.

Daily cross-rack transfer bytes and HDFS blocks reconstructed in Facebook's cluster.

Analysis of Facebook's Warehouse Cluster confirms the severity of this issue. As shown in the figure above, recovering RS-coded data moves a median of 180 Terabytes across racks every day. This "network tax" significantly slows down other critical tasks like MapReduce jobs.

Piggybacked-RS Codes: A Storage-Optimal Solution

The authors propose Piggybacked-RS codes, built on a "Piggybacking" framework. Standard RS codes treat every "stripe" (a collection of data and parity units) as an island. Piggybacking breaks this isolation by taking the parity units of one stripe and "piggybacks" a carefully designed function of a different stripe onto them.

Conceptual illustration of the Piggybacking framework for reducing recovery traffic.

Unlike previous attempts to solve this, Piggybacked-RS remains storage optimal (Maximum Distance Separable, or MDS). It requires no extra disk space compared to standard RS codes. By linking stripes, the system can use data from one stripe to help recover another, reducing the total data transferred during single-block failures—which account for 98.08% of all recovery operations.

Key Results and Impact

  • Network Reduction: Piggybacked-RS codes theoretically reduce disk and network traffic for recovery by 30%.
  • Real-world Savings: Based on Facebook measurements, this translates to a reduction of 50 Terabytes of cross-rack traffic per day.
  • Reliability: These codes maintain the same fault tolerance as standard RS codes, surviving up to 4 simultaneous failures in a (10, 4) configuration.
  • Performance: Reducing data volume directly translates to faster recovery times, improving the Mean Time to Data Loss (MTTDL).

Limitations and Future Work

While Piggybacked-RS reduces data volume, it may require connecting to more nodes simultaneously. In Facebook's architecture, data volume is the primary bottleneck, but this trade-off might differ elsewhere. At the time of publication, HDFS implementation was underway, with estimated performance gains based on production measurements. Future work involves refining the mathematical construction for arbitrary parameters to broaden the applicability of this storage-efficient, network-friendly solution.

Summary updated

BibTeX
@inproceedings{rashmi2013solution,
  author = {K. V. Rashmi and Nihar B. Shah and Dikang Gu and Hairong Kuang and Dhruba Borthakur and Kannan Ramchandran},
  title = {{A Solution to the Network Challenges of Data Recovery in Erasure-coded Distributed Storage Systems: A Study on the Facebook Warehouse Cluster}},
  booktitle = {HotStorage},
  year = {2013},
}
Figure