Abstract
Distributed Deep Neural Network (DNN) training in multi-tenant GPU clusters often suffers from resource underutilization due to static resource allocation. This paper presents EDL, a system enabling low-overhead dynamic scaling (elasticity). By implementing stop-free scaling and a dynamic data pipeline, EDL reduces reconfiguration pause times from minutes to seconds, allowing jobs to exploit transient idle resources and significantly reducing average Job Completion Time (JCT).
Introduction
In large-scale multi-tenant environments, users typically request a fixed number of GPUs for the duration of a training job. However, cluster loads are dynamic, leading to frequent, short-lived idle periods. Traditional "stop-resume" elasticity mechanisms—which involve checkpointing and restarting—are too slow to capture these transient opportunities, as the overhead often exceeds the duration of the idle window. EDL addresses this by making scaling nearly instantaneous, turning transient idle periods into valuable compute time.
System Architecture and Methods
EDL (Elastic Deep Learning) acts as a coordination layer between the cluster scheduler and deep learning frameworks like TensorFlow.
The system achieves near-instantaneous scaling through three primary mechanisms:
- Stop-Free Scaling (Scale-out): New GPUs perform execution context preparation (CUDA loading, graph building) in the background while existing workers continue training. A brief sub-second pause is used only for final weight synchronization.
- Graceful Exit (Scale-in): Workers can be removed at mini-batch boundaries without downtime by instantly updating the communication ring.
- Dynamic Data Pipeline: EDL manages data chunks on-demand, ensuring consistent dataset coverage regardless of changes in the worker pool size, preventing data loss or duplication during fluctuations.
Key Insights and Motivation
Analysis of production traces from a 2,300-GPU cluster reveals that a significant portion of GPU idle time consists of very short intervals.
As shown in the trace data, nearly 40% of idle intervals last less than 4 minutes. By reducing scaling overhead, EDL transforms these "micro-idles" into productive compute time. Furthermore, EDL identifies that the primary bottleneck in scaling is not model synchronization, but rather the execution context preparation, which EDL successfully hides behind ongoing training.
Key Results
Experimental results demonstrate that EDL reduces scaling pause times to 0.18–1.8 seconds, a massive improvement over the 30–70 seconds required by traditional methods. In simulations using Microsoft Philly trace data, an EDL-enhanced scheduler ("Elastic-Tiresias") achieved an 89.5% reduction in average JCT compared to standard schedulers. Additionally, EDL facilitates 80% faster performance profiling and rapid recovery from hardware stragglers, restoring throughput in under 15 seconds.
Limitations and Future Work
While EDL provides significant gains, it introduces new sources of randomness in data processing order which may affect strict reproducibility. Current coordination uses TCP, and the authors are investigating RDMA to further reduce latency. Additionally, while the API is simple, it requires minor modifications to existing training scripts to wrap optimizers and datasets.
Summary updated