Abstract
The exponential growth of data necessitates distributed storage models, such as peer-to-peer systems and data federations. While distributed storage can reduce costs and increase reliability, the heterogeneity in storage capacity, I/O performance, and failure rates of storage resources makes their efficient use a challenge. Further, node failures are common and can lead to data unavailability and even data loss. Erasure coding is a common resiliency strategy implemented in storage systems to mitigate failures by striping data across storage locations. However, erasure coding is computationally expensive and existing systems do not consider the heterogeneous resources and their varied capacity and performance when placing data chunks. We tackle the challenges of using erasure coding with distributed and heterogeneous nodes, aiming to store as much data as possible, minimize encoding and decoding time, and meeting user-defined reliability requirements for each data item. We propose two new dynamic scheduling algorithms, D-Rex LB and D-Rex SC, that adaptively choose erasure coding parameters and map chunks to heterogeneous nodes. D-Rex SC achieves robust performance for both storage utilization and throughput, at a higher computational cost, while D-Rex LB is faster but with slightly less competitive performance. In addition, we propose two greedy algorithms, GreedyMinStorage and GreedyLeastUsed, that optimize for storage utilization and load balancing, respectively. Our experimental evaluation shows that our dynamic schedulers store, on average, 45% more data items without significantly degrading I/O throughput compared to state-of-the-art algorithms, while GreedyLeastUsed is able to store 21% more data items while also increasing throughput.
Introduction
Distributed storage systems—like peer-to-peer networks or data federations—often rely on Erasure Coding (EC) to ensure data integrity against drive failures. EC works by splitting data into $K$ data chunks and adding $P$ parity chunks; the original file can be reconstructed as long as any $K$ chunks are available.
However, most current systems assume homogeneous storage nodes. In practice, distributed systems often comprise a mix of hardware (e.g., SSDs vs. HDDs) with varying speeds, capacities, and failure rates. Static EC configurations (fixed $K$ and $P$) struggle in these heterogeneous environments, often bottlenecking on the slowest nodes, underutilizing large drives, or failing to meet specific reliability needs for diverse data types.
The D-Rex Framework
The authors introduce D-Rex (Dynamic Resilience Extension), a framework that treats reliability as a user-defined target (e.g., a 99.99% survival probability over one year).
To meet these targets across diverse hardware, D-Rex employs four algorithms:
- GreedyMinStorage: Minimizes parity space overhead.
- GreedyLeastUsed: Prioritizes load balancing by selecting nodes with the most free space.
- D-Rex LB (Load Balancing): A low-complexity algorithm using a "balance penalty" to prevent single-node bottlenecks.
- D-Rex SC (System Capacity): A sophisticated approach using linear regression to predict I/O times and an exponential "saturation cost" function to avoid overfilling nodes. It selects optimal configurations from a Pareto front, balancing throughput, storage cost, and system health.
Experimental Evaluation
D-Rex was evaluated using a custom C-based simulator and validated on the Chameleon Cloud infrastructure. Four diverse datasets were used: MEVA (video clips), Sentinel-2 (satellite imagery), SWIM (HDFS traces), and IBM COS (object storage). Storage nodes were modeled using real-world performance and failure statistics from Backblaze hard drive reports to ensure realistic heterogeneity.
Key Insights
A critical trade-off exists in EC: increasing the number of chunks ($K$) reduces storage overhead but increases the computational time for encoding and decoding. D-Rex SC explicitly models this cost.
Furthermore, D-Rex avoids the "Saturation Trap." Simply filling the largest drives first can leave the system without enough free nodes to handle future data requiring high $K+P$ configurations. D-Rex SC's exponential penalty for nodes approaching capacity preserves system "maneuverability." By allowing users to define reliability targets, the system can optimize costs by placing less critical data on cheaper, less reliable hardware.
Results
- Capacity Gains: D-Rex SC and LB stored an average of 45% and 31% more data, respectively, than static configurations used by HDFS or Gluster.
- Throughput: The
GreedyLeastUsedvariant stored 21% more data while increasing throughput, demonstrating that optimized placement can overcome hardware bottlenecks. - Resilience: In 70-day failure simulations, D-Rex algorithms retained significantly more data items due to their ability to dynamically adjust parity.
- Real-World Validation: On Chameleon Cloud, D-Rex SC and LB were 21% and 19% faster than static HDFS-style coding as node counts increased.
Conclusion
While D-Rex SC introduces some computational overhead in the scheduler, this is negligible compared to data transfer times. Future work includes developing a meta-scheduler to automatically choose between LB and SC algorithms and integrating D-Rex into production-grade systems like Gluster.
Summary updated