GPTuner:基于GPT引导贝叶斯优化的手册阅读数据库调优系统
GPTuner: A Manual-Reading Database Tuning System via GPT-Guided Bayesian Optimization
AI总结:
针对DBMS旋钮调优的高成本或次优问题,GPTuner结合LLM提炼的DBMS领域知识与从粗到细的贝叶斯优化,实现16倍调优提速及30%性能提升。
摘要:
现代数据库管理系统(DBMS)提供数百个可配置旋钮来控制系统行为。确定这些旋钮的适当值以提高DBMS性能是数据库社区长期存在的问题。随着需要调优的旋钮数量增加,且每个旋钮可能为连续或分类值,手动调优变得不切实际。近年来,使用机器学习方法的自动调优系统展现出巨大潜力。然而,现有方法仍需显著调优成本或仅产生次优性能,这是因为它们要么忽略可用的广泛领域知识(如DBMS手册和论坛讨论),仅依赖基准评估的运行时反馈指导优化,要么以有限方式利用领域知识。因此,我们提出GPTuner,一种基于手册阅读的数据库调优系统。首先,我们开发基于大型语言模型(LLM)的流水线来收集和提炼异构知识,并提出提示集成算法以统一提炼知识的结构化视图。其次,利用结构化知识,我们(1)设计工作负载感知且无需训练的旋钮选择策略,(2)开发考虑每个旋钮值范围的搜索空间优化技术,(3)提出从粗到细的贝叶斯优化框架以探索优化空间。最后,我们在不同基准(TPC-C和TPC-H)、指标(吞吐量和延迟)以及DBMS(PostgreSQL和MySQL)下评估GPTuner。与最先进方法相比,GPTuner平均以16倍更少时间识别更好配置,且相比性能最佳替代方案,GPTuner实现高达30%的性能提升(更高吞吐量或更低延迟)。
英文摘要:
Modern database management systems (DBMS) expose hundreds of configurable knobs to control system behaviours. Determining the appropriate values for these knobs to improve DBMS performance is a long-standing problem in the database community. As there is an increasing number of knobs to tune and each knob could be in continuous or categorical values, manual tuning becomes impractical. Recently, automatic tuning systems using machine learning methods have shown great potentials. However, existing approaches still incur significant tuning costs or only yield sub-optimal performance. This is because they either ignore the extensive domain knowledge available (e.g., DBMS manuals and forum discussions) and only rely on the runtime feedback of benchmark evaluations to guide the optimization, or they utilize the domain knowledge in a limited way. Hence, we propose GPTuner, a manual-reading database tuning system. Firstly, we develop a Large Language Model (LLM)-based pipeline to collect and refine heterogeneous knowledge, and propose a prompt ensemble algorithm to unify a structured view of the refined knowledge. Secondly, using the structured knowledge, we (1) design a workload-aware and training-free knob selection strategy, (2) develop a search space optimization technique considering the value range of each knob, and (3) propose a Coarse-to-Fine Bayesian Optimization Framework to explore the optimized space. Finally, we evaluate GPTuner under different benchmarks (TPC-C and TPC-H), metrics (throughput and latency) as well as DBMS (PostgreSQL and MySQL). Compared to the state-of-the-art approaches, GPTuner identifies better configurations in 16x less time on average. Moreover, GPTuner achieves up to 30% performance improvement (higher throughput or lower latency) over the best-performing alternative.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。