Skip to main content
QUICK REVIEW

[Paper Review] Learning Scheduling Algorithms for Data Processing Clusters

Hongzi Mao, Malte Schwarzkopf|arXiv (Cornell University)|Oct 3, 2018
Cloud Computing and Resource ManagementComputer Science71 references50 citations
TL;DR

Decima uses reinforcement learning with a graph neural network to learn workload-specific DAG scheduling policies for data processing clusters, outperforming hand-tuned heuristics on Spark with significant speedups under heavy load.

ABSTRACT

Efficiently scheduling data processing jobs on distributed compute clusters requires complex algorithms. Current systems, however, use simple generalized heuristics and ignore workload characteristics, since developing and tuning a scheduling policy for each workload is infeasible. In this paper, we show that modern machine learning techniques can generate highly-efficient policies automatically. Decima uses reinforcement learning (RL) and neural networks to learn workload-specific scheduling algorithms without any human instruction beyond a high-level objective such as minimizing average job completion time. Off-the-shelf RL techniques, however, cannot handle the complexity and scale of the scheduling problem. To build Decima, we had to develop new representations for jobs' dependency graphs, design scalable RL models, and invent RL training methods for dealing with continuous stochastic job arrivals. Our prototype integration with Spark on a 25-node cluster shows that Decima improves the average job completion time over hand-tuned scheduling heuristics by at least 21%, achieving up to 2x improvement during periods of high cluster load.

Motivation & Objective

  • Motivate the need for workload-specific scheduling to improve cluster utilization and reduce job completion times.
  • Develop a machine-learning-based scheduler that automatically learns policies from workload data without human tuning.
  • Demonstrate scalable representations and RL training methods suitable for DAG-structured data processing workloads.

Proposed method

  • Represent DAG-structured jobs and cluster state with a graph neural network that produces embeddings used by a policy network.
  • Encode scheduling decisions as two-dimensional actions that select a stage to schedule and a parallelism limit for its job.
  • Train via policy gradient reinforcement learning with rewards tied to the high-level objective (e.g., minimize average JCT), using baselines to reduce variance.
  • Handle continuous stochastic job arrivals by episode design and feedback conditioning on actual arrival sequences, enabling training under streaming workloads.
  • Integrate Decima with Spark to schedule DAG stages and executor allocation on a 25-node cluster, evaluating against hand-tuned heuristics and existing policies.

Experimental results

Research questions

  • RQ1Can reinforcement learning learn workload-specific scheduling policies for DAG-structured data processing workloads?
  • RQ2How can graph neural networks be used to scale state representation for DAGs of arbitrary size and shape in scheduling decisions?
  • RQ3Can RL training handle continuous, stochastic job arrivals and still converge to effective policies?
  • RQ4What performance gains are achievable by Decima compared with traditional heuristics under varying cluster load and workload characteristics?
  • RQ5Is a job-level parallelism control sufficient to achieve near fine-grained scheduling performance while simplifying training?

Key findings

  • Decima improves average job completion time by at least 21% over hand-tuned scheduling heuristics on a 25-node Spark cluster.
  • During high cluster load, Decima achieves up to 2× improvement in JCT over existing heuristics.
  • In multi-resource scheduling (CPU and memory), Decima improves average JCT by 32–43% over prior schemes such as Graphene.
  • A scalable graph neural network design enables processing DAGs of arbitrary shapes and sizes for scheduling DAG stages and parallelism levels.
  • A set of RL training techniques enables learning policies that cope with unbounded stochastic job arrivals and streaming workloads.

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.