TL;DR
This paper introduces PASS, a novel predictive auto-scaling system for enterprise web applications. PASS tackles the challenge of maintaining Quality of Service (QoS) while optimizing resource costs by combining an adaptive ensemble prediction model (ELPA) with a log-based performance model and a reactive queuing theory-based scaler.
What Problem Does This Paper Address?
Managing large-scale enterprise web applications on auto-scaling infrastructure presents a dual challenge: ensuring consistent Quality of Service (QoS) and optimizing resource costs. Traditional auto-scaling methods often struggle with this. Firstly, reactive scaling based on current load can lead to temporary QoS degradation due to the "warm-up" time of new instances. This necessitates accurate workload prediction, but existing single prediction algorithms often lack the precision and robustness needed for diverse enterprise applications, especially those with "mutation features" (sudden traffic surges). Secondly, guaranteeing QoS while remaining cost-effective is difficult. Existing auto-scaling methods can be unsuitable for online environments, inadequately ensure QoS (particularly tail latency), or rely on inaccurate performance models.
Methods
The core of PASS is its Ensemble Learning-based Prediction Algorithm (ELPA). ELPA dynamically integrates and calibrates multiple prediction algorithms (both online and offline) based on the unique characteristics of an application's traffic. It uses an exponential weighted average to select the best performing model for current conditions and employs offline models specifically for "mutation features," with an added amplitude calibration mechanism to correct for deviations.
Complementing ELPA is a Log-based Performance Model. This model is constructed from historical logs of QPS, instance counts, and QoS metrics, avoiding the need for costly offline profiling. It determines the number of instances required to handle predicted QPS while ensuring QoS.
Finally, PASS incorporates a Reactive Strategy based on queuing theory (specifically the M/M/s model). This acts as a fallback to quickly address QoS violations caused by prediction inaccuracies or unexpected events, scaling out proactively to prevent issues.
Datasets
The paper utilizes data from over 200 real-world enterprise web services across eight business departments. This data, consisting of QPS time series, was collected from their private cloud platform. For evaluation, they selected 225 web-related applications, categorized by prediction difficulty (easy, medium, hard), and also used recorded traffic from representative applications to simulate real-world scenarios. No new benchmarks were introduced; instead, existing real-world enterprise data was used.
Key Insights and Ideas
- No One-Size-Fits-All Prediction: The study highlights that different prediction algorithms excel on different traffic patterns. This strongly supports the need for adaptive or ensemble approaches like ELPA.
- "Mutation Features" are Critical: Sudden traffic surges ("mutation features") are common in enterprise applications and pose a significant challenge for prediction and QoS. ELPA's ability to specifically handle these, using calibrated offline models, is a key differentiator.
- Offline Models Need Calibration: While offline models can capture "mutation features," they often suffer from "amplitude deviation." ELPA's amplitude calibration mechanism is crucial for making these predictions practical.
- Log-Based Performance Models are Viable: Building performance models from existing operational logs, rather than expensive offline profiling, is a practical and effective approach for enterprise environments.
- Hybrid Scaling is Necessary: Combining predictive scaling with a reactive fallback (like queuing theory) provides a robust solution that can handle both predictable load increases and unexpected events.
Key Results
- ELPA Outperforms SOTA: ELPA demonstrated superior prediction accuracy compared to individual SOTA prediction algorithms across various datasets and difficulty levels. In scenarios with "mutation features," ELPA achieved up to a 36.1% increase in predictive accuracy over the second-best model.
- PASS Improves QoS and Reduces Cost: PASS achieved the highest QoS guarantee rate across all tested scenarios, with an average increase of 5.54% over target tracking and 7.71% over AHPA. Simultaneously, it achieved the lowest average resource cost, with an 8.91% reduction compared to AHPA and 17.02% compared to target tracking.
- Significant Gains in Specific Scenarios: In challenging scenarios (e.g., Scenario 6 with multiple QoS indicators), PASS increased the QoS guarantee rate by up to 22.64% and reduced resource cost by up to 52.76%.
Limitations and Future Work
- Warm-up Time Impact: The paper notes that even with proactive scaling, the lack of pre-warming for application instances can still lead to temporary tail latency spikes. Future work could explore integrating pre-warming strategies.
- Adaptability of ELPA: While ELPA is designed to integrate SOTA algorithms, the paper doesn't extensively detail the process of adding new algorithms or the computational overhead of the ensemble selection.
- Generalizability of "Mutation Features": The definition and identification of "mutation features" are crucial. Further research could explore more sophisticated methods for detecting and characterizing these patterns across a wider range of application types.
- QoS Requirements Diversity: The paper acknowledges that QoS requirements are diverse. While PASS aims to handle this, further work could explore more granular and dynamic QoS management strategies.
Summary updated