Abstract
Distributed computing enables large-scale computation tasks to be processed over multiple workers in parallel. However, the randomness of communication and computation delays across workers causes the straggler effect, which may degrade the performance. Coded computation helps to mitigate the straggler effect, but the amount of redundant load and their assignment to the workers should be carefully optimized. In this work, we consider a multi-master heterogeneous-worker distributed computing scenario, where multiple matrix multiplication tasks are encoded and allocated to workers for parallel computation. The goal is to minimize the communication plus computation delay of the slowest task. We propose worker assignment, resource allocation and load allocation algorithms under both dedicated and fractional worker assignment policies, where each worker can process the encoded tasks of either a single master or multiple masters, respectively. Then, the non-convex delay minimization problem is solved by employing the Markov's inequality-based approximation, Karush-Kuhn-Tucker conditions, and successive convex approximation methods. Through extensive simulations, we show that the proposed algorithms can reduce the task completion delay compared to the benchmarks, and observe that dedicated and fractional worker assignment policies have different scopes of applications.
Introduction
In distributed computing, large-scale tasks like matrix multiplication are partitioned across multiple worker nodes to leverage parallelism. A significant bottleneck in these systems is the straggler effect, where a few slow workers—due to hardware heterogeneity, varying workloads, or network congestion—dictate the overall task completion time. While coded computation (e.g., MDS coding) introduces redundancy to mitigate stragglers, existing literature often overlooks the impact of communication delays and the complexities of multi-master environments where workers are shared.
System Model and Problem Formulation
The authors propose a framework for a multi-master, heterogeneous-worker environment. In this setup, multiple masters distribute encoded sub-tasks to a shared pool of workers. The total delay is modeled as the sum of communication and computation times, both following shifted exponential distributions to account for a minimum processing floor and a random tail.
Two primary worker assignment policies are explored:
- Dedicated Assignment: Each worker is assigned to serve only one master.
- Fractional Assignment: Workers can split their computational resources and communication bandwidth among multiple masters simultaneously.
Optimization Methodology
The core challenge lies in solving a non-convex delay minimization problem, which is NP-hard. The authors utilize several sophisticated techniques:
- Markov’s Inequality Approximation: To handle complex probability-based constraints, the authors approximate the objective by minimizing the expected delay, which simplifies the optimization landscape.
- Successive Convex Approximation (SCA): This iterative approach is used to refine task load allocation, moving the solution toward the theoretical optimum.
- Greedy Heuristics: For the discrete worker assignment problem, the authors developed greedy algorithms to achieve high-quality results efficiently.
Experimental Validation
The framework was evaluated using both synthetic simulations and real-world data.
- Synthetic Simulations: Tested across small-scale (2 masters, 5 workers) and large-scale (4 masters, 50 workers) scenarios.
- Amazon EC2 Traces: Real-world computation delays were sampled from t2.micro and c5.large instances. Over $10^6$ matrix-vector multiplications were performed to generate a realistic dataset, validating the statistical models used in the study.
Key Insights and Results
- Significant Delay Reduction: The proposed algorithms achieved up to an 82% reduction in task completion delay compared to uncoded methods and a 30% reduction compared to state-of-the-art coded schemes that ignore heterogeneity.
- Communication Matters: The study demonstrates that ignoring network latency leads to suboptimal load balancing, especially in bandwidth-constrained environments.
- Policy Trade-offs: Fractional assignment excels when a few "super-workers" can be shared effectively. In contrast, dedicated assignment is nearly as efficient in large-scale systems while being significantly simpler to implement.
- Predictability: The SCA-enhanced algorithms resulted in a "thinner tail" for the delay distribution, making system performance more predictable and robust against extreme straggler events.
Conclusion and Future Work
This work provides a robust framework for optimizing coded computation in shared, heterogeneous environments. Future research directions include addressing non-orthogonal communication channels (interference), accounting for encoding/decoding overhead at the master nodes, and exploring multi-message communication where workers transmit partial results.
Summary updated