arXiv:2508.01136cs.DBcs.AI2025-08被引 7

用知识图谱+大模型实现数据库运维的专家级诊断。

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

  • 构建异构知识图谱,融合海量运维文档生成可推理的诊断经验库。
  • 自动生成800多个异常模型,精准定位显性和隐性关联指标。
  • 两阶段图演化结合大模型,自动补全诊断路径并输出清晰报告。

数据库运维对系统可用性和性能至关重要,通常需要专家经验(如指标与异常的关系)进行有效诊断与恢复。然而现有自动化运维方法(包括商业产品)难以有效利用专家经验:规则方法仅支持基础任务(如基于指标的异常检测),依赖数值公式,无法融入文字型经验(如手册中的排错指南);大模型方法通过检索碎片化信息(如标准文档+RAG)常产生不准确或泛化结果。为此,我们提出DBAIOps,一种融合推理型大模型与知识图谱的新型数据库运维系统,实现类DBA诊断。首先,引入异构图模型表示诊断经验,并提出半自动图构建算法,从数千份文档中构建知识图谱。其次,开发了800多个可复用的异常模型,能识别直接告警指标及隐含关联的经验与指标。第三,针对每个异常,设计两阶段图演化机制,自动探索相关诊断路径并识别缺失关系,再利用推理大模型(如DeepSeek-R1)推断根因并生成清晰诊断报告,供专业与普通用户使用。在四种主流数据库系统(Oracle、MySQL、PostgreSQL、DM8)上的评估显示,DBAIOps在根因准确率和人工评价准确率上分别优于最先进基线34.85%和47.22%。

原文摘要 · Abstract (English)

The operation and maintenance (O&M) of database systems is critical to ensuring system availability and performance, typically requiring expert experience (e.g., identifying metric-to-anomaly relations) for effective diagnosis and recovery. However, existing automatic database O&M methods, including commercial products, cannot effectively utilize expert experience. On the one hand, rule-based methods only support basic O&M tasks (e.g., metric-based anomaly detection), which are mostly numerical equations and cannot effectively incorporate literal O&M experience (e.g., troubleshooting guidance in manuals). On the other hand, LLM-based methods, which retrieve fragmented information (e.g., standard documents + RAG), often generate inaccurate or generic results. To address these limitations, we present DBAIOps, a novel hybrid database O&M system that combines reasoning LLMs with knowledge graphs to achieve DBA-style diagnosis. First, DBAIOps introduces a heterogeneous graph model for representing the diagnosis experience, and proposes a semi-automatic graph construction algorithm to build that graph from thousands of documents. Second, DBAIOps develops a collection of (800+) reusable anomaly models that identify both directly alerted metrics and implicitly correlated experience and metrics. Third, for each anomaly, DBAIOps proposes a two-stage graph evolution mechanism to explore relevant diagnosis paths and identify missing relations automatically. It then leverages a reasoning LLM (e.g., DeepSeek-R1) to infer root causes and generate clear diagnosis reports for both DBAs and common users. Our evaluation over four mainstream database systems (Oracle, MySQL, PostgreSQL, and DM8) demonstrates that DBAIOps outperforms state-of-the-art baselines, 34.85% and 47.22% higher in root cause and human evaluation accuracy, respectively.

数据库运维知识图谱大模型智能诊断

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。