TL;DR
Hestia is a hyperthread-level scheduling framework designed to mitigate performance interference in co-located cloud microservices. By leveraging a hierarchical self-attention model to predict CPU utilization inflation caused by resource contention, Hestia reduces tail latency by up to 80% and improves cluster-wide CPU efficiency by nearly 10% compared to state-of-the-art core-level schedulers.
What Problem Does This Paper Address?
In modern cloud environments, providers co-locate multiple latency-sensitive (LS) microservices on the same physical server to maximize resource utilization. However, these services often compete for shared hardware resources—like L1/L2 caches, the last-level cache (LLC), and memory bandwidth. This competition leads to "performance interference," where a "noisy neighbor" can cause unpredictable spikes in request latency for other services.
The challenge is exacerbated by Simultaneous Multithreading (SMT), or hyperthreading, where two logical threads share the execution units of a single physical core. Existing schedulers typically operate at the coarse granularity of whole cores or servers, failing to account for the asymmetric and non-linear contention that happens when two threads share a core (Sharing-Core, or SC) or a socket (Sharing-Socket, or SS).
Methods
Hestia introduces a three-stage pipeline to enable fine-grained, interference-aware placement:
- Topology-Aware Selector: Unlike traditional schedulers that just look for free cores, Hestia identifies candidate sets of hyperthreads (HTs). It prioritizes socket locality and tries to avoid sharing physical cores between different services unless necessary, narrowing the search space while respecting hardware topology.
- Attention-Guided Prediction Model: This is the core of Hestia. It uses a hierarchical self-attention mechanism to model how co-located instances affect each other.
- An SC Encoder captures contention between HT pairs on the same core (affecting L1/L2).
- An SS Encoder aggregates these core-level features to model socket-wide contention (affecting LLC and memory).
- The model takes service identity (via embeddings), request rates (RPS), and CPU models as inputs to predict the resulting CPU utilization.
- Interference Scoring Mechanism: Hestia calculates an "interference score" for each candidate placement by comparing the predicted utilization under co-location versus isolated execution. The scheduler then selects the placement with the lowest aggregate contention risk.
Datasets
The authors conducted an extensive analysis using production traces from a large-scale cluster:
- Scale: 32,408 LS instances across 3,132 dual-socket servers.
- Diversity: 146 distinct microservices, covering over 93% of the cluster's total CPU quota.
- Evaluation: The framework was tested via large-scale data-driven simulations and a real-world deployment on a 19,760-core production cluster subset hosting over 2,000 instances.
Key Insights and Ideas
- CPU Utilization as a Latency Proxy: The authors discovered a strong monotonic relationship between CPU utilization inflation and request latency. When a service fights for cache or memory, its CPU utilization rises (due to stalls and retries) even if it isn't doing more "useful" work. This makes utilization a robust, early-warning signal for performance degradation.
- The Contention Hierarchy: Interference is not uniform. SC neighbors (sharing a core) cause the most severe degradation by stressing L1/L2 pipelines. SS neighbors (sharing a socket) cause moderate degradation via LLC and memory bandwidth contention.
- Asymmetry is Key: Contention is often bidirectional but highly asymmetric. One service might be extremely sensitive to cache misses, while its neighbor is "heavy-footed" but insensitive. Hestia’s attention mechanism is specifically designed to learn these relative influence patterns.
Key Results
- Latency Reduction: In production deployment, Hestia reduced the 95th-percentile (P95) tail latency by 21.68% to 24.6%. In simulations, reductions reached up to 80% for certain services.
- Cluster Efficiency: By placing services more intelligently, Hestia reduced total cluster CPU consumption by 9.75% in simulations and 2.3% in the real production environment under identical workloads.
- Superiority over SOTA: Hestia outperformed five representative schedulers (including Paragon and RCPU) by up to 30.65% in service performance metrics.
Limitations and Future Work
- Global Rescheduling Constraints: In the production test, the authors could only apply Hestia to "victim" instances (those already showing 20%+ utilization spikes) because global rescheduling of all containers is too disruptive for live traffic. A more proactive, full-cluster implementation remains a future goal.
- Cold-Start for New Services: The model relies on historical traces and embeddings. While it generalizes well, brand-new microservices with entirely unique behaviors might require a brief profiling period before Hestia can place them optimally.
- Broader Resource Scope: While Hestia focuses on CPU, cache, and memory, extending the attention model to include network I/O and disk contention could provide an even more holistic view of cloud interference.
Summary updated