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

D-Bot:使用大型语言模型的数据库诊断系统

D-Bot: Database Diagnosis System using Large Language Models

Tsinghua University(清华大学);Pigsty;ModelBest

Xuanhe Zhou, Guoliang Li, Zhaoyan Sun, Zhiyuan Liu, Weize Chen, Jianming Wu, Jiesi Liu, Ruohang Feng, Guoyang Zeng

AI总结:

本文提出基于 LLM 的数据库诊断系统 D-Bot,通过知识提取、提示生成、树搜索根因分析和多根因协作,在 539 个真实异常上显著优于传统方法与 GPT-4。

摘要:

数据库管理员(DBA)在管理、维护和优化数据库系统方面发挥着重要作用。然而,DBA 管理大量数据库并及时响应是困难且繁琐的(在许多在线场景中,等待数小时是不可接受的)。此外,现有经验方法仅支持有限的诊断场景,而且在数据库版本更新时更新诊断规则也十分耗费人力。近年来,大型语言模型(LLM)在多个领域展现出巨大潜力。因此,我们提出 D-Bot,这是一个基于 LLM 的数据库诊断系统,能够从诊断文档中自动获取知识,并在可接受的时间内生成合理且依据充分的诊断报告(即识别根本原因和解决方案),例如在 10 分钟以内完成,而 DBA 需要数小时。D-Bot 中的技术包括:(i)从文档中进行离线知识提取,(ii)自动提示词生成(例如知识匹配、工具检索),(iii)使用树搜索算法进行根本原因分析,以及(iv)针对具有多个根本原因的复杂异常的协作机制。我们在真实基准上验证了 D-Bot(包括六类典型应用中的 539 个异常),结果表明 D-Bot 能够有效分析未见过的异常的根本原因,并显著优于传统方法和 GPT-4 等原始模型。

英文摘要:

Database administrators (DBAs) play an important role in managing, maintaining and optimizing database systems. However, it is hard and tedious for DBAs to manage a large number of databases and give timely response (waiting for hours is intolerable in many online cases). In addition, existing empirical methods only support limited diagnosis scenarios, which are also labor-intensive to update the diagnosis rules for database version updates. Recently large language models (LLMs) have shown great potential in various fields. Thus, we propose D-Bot, an LLM-based database diagnosis system that can automatically acquire knowledge from diagnosis documents, and generate reasonable and well-founded diagnosis report (i.e., identifying the root causes and solutions) within acceptable time (e.g., under 10 minutes compared to hours by a DBA). The techniques in D-Bot include (i) offline knowledge extraction from documents, (ii) automatic prompt generation (e.g., knowledge matching, tool retrieval), (iii) root cause analysis using tree search algorithm, and (iv) collaborative mechanism for complex anomalies with multiple root causes. We verify D-Bot on real benchmarks (including 539 anomalies of six typical applications), and the results show that D-Bot can effectively analyze the root causes of unseen anomalies and significantly outperforms traditional methods and vanilla models like GPT-4.

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

↑