MCP
arXivarXiv
Preprint
Published: December 1, 2026
cs.DB
v2

Diagnose Before You Tune: Agentic Bottleneck Diagnosis for Database Tuning

1,231,222
1 University of Chinese Academy of Sciences, Nanjing, China
2 Institute of Software, Chinese Academy of Sciences, Beijing, China
3 The Chinese University of Hong Kong, Hong Kong, China
Abstract
Modern database management systems (DBMSs) expose hundreds of configuration knobs, making effective performance tuning a long-standing challenge. Although recent automated tuning systems have shown promising results, they often search within a predetermined subset of knobs and insufficiently account for changing runtime bottlenecks during tuning. As a result, they may incur unnecessary trial-and-error, prolonging the tuning process and potentially yielding suboptimal performance. In this paper, we propose DiagTune, an agentic database tuning framework built on a diagnose-before-you-tune principle that iteratively diagnose and resolve resource bottlenecks to enhance tuning process. 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 106.72% and converges 2.3x faster on average.
0
AI overview
Reviews
Citation graph
Structured
This paper does not have an AI preview yet
Rating
No ratings yet
Rate
Community rating
—
/ 5
No ratings yet
Rating
—
Soundness
—
Presentation
—
Contribution
—
Confidence
—
Discussion
Top
Newest
Questions
Replication
Author
No comments yet — be the first