TL;DR
TempoScale is a novel cloud workload prediction framework that combines short-term volatility analysis with long-term trend forecasting to optimize Kubernetes auto-scaling. By decomposing complex workload signals and routing them to specialized deep learning models, TempoScale reduces prediction error (MSE) by up to 30.43% and slashes average service response times by up to 31.15% compared to state-of-the-art baselines.
What Problem Does This Paper Address?
Managing resources in cloud-native environments is a constant balancing act. Allocate too few resources, and you violate Service Level Objectives (SLOs), causing slow response times for users; allocate too many, and you waste money.
While Kubernetes offers default auto-scaling mechanisms, they are primarily reactive—adjusting resources only after a threshold is breached. This creates a dangerous lag during sudden workload spikes. To fix this, engineers use predictive scaling. However, existing prediction models suffer from a fundamental trade-off:
- Short-term models (like Gated Recurrent Units or GRUs) are great at capturing sudden, instantaneous fluctuations but degrade quickly over longer horizons.
- Long-term models (like Transformers) excel at capturing daily or weekly periodic trends but smooth over critical short-term spikes.
The authors address this gap by creating an integrated architecture that handles both time scales simultaneously.
Methods
TempoScale introduces a three-step pipeline to predict workloads and make scaling decisions:
- Signal Decomposition: The framework uses the Complete Ensemble Empirical Mode Decomposition with Adaptive Noise (CEEMDAN) algorithm. CEEMDAN breaks down the raw, noisy CPU utilization time-series data into distinct components: an Intrinsic Mode Function (IMF) representing long-term trends, an IMF representing short-term fluctuations, and a Residual Component (RC).
- Parallel Specialized Prediction:
- The short-term fluctuation IMF is fed into a Short-Term Prediction Model consisting of a 1D CNN paired with a two-layer GRU network.
- The long-term trend IMF is routed to a Long-Term Prediction Model based on the Informer architecture (an efficient Transformer variant utilizing ProbSparse self-attention to keep computational overhead low).
- MLP Fusion & Scaling: The intermediate outputs from both models, along with the original Residual Component, are fed into a Multilayer Perceptron (MLP). The MLP fuses these features to generate the final long-term workload prediction, which is then used by a custom Kubernetes scheduler to perform vertical container scaling.
Datasets
The authors evaluated TempoScale using real-world production data:
- Alibaba Cluster Traces (2018 & 2022): Specifically, the
MSResourcedataset from 2022, which contains CPU and memory utilization data for over 470,000 containers across 28,000 microservices over a 13-day period. The authors focused on a highly variable microservice namedMS_10489. - Sock Shop: A standard open-source microservice demo application used to simulate live cluster workloads on a physical Kubernetes testbed based on the Alibaba trace profiles.
Key Insights and Ideas
- The Crossover Point: The authors empirically demonstrated that for short forecast horizons (less than 8 time steps of 30 seconds each), short-term GRU models significantly outperform Transformers. Beyond 8 steps, Transformers dominate. TempoScale's core "aha!" insight is that you shouldn't choose between them; you should decompose the signal so each model handles its ideal horizon.
- Feature Separation via CEEMDAN: Raw cloud workloads look like chaotic noise. Decomposing the signal into clean mathematical modes (as seen in the figure below) makes it vastly easier for deep learning networks to extract meaningful patterns without getting confused by overlapping frequencies.
Key Results
TempoScale was compared against three baseline methods: ARIMA (traditional statistical), esDNN (GRU-based short-term), and Informer (Transformer-based long-term).
- Prediction Accuracy: TempoScale achieved the lowest Mean Square Error (MSE) and Mean Absolute Percentage Error (MAPE). It outperformed ARIMA by 30.43%, esDNN by 18.78%, and Informer by 5.80% in MSE.
- System Performance: When deployed in a live Kubernetes cluster under simulated workloads, TempoScale reduced the average response time to 76.09 ms—outperforming ARIMA by 31.15%, esDNN by 15.81%, and Informer by 5.58%.
- SLO Preservation: With a strict response-time SLO target of 200 ms, TempoScale kept the violation rate to just 4.58%, compared to ARIMA (10.69%), Informer (8.61%), and esDNN (8.06%), all while operating under a similar resource budget.
Limitations and Future Work
While TempoScale shows impressive performance gains, the authors note a few limitations:
- Isolation of Microservices: The framework currently evaluates and scales each microservice independently. It does not account for the complex invocation dependency graphs typical of large microservice architectures (where a slowdown in Service A cascades into Service B).
- Lack of Emergency Fallbacks: The system relies heavily on the accuracy of the predictor and lacks a robust reactive safety net for handling edge-case anomalies where predictions fail completely.
Future work will focus on integrating microservice dependency mapping and exploring tighter integrations with enterprise cloud management platforms.
Summary updated