D-Bot: Database Diagnosis System using Large Language Models
Authors:
- Xuanhe ZhouXZXuanhe Zhou
- Guoliang LiGLGuoliang Li
- Jiesi LiuJLJiesi Liu
Preprint
Abstract
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.Keywords
All Related Versions
This publication has 14 references indexed in Scilit:
- CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-X2023
- DBPA: A Benchmark for Transactional Database Performance AnomaliesProceedings of the ACM on Management of Data, 2023
- AutoIndex: An Incremental Index Management System for Dynamic Workloads2022
- OpenPrompt: An Open-source Framework for Prompt-learning2022
- An Index Advisor Using Deep Reinforcement Learning2020
- Anomaly Detection in Role Administered Relational Databases — A Novel Method2018
- DUCT: An Upper Confidence Bound Approach to Distributed Constraint Optimization ProblemsProceedings of the AAAI Conference on Artificial Intelligence, 2012
- The Probabilistic Relevance Framework: BM25 and BeyondFoundations and Trends® in Information Retrieval, 2009
- KNN Model-Based Approach in Classification2003
- DB2 advisor: an optimizer smart enough to recommend its own indexes2002