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

Autonomous Resource Management in Microservice Systems via Reinforcement Learning

Yujun Zou, Nia Qi, Yingnan Deng, Zhihao Xue, Ming Gong, Wuyang ZhangarXiv 2025 · DOI

TL;DR

This paper introduces a reinforcement learning (RL) approach to autonomously manage resources in microservice systems. By learning optimal scheduling and allocation strategies through interaction with the environment, the method significantly improves response times, throughput, and resource utilization, offering a flexible solution for dynamic cloud environments.

What Problem Does This Paper Address?

Modern software systems increasingly rely on microservice architectures, breaking down large applications into smaller, independent services. While this offers scalability and flexibility, it introduces significant challenges in efficiently managing resources (CPU, memory, storage) and data flow between these services. Traditional static resource allocation methods struggle to adapt to the dynamic and fluctuating demands of microservice environments, leading to issues like uneven resource distribution, high latency, and insufficient throughput. This paper tackles the critical need for an intelligent, adaptive system that can dynamically optimize resource scheduling and data flow to maintain high performance.

Methods

The core of this paper is a reinforcement learning-based agent designed to learn optimal resource scheduling and data flow strategies. The agent interacts with the microservice environment, observing its state (e.g., workload, resource usage) and taking actions (e.g., allocating resources, adjusting data paths). The agent's goal is to maximize a cumulative reward function, which is defined based on performance metrics like response time and resource utilization.

The paper proposes using either Q-learning or Deep Q-Networks (DQN) to optimize the agent's decision-making policy. Given the potentially large state and action spaces in microservice systems, DQN is highlighted as a more practical approach, using a neural network to approximate the Q-value function. This allows for effective learning and decision-making in high-dimensional environments. The method also incorporates experience replay and target networks to enhance learning stability and efficiency.

Datasets

The study utilizes a publicly available open-source "Cloud Resource Management dataset." This dataset contains multi-dimensional performance metrics from various cloud service instances, including CPU usage, memory consumption, network traffic, and storage requirements. It was collected over several months from multiple platforms, capturing real-world operational conditions and dynamic resource allocation patterns under diverse load scenarios. Each data entry includes timestamps, resource types, utilization statistics, requested processing capacity, current load, and response time.

Key Insights and Ideas

  • Adaptive Scheduling is Crucial: The paper strongly emphasizes that static scheduling methods are insufficient for the dynamic nature of microservice architectures. Reinforcement learning offers a powerful paradigm for creating systems that can adapt in real-time.
  • RL for Microservice Optimization: The application of RL to microservice resource management is presented as a promising solution to overcome limitations of traditional approaches, leading to significant performance gains.
  • Balancing Multiple Objectives: The proposed method can consider multiple objectives simultaneously (e.g., latency, throughput, resource utilization, cost), demonstrating its ability to achieve optimized resource scheduling in complex scenarios.
  • Robustness to Dynamic Environments: The RL agent's ability to adjust strategies in real-time allows it to maintain good system performance even when faced with dynamically changing load and resource availability.

Key Results

The experimental results demonstrate that the proposed RL-based model consistently outperforms several baseline approaches across key metrics:

  • Response Time: Achieved 120 ms, significantly lower than comparison models (e.g., AutoML at 180 ms), showing a 60 ms improvement over AutoML.
  • Throughput: Handled 950 requests per second, surpassing DeepRL (880) and AutoML (870).
  • Resource Utilization: Maintained 85% utilization, higher than AutoML's 75%.
  • Cost Efficiency: Achieved 92% cost efficiency, significantly higher than competitors.

The study also explored performance under varying loads and network delays:

  • Varying Loads: Efficiency was highest at low loads (92%) and gradually decreased under medium (85%), high (78%), and very high (72%) loads, indicating a trade-off as complexity increases.
  • Network Latency: Efficiency was highest at low latency (95% at 10 ms) and decreased as latency increased, showing a stable 75% efficiency even at 50 ms latency.
  • Multi-dimensional Resource Scheduling: The model showed highest efficiency for CPU utilization (94%), followed by memory (88%), storage (82%), and network resources (78%), highlighting its adaptability across different resource types.

Limitations and Future Work

  • Performance under Extreme Loads: While the model shows adaptability, its performance under very high load conditions (72% efficiency) suggests room for improvement.
  • High-Latency Constraints: The paper notes the need for further research to enhance scheduling performance under high-latency constraints, as efficiency drops significantly in such scenarios.
  • Future Directions: The authors suggest integrating RL with distributed computing, edge environments, and multi-objective optimization to meet the complex requirements of modern systems. Combining RL with deep learning and collaborative optimization strategies is also proposed for enhancing responsiveness and scalability in large-scale, heterogeneous infrastructures.

Summary updated

BibTeX
@misc{zou2025autonomous,
  author = {Yujun Zou and Nia Qi and Yingnan Deng and Zhihao Xue and Ming Gong and Wuyang Zhang},
  title = {{Autonomous Resource Management in Microservice Systems via Reinforcement Learning}},
  year = {2025},
  eprint = {2507.12879},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.12879},
}
Figure