DBAIOps: A Reasoning LLM-Enhanced Database Operation and Maintenance System using Knowledge Graphs

Wei Zhou, Peng Sun, Xuanhe Zhou, Qianglei Zang, Ji Xu, Tieying Zhang, Guoliang Li, Fan Wu

Abstract

The operation and maintenance (O&M) of database systems is critical to ensuring system availability and performance, typically requiring expert experience for effective diagnosis and recovery. However, existing automatic database O&M methods cannot effectively utilize expert experience. Rule-based methods struggle to incorporate literal experience from manuals, while LLM-based methods using standard RAG often generate inaccurate or generic results. We present DBAIOps, a novel hybrid system that combines reasoning LLMs with knowledge graphs to achieve DBA-style diagnosis. DBAIOps introduces a heterogeneous graph model for representing diagnosis experience and a two-stage graph evolution mechanism to explore relevant diagnosis paths. Evaluation across Oracle, MySQL, PostgreSQL, and DM8 shows that DBAIOps outperforms state-of-the-art baselines by 34.85% in root cause accuracy and 47.22% in human evaluation accuracy.

Introduction: The Challenge of Database O&M

Database Operation and Maintenance (O&M) is a high-stakes task where misconfigurations or overlooked metrics can lead to significant downtime. Traditionally, senior Database Administrators (DBAs) rely on decades of experience to "connect the dots" between disparate metrics and troubleshooting steps.

Existing automation tools generally fall into two categories, both with significant flaws:

  1. Rule-based systems: These are rigid and struggle to incorporate "literal" experience, such as troubleshooting steps found in manuals. They often rely on static thresholds, leading to false alarms.
  2. LLM-based (RAG) systems: While flexible, standard Retrieval-Augmented Generation (RAG) often fragments documents, losing the causal relationships between events. This can lead to generic advice or "hallucinations" regarding non-existent metrics.
Comparison of diagnostic approaches: Expert DBA reasoning vs. Rule-based tools and generic LLM outputs.

DBAIOps aims to bridge this gap by creating a system that possesses both the structured causality of a veteran DBA and the generative flexibility of a modern LLM.

The DBAIOps Architecture: Bridging the Gap

The core of DBAIOps is a four-part architecture designed to simulate a DBA’s reasoning process through the integration of structured knowledge and reasoning-capable LLMs.

The DBAIOps system architecture, featuring offline experience integration and online graph-based diagnosis.

Heterogeneous ExperienceGraph

Instead of simple text chunks, knowledge is stored in an ExperienceGraph with six vertex types: Triggers, Metrics, Experience, Tools, Tags, and Auxiliaries. This structure preserves the "diagnosis path"—the step-by-step logic used to solve complex problems.

Correlation-Aware Anomaly Models

The system utilizes over 800 reusable anomaly models. Unlike simple threshold checks, these models perform multi-metric correlation analysis (e.g., linking LOG_FILE_SYNC delays with I/O latency) and employ frequency control to filter transient noise.

Two-Stage Graph Evolution

Upon detecting an anomaly, the system performs a dynamic graph evolution:

  • Expansion: It searches for related "neighbor" issues to broaden the context.
  • Pruning: It uses an Adaptive Detector Function (ADF) to remove irrelevant paths based on real-time statistical significance.

In-Context Reasoning with DeepSeek-R1

The pruned diagnosis path is fed into a reasoning-focused LLM (e.g., DeepSeek-R1). By providing a structured pathway rather than raw documents, the LLM can generate highly specific, actionable reports that simulate a DBA's diagnostic logic.

Experimental Evaluation and Results

The researchers evaluated DBAIOps using a knowledge base built from over 15,000 official documents and historical incident reports. The system was tested against 558 real-world anomaly scenarios across Oracle, MySQL, PostgreSQL, and DM8.

Key results include:

  • Root Cause Accuracy: DBAIOps achieved a 34.85% higher accuracy than state-of-the-art baselines like D-Bot and ChatDBA.
  • Human Evaluation: In blind tests, human experts rated DBAIOps reports as 47.22% more accurate and useful than competing systems.
  • Generalization: The system demonstrated strong performance even with medium-sized models (e.g., DeepSeek-R1 32B), proving that high-quality graph context is more critical than raw model parameters.

Conclusion and Future Directions

DBAIOps demonstrates that graph-based retrieval is superior to standard vector similarity for technical diagnosis because it maintains the logical "if-then" chains essential for debugging. While the system currently requires some manual expert input for initial graph "sketches," future work aims to develop a fully automated pipeline capable of ingesting raw PDF manuals to extract the 6-vertex structure without human intervention. Currently, DBAIOps supports 25 different database systems and has been deployed in 20 production environments across finance, energy, and healthcare sectors.

Summary updated

BibTeX
@article{zhou2026dbaiops,
  author = {Wei Zhou and Peng Sun and Xuanhe Zhou and Qianglei Zang and Ji Xu and Tieying Zhang and Guoliang Li and Fan Wu},
  title = {{DBAIOps: A Reasoning LLM-Enhanced Database Operation and Maintenance System using Knowledge Graphs}},
  journal = {Proc. VLDB Endow.},
  year = {2026},
}
Figure