Abstract
Achieving resource efficiency while preserving end-user experience is non-trivial for cloud application operators. As cloud applications progressively adopt microservices, resource managers are faced with two distinct levels of system behavior: end-to-end application latency and per-service resource usage. Translating between the two levels, however, is challenging because user requests traverse heterogeneous services that collectively (but unevenly) contribute to the end-to-end latency. We present Autothrottle, a bi-level resource management framework for microservices with latency SLOs (service-level objectives). It architecturally decouples application SLO feedback from service resource control, and bridges them through the notion of performance targets. Specifically, an application-wide learning-based controller is employed to periodically set performance targets -- expressed as CPU throttle ratios -- for per-service heuristic controllers to attain. We evaluate Autothrottle on three microservice applications, with workload traces from production scenarios. Results show superior CPU savings, up to 26.21% over the best-performing baseline and up to 93.84% over all baselines.
Introduction
In the modern cloud landscape, microservices are the building blocks of scalable applications. However, managing their resources efficiently while maintaining strict end-to-end latency Service Level Objectives (SLOs) is a complex balancing act. Cloud operators aim to minimize CPU usage to reduce costs, but must ensure that user experience remains unaffected.
Traditional resource management approaches struggle with microservice architectures due to several factors: the "correlation gap" where per-service metrics like CPU utilization do not align well with global latency; the delayed effect of resource adjustments as they propagate through service chains; and the sheer complexity of managing thousands of heterogeneous services. Autothrottle addresses these issues by introducing a decoupled, bi-level control architecture.
The Autothrottle Architecture
Autothrottle employs a bi-level design that separates global application-wide feedback from local per-service resource control. This separation allows the system to handle macro-level performance goals while reacting quickly to micro-level resource demands.
The architecture consists of two main components:
- Tower (Global Controller): A centralized component that monitors application-wide workload (Requests Per Second) and end-to-end latency. It uses contextual bandits—a lightweight online reinforcement learning method—to periodically set "performance targets" for individual services.
- Captain (Local Controller): Deployed with each microservice, the Captain handles high-frequency adjustments to CPU quotas (via Linux cgroups) to meet the targets set by the Tower.
A key innovation is the use of the CPU throttle ratio as the bridging metric. The authors found that the fraction of time a service is throttled by the OS scheduler correlates much more strongly with end-to-end latency than simple CPU utilization, making it a more reliable target for resource control.
Evaluation Methodology
The framework was evaluated using three representative microservice benchmarks: Train-Ticket (68 services), Hotel-Reservation, and Social-Network. These applications were subjected to four real-world workload patterns derived from production traces at Puffer, Google, and Twitter.
These patterns—Diurnal, Constant, Noisy, and Bursty—test the system's ability to handle both predictable cycles and sudden, unpredictable spikes in traffic. Additionally, a long-term 21-day study was conducted using production traces from a global cloud provider to assess real-world reliability.
Key Results and Insights
Autothrottle demonstrated significant improvements in both resource efficiency and SLO adherence:
- Resource Savings: The system achieved up to 26.21% more CPU savings than the best-performing baseline and up to 93.84% over other standard baselines.
- SLO Reliability: In the 21-day production study, Autothrottle reduced hourly SLO violations by 13.2x compared to the default Kubernetes autoscaler while still reclaiming an average of 12.1 CPU cores.
- Robustness: The bi-level approach proved resilient under "Bursty" and "Noisy" workloads, where traditional heuristic controllers often failed to maintain latency targets or over-provisioned resources excessively.
The success of Autothrottle highlights that decoupling the "what" (performance targets) from the "how" (resource knobs) is essential for managing distributed microservices. Furthermore, using throttling as a primary signal provides a more direct and less noisy indicator of resource bottlenecks than utilization.
Conclusion and Future Work
Autothrottle provides a practical and scalable framework for harvesting idle CPU resources in microservice environments without compromising user experience. While currently focused on vertical CPU scaling, future iterations could expand to include memory and storage management, as well as horizontal scaling strategies. Addressing the initial "exploration" phase required for the online learning component to reach peak effectiveness remains a key area for future optimization.
Summary updated