Skip to main content
QUICK REVIEW

[Paper Review] Deep Reinforcement Agent for Scheduling in HPC

Yuping Fan, Zhiling Lan|arXiv (Cornell University)|Feb 11, 2021
Cloud Computing and Resource ManagementComputer Science18 references9 citations
TL;DR

This paper proposes DRAS, a deep reinforcement learning-based scheduling agent for high-performance computing (HPC) that uses a hierarchical neural network to dynamically optimize job scheduling by integrating resource reservation and backfilling. DRAS automatically learns and adapts to workload changes, reducing average job wait time by up to 45% compared to existing heuristic and optimization methods, while preventing job starvation and maintaining low runtime overhead.

ABSTRACT

Cluster scheduler is crucial in high-performance computing (HPC). It determines when and which user jobs should be allocated to available system resources. Existing cluster scheduling heuristics are developed by human experts based on their experience with specific HPC systems and workloads. However, the increasing complexity of computing systems and the highly dynamic nature of application workloads have placed tremendous burden on manually designed and tuned scheduling heuristics. More aggressive optimization and automation are needed for cluster scheduling in HPC. In this work, we present an automated HPC scheduling agent named DRAS (Deep Reinforcement Agent for Scheduling) by leveraging deep reinforcement learning. DRAS is built on a novel, hierarchical neural network incorporating special HPC scheduling features such as resource reservation and backfilling. A unique training strategy is presented to enable DRAS to rapidly learn the target environment. Once being provided a specific scheduling objective given by system manager, DRAS automatically learns to improve its policy through interaction with the scheduling environment and dynamically adjusts its policy as workload changes. The experiments with different production workloads demonstrate that DRAS outperforms the existing heuristic and optimization approaches by up to 45%.

Motivation & Objective

  • Address the limitations of static, manually tuned scheduling heuristics in complex, dynamic HPC environments.
  • Reduce job wait times and prevent starvation in HPC workloads with highly variable and unpredictable workloads.
  • Automate policy learning and adaptation in cluster scheduling without human intervention.
  • Enable long-term performance optimization by learning from historical job traces and adapting to changing system loads.
  • Achieve high system utilization while balancing fairness, job prioritization, and resource efficiency.

Proposed method

  • Design a hierarchical deep reinforcement learning agent (DRAS) with a two-level neural network: level-1 selects jobs for immediate or reserved execution, and level-2 selects backfilled jobs.
  • Incorporate HPC-specific scheduling features—resource reservation and backfilling—directly into the reinforcement learning formulation.
  • Develop a three-phase training strategy that progresses from simple to complex workload scenarios, enabling fast and stable convergence.
  • Train DRAS using historical job traces from production HPC systems (Cori and Theta) to learn system- and workload-specific scheduling policies.
  • Use proximal policy optimization (PPO) and deep Q-learning (DQL) as training algorithms to optimize cumulative reward based on scheduling objectives.
  • Dynamically adjust network parameters during inference to adapt to changing system loads, ensuring robust performance under workload surges.

Experimental results

Research questions

  • RQ1Can a deep reinforcement learning agent effectively learn to optimize HPC scheduling beyond static heuristics and optimization methods?
  • RQ2How well does DRAS prevent job starvation while maintaining high system utilization and low average job wait time?
  • RQ3To what extent can DRAS adapt its scheduling policy in response to dynamic workload changes without manual re-tuning?
  • RQ4How does DRAS compare to existing methods like FCFS, BinPacking, and Decima in terms of performance under real-world HPC workloads?
  • RQ5What is the runtime overhead of DRAS, and is it feasible for online deployment in production HPC environments?

Key findings

  • DRAS reduces average job wait time by up to 45% compared to existing heuristic and optimization methods on real HPC traces from Cori and Theta.
  • DRAS significantly outperforms FCFS, Decima-PG, and Optimization in reducing wait times for ready and backfilled jobs, especially under high load.
  • The hierarchical design enables DRAS to reserve large jobs effectively, preventing starvation—jobs that would otherwise wait 2X to 10X longer under other methods.
  • DRAS dynamically adjusts its policy during workload surges, achieving greater wait time reduction than static methods, which rely on fixed policies.
  • DRAS-PG and DRAS-DQL both exhibit low runtime overhead, with inference times under 2 seconds per update on a standard personal computer, making them suitable for online deployment.
  • The three-phase training process enables DRAS to converge quickly and generalize well across diverse workload patterns, including rare and complex scenarios.

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.