Sibyl: Forecasting Time-Evolving Query Workloads
Hanxian Huang, Tarique Siddiqui, Rana Alotaibi et al. · Proceedings of the ACM on Management of Data · 2024
Database systems often rely on historical query traces to perform workload-based performance tuning. However, real production workloads are time-evolving, making historical queries ineffective for optimizing future workloads. To address this challenge, we propose SIBYL, an end-to-end machine learning-based framework that accurately forecasts a sequence of future queries, with the entire query statements, in various prediction windows. Drawing insights from real-workloads, we propose template-based featurization techniques and develop a stacked-LSTM with an encoder-decoder architecture for accurate forecasting of query workloads. We also develop techniques to improve forecasting accuracy over large prediction windows and achieve high scalability over large workloads with high variability in arrival rates of queries. Finally, we propose techniques to handle workload drifts. Our evaluation on four real workloads demonstrates that SIBYL can forecast workloads with an 87.3% median F1 score, and can result in 1.7× and 1.3× performance improvement when applied to materialized view selection and index selection applications, respectively.
Cited by 14 works. doi:10.1145/3639308 Open-access PDF
Authors
- Hanxian Huang
- Tarique Siddiqui
- Rana Alotaibi
- Carlo Curino
- Jyoti Leeka
- Alekh Jindal
- Jishen Zhao
- Jesús Camacho-Rodríguez
- Yuanyuan Tian
References
- Knapsack Problems: Algorithms and Computer Implementations
- Approximate entropy as a measure of system complexity.
- Forecasting at Scale
- Ensemble learning: A survey
- Robust Estimation of a Location Parameter
- On training the recurrent neural network encoder-decoder for large vocabulary end-to-end speech recognition
- Multi-dimensional clustering
- SnipSuggest
- Query-based Workload Forecasting for Self-Driving Database Management Systems
- Apache Calcite