Sibyl:预测时变查询工作负载
Sibyl: Forecasting Time-Evolving Query Workloads
AI总结:
针对真实生产环境中查询工作负载随时间演变导致历史查询失效的问题,提出基于机器学习的端到端框架SIBYL,利用基于模板的特征化和堆叠LSTM编码器-解码器架构准确预测未来查询,并有效处理工作负载漂移,在真实工作负载上取得87.3%中位F1分数及显著性能提升。
摘要:
数据库系统通常依赖历史查询轨迹来执行基于工作负载的性能调优。然而,真实的生产工作负载是随时间演变的,这使得历史查询在优化未来工作负载时变得无效。为了应对这一挑战,我们提出了SIBYL,这是一个基于机器学习的端到端框架,能够在各种预测窗口中准确地预测一系列未来查询及其完整的查询语句。借鉴真实工作负载的洞察,我们提出了基于模板的特征化技术,并开发了一种带有编码器-解码器架构的堆叠LSTM(stacked-LSTM),用于准确预测查询工作负载。我们还开发了相关技术,以提高在大型预测窗口上的预测准确性,并在查询到达率变化很大的大型工作负载上实现高可扩展性。最后,我们提出了处理工作负载漂移的技术。我们在四个真实工作负载上的评估表明,SIBYL能够以$87.3\%$的中位F1分数预测工作负载,并且在分别应用于物化视图选择和索引选择应用时,能够带来$1.7\ imes$和$1.3\ imes$的性能提升。
英文摘要:
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\times$ and $1.3\times$ performance improvement when applied to materialized view selection and index selection applications, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。