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

DBA bandits:在特定的分析工作负载下自动进行索引调优,并提供安全保障

DBA bandits: Self-driving index tuning under ad-hoc, analytical workloads with safety guarantees

University of Melbourne(墨尔本大学)

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

摘要:

自动化物理数据库设计一直是数据库研究中的一个长期兴趣,因为优化的结构提供了大量的性能增益。尽管取得了重大进展,但当今的大多数商业解决方案都是高度手动的,需要数据库管理员(DBA)进行离线调用,他们需要识别和提供代表性的培训工作负载。不幸的是,像查询存储这样的最新进展只提供了对动态环境的有限支持。这种现状是站不住脚的:识别代表性静态工作负载不再现实;物理设计工具仍然容易受到查询优化器的成本错误估计的影响(源于不切实际的假设,如属性值独立性和数据分布的均匀性)。我们提出了一种自驱动的在线索引选择方法,避开了DBA和查询优化器,而是通过战略探索和直接的性能观察来学习可行结构的好处。我们认为这个问题是一个不确定性下的顺序决策,特别是在强盗学习设置。多武装土匪平衡探索和利用,以可证明地保证平均性能收敛到一个固定的政策,这是最佳的完美后见之明。我们全面的实证结果表明,与最先进的商业调优工具相比,移动和临时工作负载的速度提高了75%,静态工作负载的速度提高了28%。

英文摘要:

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. Unfortunately, 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 (stemming from unrealistic assumptions such as attribute value independence and uniformity of data distribution). 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 a fixed policy that is optimal with perfect hindsight. Our comprehensive empirical results demonstrate up to 75% speed-up on shifting and ad-hoc workloads and 28% speed-up on static workloads compared against a state-of-the-art commercial tuning tool.

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

↑