Automatic Database Configuration Debugging using Retrieval-Augmented Language Models
Sibei Chen, Ju Fan, Bin Wu et al. · Proceedings of the ACM on Management of Data · 2025
Database management system (DBMS) configuration debugging, e.g., diagnosing poorly configured DBMS knobs and generating troubleshooting recommendations, is crucial in optimizing DBMS performance. However, the configuration debugging process is tedious and, sometimes challenging, even for seasoned database administrators (DBAs) with sufficient experience in DBMS configurations and good understandings of the DBMS internals (e.g., MySQL or Oracle). To address this difficulty, we propose Andromeda, a framework that utilizes large language models (LLMs) to enable automatic DBMS configuration debugging. Andromeda serves as a natural surrogate of DBAs to answer a wide range of natural language (NL) questions on DBMS configuration issues, and to generate diagnostic suggestions to fix these issues. Nevertheless, directly prompting LLMs with these professional questions may result in overly generic and often unsatisfying answers. To this end, we propose a retrieval-augmented generation (RAG) strategy that effectively provides matched domain-specific contexts for the question from multiple sources. They come from related historical questions, troubleshooting manuals and DBMS telemetries, which significantly improve the performance of configuration debugging. To support the RAG strategy, we develop a document retrieval mechanism addressing heterogeneous documents and design an effective method for telemetry analysis. Extensive experiments on real-world DBMS configuration debugging datasets show that Andromeda significantly outperforms existing solutions.
Cited by 12 works. doi:10.1145/3709663 Open-access PDF
Authors
References
- On the Detection of Many Outliers
- Automatic Database Management System Tuning Through Large-scale Machine Learning
- Evaluating and predicting answer quality in community QA
- Improving the Domain Adaptation of Retrieval Augmented Generation (RAG) Models for Open Domain Question Answering
- Tuning database configuration parameters with iTuned
- An End-to-End Automatic Cloud Database Tuning System Using Deep Reinforcement Learning
- QTune
- Expert Finding for Question Answering via Graph Regularized Matrix Completion
- Diagnosing root causes of intermittent slow queries in cloud databases
- Question Retrieval with High Quality Answers in Community Question Answering