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.
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.
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