An Advanced Reinforcement Learning Framework for Online Scheduling of Deferrable Workloads in Cloud Computing

Hang Dong, Liwen Zhu, Zhao Shan, Bo Qiao, Fangkai Yang, Si Qin, Chuan Luo, Qingwei Lin, Yuwen Yang, Gurpreet Virdi, Saravan Rajmohan, Dongmei Zhang, Thomas MoscibrodaarXiv 2024 · DOI

Abstract

Cloud service providers face a constant challenge in balancing hardware utilization with user experience. This paper introduces OSDEC (Online Scheduling for DEferrable jobs in Cloud), a reinforcement learning framework designed to optimize the scheduling of deferrable workloads. By utilizing a Transformer-based architecture and incorporating auxiliary prediction tasks, OSDEC effectively manages variable job pools and unpredictable capacity, outperforming traditional heuristics and standard RL methods in both resource utilization and reward maximization.

Introduction

In the cloud computing landscape, maximizing Return on Investment (ROI) requires high hardware utilization. However, immediate job execution is critical for user satisfaction. To reconcile these goals, providers offer "deferrable" virtual machine products—jobs that are cost-effective for users but allow for flexible start times within a defined window. Scheduling these jobs is an "online" challenge: new requests arrive continuously, and available capacity fluctuates based on high-priority on-demand tasks.

The OSDEC Framework

The proposed OSDEC framework treats scheduling as a sequential decision-making process. Unlike static scheduling, OSDEC must account for a dynamic pool of waiting jobs and the temporal dependencies of resource availability.

Figure 1: Overview of the OSDEC framework across sequential time steps, illustrating the flow from job encoding to scheduling and reward calculation.

Architecture and Decision Making

OSDEC employs a Transformer-based architecture to navigate the complex state space of cloud scheduling. Unlike traditional neural networks that require fixed-length inputs, the Transformer allows the model to process an unordered set of job requests (historical, current, and future) and capture the relationships between them.

Figure 2: The OSDEC model architecture, featuring a Transformer Encoder to process job sets and dual heads for job scoring and state value estimation, integrated with auxiliary tasks.

Key components include:

  • Transformer-Based Encoding: The encoder handles a variable number of jobs, attending to the most critical requests regardless of submission time.
  • Confidence-Based Scheduling: To avoid an exploding action space, the model outputs continuous confidence scores. The system then sorts jobs by these scores and packs them into available capacity greedily.
  • Proximal Policy Optimization (PPO): OSDEC uses PPO for stable and efficient policy training.

Enhancing Representation through Auxiliary Tasks

A core innovation of OSDEC is the integration of auxiliary tasks, often referred to as the "secret sauce" of the framework. The model is trained on four side-tasks: predicting next-step capacity, average core requirements, average job duration, and potential capacity violation penalties. These tasks help the model build a richer internal representation of the system's dynamics, essentially teaching it to "foresee" future environment states and make more informed scheduling decisions.

Experimental Results

The framework was evaluated using a 14-day real-world workload trace from Microsoft Azure. OSDEC demonstrated significant improvements over baseline methods like FIFO, SJF, and standard PPO:

  • Superior Reward: OSDEC achieved a total reward of 3475.37, significantly higher than the best heuristic (FIFO at 3408.82).
  • Highest Utilization: It reached a utilization score of 3761.24, outperforming all other methods while maintaining a stable and low time-delay penalty.
  • Training Stability: The inclusion of auxiliary signals led to faster convergence and lower variance compared to standard RL approaches.

Conclusion

OSDEC demonstrates that reinforcement learning, when augmented with Transformer architectures and auxiliary predictive tasks, can significantly improve cloud resource management. Future work will explore multi-resource scheduling (RAM, GPU) and "Safe RL" techniques to provide strict guarantees against capacity violations in production environments.

Summary updated

BibTeX
@misc{dong2024advanced,
  author = {Hang Dong and Liwen Zhu and Zhao Shan and Bo Qiao and Fangkai Yang and Si Qin and Chuan Luo and Qingwei Lin and Yuwen Yang and Gurpreet Virdi and Saravan Rajmohan and Dongmei Zhang and Thomas Moscibroda},
  title = {{An Advanced Reinforcement Learning Framework for Online Scheduling of Deferrable Workloads in Cloud Computing}},
  year = {2024},
  eprint = {2406.01047},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.01047},
}
Figure