一种统一高效的自主DBMS调优协调框架
A Unified and Efficient Coordinating Framework for Autonomous DBMS Tuning
摘要:
最近,使用基于机器学习(ML)的技术来优化现代数据库管理系统吸引了工业界和学术界的浓厚兴趣。目标是调优DBMS的特定组件(例如,索引选择、旋钮调优),基于ML的调优代理已经证明能够找到比有经验的数据库管理员更好的配置。然而,一个关键但具有挑战性的问题仍未探索--如何使这些基于ML的调优代理协同工作。现有的方法没有考虑多个代理之间的依赖关系,每个代理使用的模型只研究单个组件中的配置改变的影响。为了调优DBMS的不同组件,需要一种协调机制来使多个代理相互识别。此外,我们需要决定如何在代理之间分配有限的调优预算,以最大限度地提高性能。这样的决定是很难做出的,因为每个代理的奖励分配是未知的和非平稳的。在本文中,我们研究了上述问题,并提出了一个统一的协调框架,有效地利用现有的ML为基础的代理。首先,我们提出了一个消息传播协议,指定代理的协作行为,并封装在每个代理的模型的全局调优消息。第二,我们结合汤普森采样,一个良好的研究强化学习算法与内存缓冲区,使我们的框架可以在非平稳环境中明智地分配预算。我们的框架定义了适应于广泛的基于ML的调优代理的接口,但足够简单,可以与现有的实现和未来的扩展集成。我们表明,它可以有效地利用不同的基于ML的代理,并找到更好的配置与1.4~ 14.1倍的加速比的工作负载执行时间相比,基线。
英文摘要:
Recently using machine learning (ML) based techniques to optimize modern database management systems has attracted intensive interest from both industry and academia. With an objective to tune a specific component of a DBMS (e.g., index selection, knobs tuning), the ML-based tuning agents have shown to be able to find better configurations than experienced database administrators. However, one critical yet challenging question remains unexplored -- how to make those ML-based tuning agents work collaboratively. Existing methods do not consider the dependencies among the multiple agents, and the model used by each agent only studies the effect of changing the configurations in a single component. To tune different components for DBMS, a coordinating mechanism is needed to make the multiple agents cognizant of each other. Also, we need to decide how to allocate the limited tuning budget among the agents to maximize the performance. Such a decision is difficult to make since the distribution of the reward for each agent is unknown and non-stationary. In this paper, we study the above question and present a unified coordinating framework to efficiently utilize existing ML-based agents. First, we propose a message propagation protocol that specifies the collaboration behaviors for agents and encapsulates the global tuning messages in each agent's model. Second, we combine Thompson Sampling, a well-studied reinforcement learning algorithm with a memory buffer so that our framework can allocate budget judiciously in a non-stationary environment. Our framework defines the interfaces adapted to a broad class of ML-based tuning agents, yet simple enough for integration with existing implementations and future extensions. We show that it can effectively utilize different ML-based agents and find better configurations with 1.4~14.1X speedups on the workload execution time compared with baselines.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。