Joint Latency and Cost Optimization for Erasure-coded Data Center Storage

Yu Xiang, Tian Lan, Vaneet Aggarwal, Yih-Farn Robin ChenIEEE/ACM Trans. Networking 2014 · DOI

Abstract

Modern distributed storage systems offer large capacity to satisfy the exponentially increasing need of storage space. They often use erasure codes to protect against disk and node failures to increase reliability, while trying to meet the latency requirements of the applications and clients. This paper provides an insightful upper bound on the average service delay of such erasure-coded storage with arbitrary service time distribution and consisting of multiple heterogeneous files. Not only does the result supersede known delay bounds that only work for a single file or homogeneous files, it also enables a novel problem of joint latency and storage cost minimization over three dimensions: selecting the erasure code, placement of encoded chunks, and optimizing scheduling policy. The problem is efficiently solved via the computation of a sequence of convex approximations with provable convergence. We further prototype our solution in an open-source cloud storage deployment over three geographically distributed data centers. Experimental results validate our theoretical delay analysis and show significant latency reduction, providing valuable insights into the proposed latency-cost tradeoff in erasure-coded storage.

Introduction: The Latency-Cost Dilemma

Erasure coding, such as Maximum Distance Separable (MDS) codes, has become the industry standard for high-efficiency data redundancy. Unlike simple mirroring, which multiplies storage costs, erasure coding splits a file into $k$ blocks and encodes them into $n$ chunks, requiring only any $k$ of $n$ chunks to reconstruct the original data. While this significantly reduces storage overhead, it introduces a complex "latency entanglement" problem in multi-tenant environments.

In a typical data center, hundreds of heterogeneous files with varying sizes and access patterns share the same physical infrastructure. Increasing redundancy for one file to improve its retrieval speed can inadvertently congest the servers hosting other files. Previous research often simplified this by assuming homogeneous systems or single-file scenarios. This paper addresses the messy reality of heterogeneous storage where multiple files compete for resources.

Heterogeneous erasure-coded storage system where multiple files (A and B) share physical nodes, creating latency entanglement.

Methodology: Analytical Bounds and Joint Optimization

The authors propose a two-phase approach to optimize performance:

  1. A New Latency Bound: Moving beyond the often inaccurate assumption of exponential server response times, the authors model each storage node as an M/G/1 queue. By applying order statistics, they derive a tight analytical upper bound for the average service delay—specifically, the time required to retrieve the $k$-th chunk needed for reconstruction.
  2. Joint Latency-Cost Minimization (JLCM): They formulate an optimization problem across three critical dimensions:
  3. Erasure Code Selection: Determining the optimal $(n, k)$ parameters for each file.
  4. Chunk Placement: Strategically deciding which nodes store which encoded pieces.
  5. Scheduling Policy: Determining which requests in the buffer get processed first.

To solve this traditionally difficult mixed-integer problem, the authors employ a sequence of convex approximations. By smoothing the problem with a parameter $\beta$, they transform it into a tractable form solvable via standard gradient descent methods.

Experimental Validation

The theoretical framework was validated using a real-world prototype built on Tahoe-LAFS, an open-source distributed filesystem, and the zfec erasure coding library. The infrastructure consisted of 12 storage nodes deployed as virtual machines across three geographically distinct data centers in New Jersey (NJ), Texas (TX), and California (CA).

The experimental prototype setup across three geographically distributed data centers, showing inter-site bandwidth and latency.

The workload involved 1,000 heterogeneous files (50MB to 200MB) with varying request arrival rates to simulate diverse traffic conditions.

Key Insights and Results

  • The "Exponential" Myth: Empirical data confirmed that real-world server response times do not follow an exponential distribution. Models relying on this assumption yielded poor performance predictions compared to the authors' M/G/1-based approach.
  • Probabilistic Scheduling: The study highlights that "probabilistic dispatch" provides a mathematically sound and high-performing upper bound for latency, simplifying global scheduling.
  • Superior Accuracy: The proposed latency bound is significantly tighter than previous benchmarks (e.g., Joshi et al.), particularly in high-traffic regimes where older models often predicted infinite delay.
  • Performance Gains: The JLCM approach consistently outperformed "oblivious" strategies. The optimization algorithm itself proved efficient, typically converging in fewer than 250 iterations.

Conclusion

This research provides a robust framework for balancing storage efficiency and retrieval speed. While the current model focuses on storage costs, future work could incorporate network transfer costs and handle dynamic "churn" where files are frequently added or modified.

Summary updated

BibTeX
@article{xiang2014joint,
  author = {Yu Xiang and Tian Lan and Vaneet Aggarwal and Yih-Farn Robin Chen},
  title = {{Joint Latency and Cost Optimization for Erasure-coded Data Center Storage}},
  journal = {IEEE/ACM Trans. Networking},
  year = {2014},
  doi = {10.1109/tnet.2015.2466453},
}
Figure