arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.03500cs.DB
收藏

λ-Tune:利用大型语言模型实现数据库系统自动调优

λ-Tune: Harnessing Large Language Models for Automated Database System Tuning

Victor Giannankouris, Immanuel Trummer

AI总结:

λ-Tune利用大型语言模型生成完整配置脚本,通过成本优化提示选择最佳配置,在PostgreSQL和MySQL上实现更稳健的自动数据库调优。

摘要:

我们介绍了λ-Tune,一个利用大型语言模型(LLMs)进行数据库系统自动调优的框架。λ-Tune的设计源于最新一代LLMs的能力。与先前工作利用LLMs为单个参数提取调优提示不同,λ-Tune基于描述调优上下文的大型输入文档,生成完整的配置脚本。λ-Tune生成备选配置,并采用有原则的方法从一小批候选中识别出最佳配置。通过这样做,它最小化了重新配置的开销,并确保评估成本以最优运行时间为函数有界。通过将提示生成视为基于成本的优化问题,λ-Tune在限制输入令牌数量从而限制LLM调用的货币费用的同时,向LLM传达最相关的上下文。我们使用多个基准测试,以PostgreSQL和MySQL作为调优目标系统,将λ-Tune与各种基线进行比较,结果表明λ-Tune比先前方法显著更稳健。

英文摘要:

We introduce λ-Tune, a framework that leverages Large Language Models (LLMs) for automated database system tuning. The design of λ-Tune is motivated by the capabilities of the latest generation of LLMs. Different from prior work, leveraging LLMs to extract tuning hints for single parameters, λ-Tune generates entire configuration scripts, based on a large input document, describing the tuning context. λ-Tune generates alternative configurations, using a principled approach to identify the best configuration, out of a small set of candidates. In doing so, it minimizes reconfiguration overheads and ensures that evaluation costs are bounded as a function of the optimal run time. By treating prompt generation as a cost-based optimization problem, λ-Tune conveys the most relevant context to the LLM while bounding the number of input tokens and, therefore, monetary fees for LLM invocations. We compare λ-Tune to various baselines, using multiple benchmarks and PostgreSQL and MySQL as target systems for tuning, showing that λ-Tune is significantly more robust than prior approaches.

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

↑