Diagnose Before You Tune: Agentic Bottleneck Diagnosis for Database Tuning
Xinyue Yang, Chaozheng Wang, Chen Zheng, Heng Zhang, Yanjun Wu
Abstract
Modern database management systems (DBMSs) expose hundreds of interacting configuration knobs that critically govern workload performance. Existing automated tuning methods often narrow the knob space based on initial workload characteristics and search within this reduced space using performance feedback. However, database performance is fundamentally constrained by runtime resource bottlenecks, and resolving one bottleneck through configuration updates often surfaces another. Relying solely on performance feedback within a statically narrowed knob space neither reveals which resource currently limits execution nor adapts to newly exposed bottlenecks. Such tuning incurs costly trial-and-error that prolongs search and leads to suboptimal performance. Therefore, we propose DiagTune, an agentic database tuning framework built on a diagnose-before-you-tune principle to iteratively diagnose and resolve resource bottlenecks. Specifically, we (1) design a structured bottleneck diagnosis mechanism that coordinates specialized large language model (LLM) agents across seven resource categories to distill runtime state into unified evidence documents; (2) develop an adaptive bottleneck selection strategy that balances bottleneck severity estimates, discounted historical reward, and exploration to favor severe bottlenecks while avoiding stagnation on exhausted ones and uncovering under-explored potential; and (3) formulate an evidence-guided recommendation mechanism in which an LLM-based decision agent draws on the selected diagnostic evidence to derive targeted knob adjustments for alleviating the identified bottleneck. Evaluations demonstrate that compared to the state-of-the-art baseline, DiagTune improves performance by an average of 106.72% and converges 2.3xfaster.
Create a lesson
Related papers
DiagDBench: Evaluating Agentic LLMs on Interactive Database Diagnosis and Anomaly Remediation
Shared title terminologycs.DBXinxin Zhao, Rong Kang, Tieying Zhang et al.
The Value Semantics Layer: Enabling Machine-Understandable Databases for Agentic AI
Shared title terminologycs.DBJalal Mahmud, Eser Kandogan
VecDBLens: An Evaluatology-Based Framework for Vector Database Diagnosis
Shared title terminologycs.DBYutong Zhou, Guoxin Kang, Wenxin Zhou et al.
Schemas That Hold: Verified Agentic Ingestion of Heterogeneous Scientific Tables into Relational Databases
Shared title terminologycs.DBBharatha Rankothge, Suzanne Hodgkins, Virginia Rich et al.
YiGraph: Enabling Autonomous Graph Data Analysis with Algorithm-centric Agentic Workflow Construction
Shared title terminologycs.DBChaoyi Chen, Qiange Wang, Zihan Wang et al.
SQL2SQLBench: A Benchmark for Database Dialect Translation
Shared title terminologycs.DBYuyang Gao, Zhaoyan Sun, Guoliang Li