TD3-Sched: Learning to Orchestrate Container-based Cloud-Edge Resources via Distributed Reinforcement Learning

Shengye Song, Minxian Xu, Kan Hu, Wenxia Guo, Kejiang YearXiv 2025

TL;DR

TD3-Sched is a novel distributed reinforcement learning scheduler designed to optimize resource allocation in containerized cloud-edge environments. By leveraging the Twin Delayed Deep Deterministic Policy Gradient (TD3) algorithm, it achieves continuous, fine-grained control over CPU and memory allocation, cutting latency by up to 38.6% while maintaining an impressive 99.53% Service Level Objective (SLO) compliance rate under heavy workloads.

What Problem Does This Paper Address?

Edge computing brings computation closer to the user to support latency-sensitive applications, but it introduces a stark architectural divide: resource-constrained edge nodes sit on one side, and resource-abundant but high-latency cloud data centers sit on the other. Managing containerized microservices across this heterogeneous landscape is incredibly difficult.

Traditional Kubernetes schedulers excel at initial container placement but lack the sophistication needed for dynamic, real-time resource adjustment under fluctuating workloads. Meanwhile, existing machine learning approaches often oversimplify the problem by focusing on a single objective (like energy efficiency) or relying on discrete action spaces that lack precision. The authors tackle this multi-objective optimization challenge—balancing latency minimization, resource efficiency, and migration costs—without introducing centralized performance bottlenecks.

Methods

The authors formulate the cloud-edge resource scheduling problem as a Markov Decision Process (MDP) and introduce TD3-Sched, a distributed reinforcement learning framework built on top of Kubernetes.

1. State and Action Spaces

  • State Space ($4N$-dimensional): Tracks real-time metrics for each service, including CPU utilization, memory utilization, response latency, and Queries Per Second (QPS).
  • Action Space ($2N$-dimensional): Outputs continuous values for precise CPU and memory allocation adjustments, avoiding the limitations of coarse, discrete steps.

2. The TD3 Core

Standard Actor-Critic algorithms like DDPG often suffer from overestimation bias, leading to unstable training and poor scheduling decisions. TD3-Sched addresses this by employing:

  • Dual Q-networks (Twin Critics): Takes the minimum value between two critic networks to prevent overly optimistic value estimations.
  • Target Policy Smoothing: Adds clipped noise to target actions to prevent the policy from exploiting sharp peaks in the value function.

3. System Architecture and Workflow

The framework seamlessly extends Kubernetes by splitting the process into distinct stages, integrating state monitoring via Prometheus and executing resource updates through the Kubernetes API.

Fig. 1: TD3-Sched System Architecture. The system integrates edge nodes with cloud data centers through a reinforcement learning-based scheduling framework, enabling intelligent resource management across heterogeneous distributed environments.

The continuous closed-loop workflow operates in six steps, moving from raw data collection to feature engineering, TD3 core processing, and action execution.

Fig. 2: TD3-Sched System Workflow. The system implements a continuous learning process that monitors system conditions, processes state information, makes intelligent decisions through reinforcement learning, executes resource allocations, and learns from feedback to improve future decisions.

Datasets

The framework was evaluated on a physical 8-node Kubernetes cluster (4 resource-constrained edge nodes and 4 high-capacity cloud nodes). The evaluation utilized:

  • SockShop: A realistic, production-grade microservices application consisting of 8 interconnected services (frontend, orders, payment, etc.).
  • Alibaba Cluster Traces (2022): Real-world microservice workload traces used to simulate dynamic, unpredictable user request patterns under both normal (100 req/sec) and high-load (300 req/sec) scenarios.

Key Insights and Ideas

  • Continuous Control is Mandatory: Discretizing resource allocation (e.g., choosing between 10 fixed levels of CPU) creates jagged performance steps. Continuous control allows the scheduler to find the exact "sweet spot" for resource provisioning.
  • Stability Prevents SLO Catastrophes: In live cloud systems, training instability isn't just a mathematical nuisance—it translates directly to dropped requests and violated user agreements. TD3's stabilization mechanisms are what make reinforcement learning viable for production infrastructure here.
  • Decoupled Training and Execution: By separating heavy model training from localized inference, edge nodes can execute scheduling actions in near-real-time without being bogged down by model updates.

Key Results

TD3-Sched was benchmarked against Deep Q-Networks (DQN), Deep Deterministic Policy Gradient (DDPG), and BaseK (the default rule-based Kubernetes scheduler).

  • Latency Reduction: Under normal loads, TD3-Sched achieved an average latency of 75.2ms, outperforming DQN (91.6ms) and BaseK (122.5ms)—a 17.9% to 38.6% reduction. Under high loads, it maintained a low latency of 126.6ms, while baselines spiked up to 185ms.
  • SLO Compliance: With an HTTP response target of 150ms, TD3-Sched limited SLO violations to a mere 0.47% under high loads. In comparison, DDPG failed catastrophically with a 5.44% violation rate due to training instability.
  • Resource Efficiency: TD3-Sched demonstrated up to 48.6% higher resource efficiency than BaseK under normal loads, proving it doesn't just throw excess hardware at the latency problem; it optimizes what it has.

Limitations and Future Work

While TD3-Sched marks a significant step forward, the authors note a few areas for improvement:

  • Fixed Reward Weights: The multi-objective reward function relies on manually tuned, static weights ($\alpha, \beta, \lambda, \mu$). Future iterations could explore adaptive weight adjustments that shift priorities dynamically based on system state.
  • Resource Diversity: The current model only orchestrates CPU and memory. Extending the framework to handle network bandwidth and GPU allocation is crucial for modern AI-heavy edge workloads.
  • Scale: The system was validated on an 8-node cluster; testing its scalability across thousands of distributed edge nodes remains an open task.

Summary updated

BibTeX
@misc{song2025td,
  author = {Shengye Song and Minxian Xu and Kan Hu and Wenxia Guo and Kejiang Ye},
  title = {{TD3-Sched: Learning to Orchestrate Container-based Cloud-Edge Resources via Distributed Reinforcement Learning}},
  year = {2025},
  eprint = {2509.18957},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.18957},
}
Figure