Abstract
This paper addresses the critical problem of resource allocation in Coded Distributed Computing (CDC) to minimize total execution time. By mathematically determining the optimal number of servers, task placements, and data shuffling schemes, the authors demonstrate that an asymmetric configuration—splitting nodes into "solvers" and "helpers"—outperforms traditional symmetric designs. Furthermore, they prove that adding servers beyond a specific threshold provides no additional speedup, establishing a fundamental limit on resource efficiency in both sequential and parallel MapReduce implementations.
Introduction
Modern data centers execute massive computation tasks using frameworks like Apache Spark or MapReduce, which typically operate in three phases: Map, Shuffle, and Reduce. As these computations scale, the Shuffle phase—where partially computed data is moved between nodes—often becomes a significant communication bottleneck.
Coded Distributed Computing (CDC) was recently proposed to mitigate this by redundantly computing Map tasks across multiple nodes. This redundancy enables coded multicasting during the Shuffle phase, effectively trading extra computation for reduced communication. This paper investigates the fundamental resource allocation question: given an abundance of nodes, what is the optimal number of servers and the best assignment of Map and Reduce tasks to minimize total execution time?
Methods
The authors model a general MapReduce-type framework with $N$ input files, $Q$ output functions, and $K$ servers. They formulate an optimization problem to minimize total execution time across three variables: the number of utilized servers ($K$), the placement of Map/Reduce tasks, and the data shuffling scheme. Two operational modes are analyzed:
- Sequential Implementation: Map, Shuffle, and Reduce phases occur consecutively.
- Parallel Implementation: The Shuffle phase overlaps with the Map phase.
To solve this, the authors propose a novel asymmetric task allocation and coded shuffling scheme. They derive a matching information-theoretic lower bound to prove that their scheme is strictly optimal, meaning no other configuration can achieve a faster execution time or use fewer servers for the same performance.
Key Insights and Ideas
The research yields several counterintuitive findings that challenge traditional symmetric distributed computing designs.
- Asymmetric Roles ("Solvers" vs. "Helpers"): Unlike traditional symmetric MapReduce designs, the optimal CDC configuration is asymmetric. Nodes are split into $Q$ "solvers" (performing Map, Shuffle, and Reduce) and $K-Q$ "helpers" (performing only Map functions and multicasting data).
- Separation of Concerns: In this optimal scheme, solvers do not multicast messages; helpers handle all shuffling. This allows Map tasks on solvers to be designed specifically to exploit multicast opportunities without encodability constraints.
- Diminishing Returns of Scale: Adding more servers beyond a specific threshold ($K^*$) does not further reduce execution time. The coded multicasting gain depends on files being mapped specifically on the $Q$ solvers; additional nodes do not improve this specific computation-communication tradeoff.
- The Balancing Act: The optimal redundancy factor $r^*$ is proportional to the square root of the ratio of communication cost to computation cost ($\sqrt{c_s/c_m}$).
Key Results
The authors derived exact mathematical formulas for the minimum execution times ($T^*_{sequential}$, $T^*_{parallel}$) and the minimum server counts ($K^*_{sequential}$, $K^*_{parallel}$) required to achieve them. A major finding is that while standard uncoded schemes have constant execution times as the number of Reduce functions ($Q$) grows, the optimal coded scheme's execution time scales as $\Theta(Q^{-1/2})$, offering a massive theoretical speedup for large-scale distributed jobs.
Conclusion
While the current model assumes homogeneous servers, it provides a rigorous foundation for optimizing distributed computing. Future work includes extending this framework to heterogeneous clusters with varying node speeds and applying these schemes to real-world algorithms like TeraSort to validate empirical gains.
Summary updated