arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2108.10130cs.DBcs.LG
收藏

没有DBA?不后悔!用于分析和HTAP工作负载的索引调优的多臂bandits,具有可证明的保证

No DBA? No regret! Multi-armed bandits for index tuning of analytical and HTAP workloads with provable guarantees

University of Melbourne(墨尔本大学)

R. Malinga Perera, Bastian Oetomo, Benjamin I. P. Rubinstein, Renata Borovica-Gajic

摘要:

自动化物理数据库设计一直是数据库研究中的一个长期兴趣,因为优化的结构提供了大量的性能增益。尽管取得了重大进展,但当今的大多数商业解决方案都是高度手动的,需要数据库管理员(DBA)进行离线调用,他们需要识别和提供代表性的培训工作负载。即使是最新的改进,如查询存储,也只提供了对动态环境的有限支持。这种现状是站不住脚的:标识代表性静态工作负载不再现实;并且物理设计工具仍然容易受到查询优化器的成本错误估计的影响。此外,现代应用环境,如混合事务和分析处理(HTAP)系统,使分析建模几乎不可能。我们提出了一种自驱动的在线索引选择方法,避开了DBA和查询优化器,而是通过战略探索和直接的性能观察来学习可行结构的好处。我们认为这个问题是一个不确定性下的顺序决策,特别是在强盗学习设置。多武装强盗平衡探索和利用,以可证明地保证平均性能,收敛到具有完美后见之明的最佳策略。我们针对最先进的商业调优工具进行的全面实证评估表明,在分析处理环境中,移动和临时工作负载的速度提高了75%,静态工作负载的速度提高了28%。在HTAP环境中,我们的解决方案在转移工作负载时可提供高达59%的加速,在静态工作负载时可提供高达51%的加速。此外,我们的bandit框架在收敛速度和性能波动方面优于深度强化学习(RL)(提供高达58%的加速)。

英文摘要:

Automating physical database design has remained a long-term interest in database research due to substantial performance gains afforded by optimised structures. Despite significant progress, a majority of today's commercial solutions are highly manual, requiring offline invocation by database administrators (DBAs) who are expected to identify and supply representative training workloads. Even the latest advancements like query stores provide only limited support for dynamic environments. This status quo is untenable: identifying representative static workloads is no longer realistic; and physical design tools remain susceptible to the query optimiser's cost misestimates. Furthermore, modern application environments such as hybrid transactional and analytical processing (HTAP) systems render analytical modelling next to impossible. We propose a self-driving approach to online index selection that eschews the DBA and query optimiser, and instead learns the benefits of viable structures through strategic exploration and direct performance observation. We view the problem as one of sequential decision making under uncertainty, specifically within the bandit learning setting. Multi-armed bandits balance exploration and exploitation to provably guarantee average performance that converges to policies that are optimal with perfect hindsight. Our comprehensive empirical evaluation against a state-of-the-art commercial tuning tool demonstrates up to 75% speed-up on shifting and ad-hoc workloads and up to 28% speed-up on static workloads in analytical processing environments. In HTAP environments, our solution provides up to 59% speed-up on shifting and 51% speed-up on static workloads. Furthermore, our bandit framework outperforms deep reinforcement learning (RL) in terms of convergence speed and performance volatility (providing up to 58% speed-up).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑