Skip to main content
QUICK REVIEW

[Paper Review] Aryl: An Elastic Cluster Scheduler for Deep Learning

Jiamin Li, Hong Xu|arXiv (Cornell University)|Feb 16, 2022
Cloud Computing and Resource ManagementComputer Science5 citations
TL;DR

Aryl is a novel cluster scheduler that enables elastic capacity loaning from idle inference GPU clusters to training jobs, using dynamic scaling and intelligent preemption heuristics to reduce queuing time and improve utilization. It achieves 1.53x lower average queuing time and 1.50x lower job completion time compared to baseline schedulers, with up to 26.9% higher cluster utilization in large-scale simulations.

ABSTRACT

Companies build separate training and inference GPU clusters for deep learning, and use separate schedulers to manage them. This leads to problems for both training and inference: inference clusters have low GPU utilization when the traffic load is low; training jobs often experience long queueing time due to lack of resources. We introduce Aryl, a new cluster scheduler to address these problems. Aryl introduces capacity loaning to loan idle inference GPU servers for training jobs. It further exploits elastic scaling that scales a training job's GPU allocation to better utilize loaned resources. Capacity loaning and elastic scaling create new challenges to cluster management. When the loaned servers need to be returned, we need to minimize the number of job preemptions; when more GPUs become available, we need to allocate them to elastic jobs and minimize the job completion time (JCT). Aryl addresses these combinatorial problems using principled heuristics. It introduces the notion of server preemption cost which it greedily reduces during server reclaiming. It further relies on the JCT reduction value defined for each additional worker for an elastic job to solve the scheduling problem as a multiple-choice knapsack problem. Prototype implementation on a 64-GPU testbed and large-scale simulation with 15-day traces of over 50,000 production jobs show that Aryl brings 1.53x and 1.50x reductions in average queuing time and JCT, and improves cluster usage by up to 26.9% over the cluster scheduler without capacity loaning or elastic scaling.

Motivation & Objective

  • To address low GPU utilization in inference clusters during off-peak hours and long training job queuing times due to resource scarcity.
  • To enable dynamic sharing of idle inference GPU servers with training workloads through capacity loaning.
  • To minimize job preemption cost during server reclaiming and reduce job completion time (JCT) when scaling elastic training jobs.
  • To design a scheduling system that handles heterogeneous GPU availability and variable job resource demands efficiently.
  • To improve overall cluster utilization while maintaining low queuing delays for training jobs.

Proposed method

  • Introduces capacity loaning, allowing idle inference GPU servers to be temporarily allocated to training jobs during low-traffic periods.
  • Employs elastic scaling, enabling training jobs to dynamically increase or decrease GPU worker counts based on available resources.
  • Uses a two-phase scheduling approach: first allocating base (inelastic) resource demands, then scaling out elastic jobs using a multiple-choice knapsack formulation to minimize JCT.
  • Applies a knapsack-based heuristic with dependent item values to minimize preemption cost during server reclaiming, prioritizing jobs with lower preemption impact.
  • Uses best-fit-decreasing policy for worker-server placement to reduce fragmentation across heterogeneous GPU servers.
  • Leverages running time predictions and validates robustness under estimation errors, maintaining gains even with up to 60% incorrect predictions.

Experimental results

Research questions

  • RQ1Can idle inference GPU clusters be effectively loaned to training jobs without compromising inference service quality?
  • RQ2How can preemption cost be minimized when reclaiming loaned servers during traffic spikes?
  • RQ3What is the optimal strategy for allocating additional GPUs to elastic training jobs to minimize job completion time?
  • RQ4How does the scheduler handle the coexistence of inelastic and elastic jobs with heterogeneous GPU availability?
  • RQ5How robust is the scheduler to inaccuracies in job running time estimation?

Key findings

  • Aryl reduces average queuing time by 1.53x and job completion time by 1.50x compared to a baseline scheduler without capacity loaning or elastic scaling.
  • Cluster utilization improves by up to 26.9% in large-scale simulations using 15-day traces of over 50,000 production jobs.
  • Even with 60% incorrect running time predictions (within 25% error margin), Aryl maintains a 1.76x improvement in queuing delay over the baseline.
  • The scheduler’s knapsack-based preemption heuristic effectively reduces preemption cost during server reclaiming, minimizing job disruption.
  • The multiple-choice knapsack formulation for scaling elastic jobs successfully minimizes JCT in practice, often solvable via dynamic programming.
  • The system demonstrates robustness to prediction errors and maintains significant performance gains under realistic workload conditions.

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.