Skip to main content
QUICK REVIEW

[Paper Review] Do the Hard Stuff First: Scheduling Dependent Computations in Data-Analytics Clusters

Robert Grandl, Srikanth Kandula|arXiv (Cornell University)|Apr 25, 2016
Cloud Computing and Resource ManagementComputer Science46 references4 citations
TL;DR

DagPS is a novel scheduler for data-analytics clusters that improves job completion times and cluster utilization by prioritizing hard-to-schedule tasks—such as long-running or poorly packable ones—early in a multi-dimensional resource-time space. By using a search-based approach to select optimal troublesome tasks and a deadlock-free placement algorithm, DagPS reduces job completion times by over 30% for half of the jobs in production traces, outperforming state-of-the-art schedulers while enforcing fairness within configurable bounds.

ABSTRACT

We present a scheduler that improves cluster utilization and job completion times by packing tasks having multi-resource requirements and inter-dependencies. While the problem is algorithmically very hard, we achieve near-optimality on the job DAGs that appear in production clusters at a large enterprise and in benchmarks such as TPC-DS. A key insight is that carefully handling the long-running tasks and those with tough-to-pack resource needs will produce good-enough schedules. However, which subset of tasks to treat carefully is not clear (and intractable to discover). Hence, we offer a search procedure that evaluates various possibilities and outputs a preferred schedule order over tasks. An online component enforces the schedule orders desired by the various jobs running on the cluster. In addition, it packs tasks, overbooks the fungible resources and guarantees bounded unfairness for a variety of desirable fairness schemes. Relative to the state-of-the art schedulers, we speed up 50% of the jobs by over 30% each.

Motivation & Objective

  • To address the challenge of scheduling complex, multi-resource, dependent workloads in data-analytics clusters where traditional schedulers underperform due to resource fragmentation and complex DAG structures.
  • To improve job completion times and cluster utilization in production environments where job DAGs exhibit high variability in resource demands, runtime, and dependency complexity.
  • To design a scalable, online scheduler that maintains fairness and low unfairness while handling concurrent jobs, dynamic arrivals, and multiple objectives such as packing efficiency and latency reduction.
  • To develop a practical scheduling solution that is nearly optimal for real-world DAGs despite the NP-hard nature of the general DAG scheduling problem.

Proposed method

  • DagPS uses a two-component architecture: a batch scheduler that builds an optimized schedule for each DAG by placing 'troublesome' tasks—those with long runtimes or difficult resource profiles—first in a d+1 dimensional resource-time space.
  • It employs a performant search procedure to evaluate multiple task ordering heuristics (e.g., OPC, OCP, COP, POC) and selects the most compact placement among them to avoid suboptimal schedules.
  • The placement algorithm ensures deadlock avoidance by carefully sequencing the placement of remaining tasks (parents, children, others) in a way that respects data dependencies and maximizes resource utilization.
  • An online coordination component reconciles conflicting objectives—such as fairness (e.g., DRF) and packing efficiency—by following the majority objective while bounding unfairness within a user-configurable threshold.
  • It uses a performance score combining resource fit, locality, and SRPT-like urgency to guide task selection on each machine, with fairness counters and overbooking penalties to balance load and prevent starvation.
  • The system is implemented in Apache YARN and Tez, and uses efficient data structures (e.g., time- and resource-indexed hash maps) to accelerate region selection in the resource-time space.

Experimental results

Research questions

  • RQ1Can a scheduler that prioritizes hard-to-schedule tasks in a multi-resource, time-aware space achieve near-optimal performance on real-world data-analytics DAGs?
  • RQ2How can a scalable, online scheduler handle complex DAGs with inter-task dependencies, multi-resource demands, and fairness constraints without incurring high scheduling overhead?
  • RQ3What is the impact of scheduling strategy—particularly early placement of long-running or poorly packable tasks—on job completion time and cluster utilization in production workloads?
  • RQ4To what extent can a hybrid scheduling approach combining offline optimization with online coordination outperform existing online heuristics in real-world cluster traces?

Key findings

  • DagPS reduces job completion time by over 30% for half of the jobs in a 200-server cluster when evaluated on traces from a large enterprise production cluster.
  • The scheduler achieves near-optimal performance on real-world DAGs, with a median job depth of seven and over a thousand tasks, despite the NP-hard nature of the general DAG scheduling problem.
  • By placing troublesome tasks first, DagPS effectively reduces resource fragmentation and enables better packing of remaining tasks into available holes in the resource-time space.
  • The reconciliation heuristic limits unfairness to a configurable bound while still allowing deviations from strict fairness when multiple objectives (e.g., packing, latency) conflict.
  • The system scales effectively: 24% of production DAGs can be split into four or more ordered partitions, reducing scheduling complexity, and stage-level reasoning further reduces the number of tasks to schedule.
  • Empirical evaluation on 20,000 DAGs from production traces confirms that DagPS significantly outperforms state-of-the-art schedulers in both job completion time and resource utilization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.