Intelligent Task Scheduling for Microservices via A3C-Based Reinforcement Learning

Yan Wang, Tong B. Tang, Zhou Fang, Yi Deng, Yifei Duan2025

Abstract

This paper presents an adaptive resource scheduling framework for microservice architectures using the Asynchronous Advantage Actor-Critic (A3C) reinforcement learning algorithm. By employing parallel worker threads, the proposed system addresses the complexities of fluctuating resource demands and service dependencies. Experimental results using the Google Cluster Trace dataset demonstrate that the A3C-based approach significantly reduces task latency and improves scheduling success rates compared to traditional and standard deep RL methods.

Introduction

In modern cloud computing, microservice architectures have become the standard due to their modularity and scalability. However, managing these systems is increasingly difficult as resource demands fluctuate wildly and services are often entangled through complex dependencies. Traditional scheduling methods, such as static round-robin or simple heuristic rules, are often too brittle to adapt to sudden traffic spikes or multi-tenant resource competition. This research seeks to implement an "intelligent" and "online-adjustable" scheduling system that can learn optimal CPU and memory allocation in real-time.

Methodology

The authors model the scheduling problem as a Markov Decision Process (MDP) and solve it using the Asynchronous Advantage Actor-Critic (A3C) algorithm. The MDP framework defines the "State" as resource consumption and request loads, the "Action" as the specific resource allocation strategy, and the "Reward" as a multi-factor score based on latency, utilization, and task completion.

The A3C architecture utilizes multiple worker threads to interact with the environment independently, updating a global policy and value function.

Key technical components include:

  • Asynchronous Parallelism: Unlike standard Reinforcement Learning (RL), A3C uses multiple worker threads that interact with independent versions of the environment. This diversity in exploration helps the model avoid local optima and speeds up convergence.
  • Actor-Critic Architecture: The "Actor" suggests scheduling actions while the "Critic" evaluates them. This separation allows the model to effectively manage the high-dimensional state space of complex microservice clusters.

Experimental Setup

The study utilizes the Google Cluster Trace dataset, a massive real-world dataset containing job scheduling logs from a Google data center over 29 days. The dataset includes records for over 700,000 tasks, tracking requested versus actual CPU/memory usage, task priorities, and timestamps. The authors segmented these logs into time windows to create the trajectories needed for training the RL model.

Key Results

The proposed A3C method was compared against static polling, priority-based scheduling, Q-learning, and DQN. The results, summarized in the table below, show that the A3C model (referred to as "Ours") outperformed all other methods across key performance indicators.

Performance comparison of the proposed A3C method against traditional and standard RL scheduling strategies.
  • Latency: The A3C model achieved an average task delay of 78.6 ms, nearly half the delay of static polling (134.7 ms).
  • Success Rate: It reached a scheduling success rate of 88.2%, the highest among all tested methods.
  • Efficiency: The model converged in just 732 seconds, significantly faster than standard Q-learning (1,243 seconds).
  • Robustness: Stress tests indicated that the A3C model maintained consistent performance even under high concurrent loads, whereas traditional methods saw stability plunge.

Conclusion and Future Work

The A3C-based reinforcement learning approach provides a robust solution for the dynamic challenges of microservice scheduling. By leveraging asynchronous parallelism, the system achieves proactive adaptation to environmental changes. Future work will focus on integrating structural awareness of service dependency graphs and exploring multi-objective optimization to balance speed with energy consumption.

Summary updated

BibTeX
@misc{wang2025intelligent,
  author = {Yan Wang and Tong B. Tang and Zhou Fang and Yi Deng and Yifei Duan},
  title = {{Intelligent Task Scheduling for Microservices via A3C-Based Reinforcement Learning}},
  year = {2025},
  eprint = {2505.00299},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.00299},
}
Figure