Abstract
VMAgent is an open-source platform designed to bridge the gap between reinforcement learning (RL) research and real-world virtual machine (VM) scheduling. It provides a high-fidelity simulator based on actual Huawei Cloud data, pre-built baselines, and sophisticated visualization tools to help researchers develop and benchmark practical, industry-ready scheduling algorithms.
Introduction
Efficiently scheduling VMs onto physical machines (PMs) is a multi-billion dollar problem for cloud providers. The goal is to pack as many VMs as possible into a cluster to maximize resource utilization and revenue while respecting hardware constraints.
While classical heuristics (like "Best-Fit") are fast, they are often sub-optimal. Deep Reinforcement Learning (DRL) has shown promise in solving these types of combinatorial optimization problems, but researchers face a "reality gap." Most academic simulators are too simplistic, ignoring real-world complexities like dynamic resource release, hardware-specific architectures (e.g., Multi-NUMA), and cluster expansion. VMAgent provides the realistic environment needed to move DRL from the lab to the data center.
System Architecture
The VMAgent platform is built on three core components:
- Simulator: The heart of the platform, abstracting three realistic scenarios:
- Fading: Allocation-only requests.
- Recovering: Both allocation and release requests, creating a challenging, non-stationary environment.
- Expansion: Simulates a growing cluster where new PMs are added over time, facilitating research into "life-long" RL.
- Scheduler: Houses the scheduling logic, including pre-built baselines ranging from standard heuristics to advanced DRL algorithms like DQN, A2C, and SchedQ. It supports multi-processing for efficient training.
- Visualizer: Provides heatmaps of cluster load and resource trends, enabling researchers to perform side-by-side comparisons of different policies.
Dataset Analysis
The platform is powered by the Huawei-East-1 dataset, collected over one month from a production region of Huawei Cloud. It contains 241,743 requests across 15 different VM "flavors" (specific combinations of CPU and memory). This dataset provides realistic insights into VM lifetimes and resource request proportions, which are critical for training robust agents.
Evaluation and Key Results
The authors benchmarked several DRL methods against traditional heuristics (First-Fit and Best-Fit) across different scenarios. Key findings include:
- Superior Performance: In the "Fading" scenario, DRL methods like SchedQ achieved higher availability (~276 vs ~270 for Best-Fit).
- Robustness in Dynamic Scenarios: In the complex "Recovering" scenario, SchedQ significantly outperformed Best-Fit, achieving an availability score of 393.4 compared to 384.4.
- Hardware Awareness: By supporting Multi-NUMA configurations, VMAgent ensures that algorithms account for the physical reality that memory access isn't uniform across all CPUs in a server.
Conclusion
VMAgent addresses the "reality gap" in VM scheduling research by providing a high-fidelity, data-driven platform. While currently focused on CPU and memory, future iterations could incorporate more complex resource types like GPU or network bandwidth. The platform serves as a foundation for the community to explore multi-agent and hierarchical RL in massive-scale cloud environments.
Summary updated