NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

VMAgent: A Practical Virtual Machine Scheduling Platform

Junjie Sheng, Shengliang Cai, Haochuan Cui, Wenhao Li, Yun Hua, Bo Jin, Wenli Zhou, Yiqiu Hu, Lei Zhu, Qian Peng, Hongyuan Zha, Xiangfeng Wang

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:

  1. Simulator: The heart of the platform, abstracting three realistic scenarios:
  2. Fading: Allocation-only requests.
  3. Recovering: Both allocation and release requests, creating a challenging, non-stationary environment.
  4. Expansion: Simulates a growing cluster where new PMs are added over time, facilitating research into "life-long" RL.
  5. 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.
  6. Visualizer: Provides heatmaps of cluster load and resource trends, enabling researchers to perform side-by-side comparisons of different policies.
VMAgent platform overview showing the interaction between the simulator, scheduler, and visualizer.

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.

Statistical analysis of the Huawei-East-1 dataset, showing VM lifetimes, proportions, and resource trends.

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

BibTeX
@inproceedings{sheng2022vmagent,
  author = {Junjie Sheng and Shengliang Cai and Haochuan Cui and Wenhao Li and Yun Hua and Bo Jin and Wenli Zhou and Yiqiu Hu and Lei Zhu and Qian Peng and Hongyuan Zha and Xiangfeng Wang},
  title = {{VMAgent: A Practical Virtual Machine Scheduling Platform}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.24963/ijcai.2022/860},
}
Figure