CORE: Augmenting regenerating-coding-based recovery for single and concurrent failures in distributed storage systems

Runhui Li, Jian Lin, Patrick P. C. Lee

TL;DR

CORE is a novel recovery system that enables distributed storage to handle multiple simultaneous node failures with significantly less network traffic than traditional methods. By layering a "virtual symbol" reconstruction technique over existing regenerating codes, CORE achieves up to a 3.4x throughput gain in recovery and drastically improves system reliability without requiring changes to how data is stored.

What Problem Does This Paper Address?

In massive distributed storage systems like those used by Google or Microsoft, node failures are a daily reality. To protect data, these systems use erasure codes (like Reed-Solomon). While erasure codes are storage-efficient, they are notoriously "expensive" to repair. To recover even a small amount of lost data from a failed node, a traditional system must download the equivalent of the entire original data object from surviving nodes.

Regenerating codes (specifically Minimum Storage Regenerating or MSR codes) were invented to solve this "repair bottleneck" by allowing nodes to send small, encoded fragments instead of raw data. However, most MSR codes were designed only for single-node failures. In large clusters, failures are often correlated or concurrent. When two or more nodes fail at once, existing systems usually fall back to the slow, bandwidth-heavy traditional recovery method. CORE aims to bring the bandwidth-saving benefits of regenerating codes to the world of concurrent failures.

Methods

The researchers developed CORE as a middle-layer that sits atop existing storage systems like Hadoop HDFS. Its brilliance lies in its "layered" approach: it doesn't invent a new code; it changes how we use existing ones.

  1. The Relayer Model: CORE uses a "relayer" (which could be a new node or a client) to coordinate recovery.
  2. Virtual Symbols: To recover $t$ failed nodes, CORE treats all but one of the failed nodes as "logical surviving nodes." It downloads "real" encoded symbols from actual survivors and then sets up a system of linear equations to solve for the "virtual" symbols that the failed nodes would have sent if they were still alive.
  3. Baseline vs. Virtual Patterns: For most failure patterns ("good" patterns), the equations are linearly independent and solvable. For the rare "bad" patterns (less than 2% of cases), CORE simply includes one additional surviving node in the recovery process to make the math work, still saving bandwidth compared to traditional methods.
  4. Pipelining: The implementation uses a multi-threaded pipeline (input, worker, and output threads) to parallelize data transfer and computation, ensuring that the CPU doesn't become a bottleneck while the network is busy.

Datasets

The authors evaluated CORE using a real-world prototype:

  • System: Built on Hadoop HDFS (v0.22.0) with the HDFS-RAID extension.
  • Testbed: A cluster of 20 storage nodes, each featuring a quad-core CPU, 8GB RAM, and 1Gb/s Ethernet.
  • Workload: For MapReduce testing, they used 10GB of plain text data sourced from the Gutenberg website to run standard WordCount jobs.

Key Insights and Ideas

  • Don't Reinvent the Wheel: Instead of proposing complex new MSR codes for multiple failures, CORE proves that you can "augment" existing single-failure codes (like Interference Alignment or Product-Matrix codes) to handle concurrent failures.
  • The Power of Linear Algebra: The "aha moment" is realizing that the encoding functions used for single-node repair can be inverted and combined into a system of equations to solve for multiple missing pieces simultaneously.
  • Reliability Boost: Because CORE makes recovery so much faster and less resource-intensive, the "window of vulnerability" (the time the system spends in a degraded state) is much smaller. This leads to a Mean-Time-To-Failure (MTTF) that is up to 26x longer than conventional systems.

Key Results

  • Bandwidth Savings: For a common (20,10) coding setup, CORE reduces recovery bandwidth by 36-64% compared to traditional erasure coding.
  • Throughput Gains: In experimental trials, CORE achieved recovery throughput gains of up to 3.4x for single failures and 2.3x for concurrent failures.
  • MapReduce Performance: When a node fails during a MapReduce job, the "degraded" map tasks (which must reconstruct data on the fly) ran 18-29% faster using CORE than with Reed-Solomon codes.
  • Minimal Overhead: The system maintains the performance of standard "striping" (initial data encoding) operations, with only a negligible 6.1% drop in throughput due to the more complex MSR math.

Limitations and Future Work

  • Redundancy Requirements: The current optimal MSR codes used by CORE generally require "double redundancy" (where the number of nodes $n$ is roughly twice the number of data chunks $k$). Extending this to lower-redundancy settings remains an open challenge.
  • Network Bottlenecks: While CORE excels in bandwidth-constrained environments, the authors note that in very high-speed networks, the computational overhead of encoding/decoding might eventually become the primary bottleneck.
  • Wide-Area Networks: The current prototype was tested on a local cluster. The authors suggest that the benefits of CORE would be even more pronounced in wide-area storage (across different data centers) where bandwidth is much more expensive and scarce.

Summary updated

BibTeX
@inproceedings{li2013core,
  author = {Runhui Li and Jian Lin and Patrick P. C. Lee},
  title = {{CORE: Augmenting regenerating-coding-based recovery for single and concurrent failures in distributed storage systems}},
  booktitle = {Msst},
  year = {2013},
  doi = {10.1109/msst.2013.6558428},
}
Figure