A Practical Algorithm Design and Evaluation for Heterogeneous Elastic Computing with Stragglers

Nicholas Woolsey, Joerg Kliewer, Rong-Rong Chen, Mingyue JiarXiv 2021

This paper addresses a critical bottleneck in cloud-based distributed computing: the unpredictable performance of virtual machines. Even when you rent identical instances on a platform like Amazon EC2, their actual processing speeds can vary significantly. When you add the fact that machines frequently join or leave the network (elasticity) and some may become unexpectedly slow (stragglers), traditional distributed computing methods often stall.

TL;DR

This paper introduces a new framework for Coded Storage Elastic Computing (CSEC) that simultaneously handles varying machine speeds and unexpectedly slow "straggler" nodes. By adaptively assigning tasks based on real-time speed measurements, the authors demonstrate a 30-40% performance improvement over existing state-of-the-art designs on Amazon EC2.

What Problem Does This Paper Address?

In large-scale distributed computing, two main issues degrade performance:

  1. Elasticity: Machines join and leave the network arbitrarily.
  2. Heterogeneity & Stragglers: Machines have different computing speeds, even with identical configurations. A single "straggler"—a node that is significantly slower than the rest—can delay the entire computation because the system must wait for the slowest result.

Existing solutions like Coded Storage Elastic Computing (CSEC) use Maximum Distance Separable (MDS) codes to handle elasticity, ensuring data is recoverable as long as a minimum number of machines ($L$) are available. However, previous CSEC designs either assumed all machines were the same speed (homogeneous) or didn't account for stragglers. This paper bridges that gap by designing a system that is both heterogeneous-aware and straggler-tolerant.

Methods

The authors propose a novel framework that optimizes computation assignments by treating the problem as a combinatorial optimization task. Key components include:

  • Straggler-Tolerant MDS Coding: They utilize MDS codes such that each row of a data matrix is stored across multiple machines. The computation is designed to be recoverable even if any subset of $S$ machines fails to respond.
  • Heterogeneous Load Balancing: Instead of assigning equal work to every node, the algorithm calculates an optimal "load vector." Faster machines are assigned a larger fraction of their local data to compute, while slower machines are assigned less.
  • Adaptive Speed Estimation: The system (detailed in Algorithm 1) measures the actual computation time of each worker in real-time and updates its speed estimates for the next iteration.
  • The Trade-off: The authors derive an analytical expression showing a fundamental trade-off: increasing straggler tolerance ($S$) inherently increases the minimum possible computation time ($c^*$), as more redundancy is required.

Datasets

The researchers evaluated their design using two representative machine learning and linear algebra applications on Amazon EC2:

  • Power Iteration: Used to find the largest eigenvalue of a dense $60,000 \times 60,000$ symmetric matrix.
  • Linear Regression: Solved via distributed gradient descent on a dataset with $200,000$ entries and $5,000$ features.

The hardware setup involved a mix of Amazon EC2 t2.large and t2.xlarge instances to simulate a realistic, heterogeneous environment.

Key Insights and Ideas

  • Configuration $\neq$ Performance: A key "aha moment" is the empirical proof that identical EC2 instances perform differently. As shown in the table below, the normalized speed of t2.large instances can vary from $0.48$ to $0.90$ in the same trial.
Table showing wide variance in normalized computation speeds for identical instance types.
  • Proactive vs. Reactive: Unlike standard CSEC which only reacts to nodes leaving, this framework proactively assigns less work to nodes it predicts will be slow, while still maintaining enough redundancy to ignore those that fall behind unexpectedly.
  • Efficiency through Redundancy: While adding straggler tolerance usually adds overhead, in a heterogeneous environment, it can actually speed up the system. By allowing the master node to ignore the absolute slowest nodes, the overall "finish line" is reached much faster.

Key Results

The experimental results on Amazon EC2 show significant gains:

  • Faster Convergence: In both Power Iteration and Linear Regression, the proposed heterogeneous CSEC design converged significantly faster than uncoded or homogeneous coded designs.
  • Performance Gains: For Power Iteration, the authors achieved a 40% gain over uncoded designs and a 30% gain over the previous state-of-the-art homogeneous CSEC design.
  • Robustness: The "Het. (with stragglers)" approach (dashed red lines in the figures below) shows that even when accounting for the overhead of straggler tolerance, the heterogeneous-aware assignment remains highly efficient.
Figure 1: Convergence of Power Iteration, showing the heterogeneous design (red) reaching lower error significantly faster than others.
Figure 2: Convergence of Linear Regression, mirroring the performance advantages seen in Power Iteration.

Limitations and Future Work

  • Predictability Assumption: The current adaptive algorithm assumes that machine speeds change relatively slowly (on the order of minutes). If machine performance were to fluctuate wildly every few seconds, the speed estimation might become inaccurate.
  • Task Complexity: The evaluation focused on matrix-vector multiplications. While these are the building blocks of many ML algorithms, future work could explore how this framework handles more complex, non-linear computational tasks.
  • Communication Overhead: While the paper focuses on computation time, the impact of communication latency in extremely large-scale clusters (thousands of nodes) remains an area for further exploration.

Summary updated

BibTeX
@misc{woolsey2021practical,
  author = {Nicholas Woolsey and Joerg Kliewer and Rong-Rong Chen and Mingyue Ji},
  title = {{A Practical Algorithm Design and Evaluation for Heterogeneous Elastic Computing with Stragglers}},
  year = {2021},
  eprint = {2107.08496},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.08496},
}
Figure