Scheduling MapReduce Jobs Under Multi-round Precedences

Dimitris Fotakis, Ioannis Milis, Orestis Papadigenopoulos, Vasilis Vassalos, Georgios Zois

Abstract

Modern distributed computing often involves complex MapReduce workflows with multiple successive rounds of computation. This paper addresses the NP-hard problem of scheduling these multi-round jobs to minimize average weighted completion time. By introducing novel Linear Programming (LP) relaxations and approximation algorithms, the authors provide improved performance guarantees for both identical and unrelated processor environments. Empirical results demonstrate significant improvements over existing heuristics, bridging the gap between theoretical bounds and practical performance.

Introduction

While the classic MapReduce paradigm is often visualized as a single "Map" phase followed by a "Reduce" phase, real-world data processing—such as iterative graph algorithms or multi-stage data joins—is rarely that simple. These complex tasks require multiple rounds where the output of one reduction becomes the input for the next mapping. This introduces strict precedence constraints: a reduce task cannot start until all map tasks in its round are finished, and the next round’s map tasks cannot start until the previous round’s reduction is complete. Scheduling hundreds of such jobs to minimize the average weighted completion time is an NP-hard challenge that this paper addresses.

The Multi-Round MapReduce Model

The core difficulty in scheduling these jobs lies in the chain of dependencies. Each job $j$ consists of $r_j$ rounds. Within each round, there are map tasks followed by reduce tasks. The total length of the dependency chain for a job with $r_j$ rounds is $l_j = 2r_j - 1$.

Structure of a multi-round MapReduce job showing the sequence of map and reduce tasks across rounds.

The authors demonstrate that the approximation ratio of their algorithms is closely tied to $l_{max}$, the length of the longest chain of dependencies. Since most practical MapReduce jobs have a small, constant number of rounds, these algorithms remain highly efficient in practice.

Methodology

The authors approach the problem through the lens of theoretical approximation algorithms, primarily using Linear Programming (LP) relaxations.

  1. Interval-Indexed LPs: The time horizon is discretized into exponentially growing intervals. LPs are formulated to decide which tasks should fractionally complete in which interval, allowing for a manageable number of variables.
  2. Two-Resource List Scheduling: For environments with processors dedicated to either mapping or reducing (disjoint processors), a variant of Graham’s list scheduling is introduced. This ensures that processors do not sit idle unnecessarily despite strict dependencies.
  3. Refined Merging: For single-round cases, the authors improve upon previous "merge" techniques by using sophisticated midpoint calculations to interleave map and reduce schedules more efficiently, reducing wait times between phases.
  4. Unrelated Processor Modeling: To account for data locality, the authors use an "unrelated processors" model where processing times vary per task-processor pair, reflecting that tasks run faster on processors already holding the required data.

Key Results and Empirical Performance

The paper provides significantly tighter performance guarantees than previous state-of-the-art methods:

  • Identical Processors: Achieved a 4-approximation for indistinguishable processors and an 11-approximation for disjoint processors.
  • Single-Round Improvement: Improved the best-known guarantee for identical processors from a 12-approximation to an 8-approximation.
  • Unrelated Processors: Derived a 37.87-approximation for the single-round case, a significant leap over the previous 54-approximation.

In simulations with 30 processors and up to 50 jobs, the proposed "Algorithm 1" consistently outperformed the "Fast-MR" heuristic. Solutions were up to 28.4% better in multi-round scenarios and 36.7% better in single-round scenarios. Notably, while theoretical worst-case bounds are high, empirical performance was much closer to 2.5x–3.5x of the optimal, suggesting high robustness for real-world workloads.

Conclusion

This research fills a critical gap in distributed systems literature by addressing the multi-round reality of modern MapReduce workflows. By handling the entire chain of dependencies simultaneously through multi-round LP formulations, the authors achieve superior theoretical and practical results. Future work may explore the impact of task preemption, explicit communication costs between racks, and the computational efficiency of LPs for massive, real-time production clusters.

Summary updated

BibTeX
@inproceedings{fotakis2016scheduling,
  author = {Dimitris Fotakis and Ioannis Milis and Orestis Papadigenopoulos and Vasilis Vassalos and Georgios Zois},
  title = {{Scheduling MapReduce Jobs Under Multi-round Precedences}},
  booktitle = {Euro-Par},
  year = {2016},
  doi = {10.1007/978-3-319-43659-3\_16},
}
Figure