Research Article

A Comprehensive Investigation on Database Knob Tuning Using Machine Learning

Rongpu Shi*
Alliance Manchester Business School, University of Manchester, Manchester, United Kingdom

* Corresponding author: [email protected]

Abstract

Knob tuning is an important process in database management, where a knob refers to a combination of configuration parameters, such as the memory allocation strategy, which significantly impact database performance, like query speed. To accelerate this process and maximise its automation, more and more researchers have proposed various machine learning methods. Based on the literature reviewed, this paper categorises these methods into three types, provides detailed descriptions of them, and identifies their key innovations. Firstly, Bayesian Optimisation (BO)-based methods, represented by OtterTune, establish probabilistic models using Gaussian Processes to efficiently search for optimal configurations. Next, Reinforcement Learning (RL)-based approaches, represented by CDBTune, train RL agents to find the optimal strategy through trial and error. The last category is Large Language Model (LLM)-based knob tuning, represented by E2ETune. Through further research and analysis, this paper also identifies some challenges in this field, such as the very common exploration-exploitation dilemma in RL, the instability of performance caused by multiple factors, the feasibility of recommended configurations, and the widely recognised cost issue. In response, some potential future improvement directions are proposed: Using confidence intervals or probability distributions to solve the exploration-exploitation dilemma of RL; Providing more comprehensive information, such as system hardware parameters, to agent to minimize the impact of external factors; Adding constraints or training ML models to verify configuration feasibility, as attempted by OnlineTune; Adopting cloud computing to significantly reduce costs.

Keywords: Database Knob Tuning; Machine Learning; Bayesian Optimisation; Reinforcement Learning; Large Language Models
Published: November 19, 2025
DOI: 10.54254/2755-2721/2026.TJ29634
Volume: ACE Vol.207
pp. 107-113
Download PDF

References

  1. National Research Council, Funding a Revolution: Government Support for Computing Research. National Academies Press, 1999.
  2. E. F. Codd, 'A relational model of data for large shared data banks’, Commun. ACM, vol. 13, no. 6, pp. 377–387, 1970, doi: 10.1145/362384.362685.
  3. D. D. Chamberlin and R. F. Boyce, 'SEQUEL: A structured English query language’, in Proceedings of the 1974 ACM SIGFIDET (now SIGMOD) workshop on Data description, access and control, in SIGFIDET ’74. New York, NY, USA: Association for Computing Machinery, 1974, pp. 249–264. doi: 10.1145/800296.811515.
  4. R. Greenwald, R. Stackowiak, and J. Stern, Oracle Essentials: Oracle Database 12c. O’Reilly Media, Inc., 2013.
  5. D. Kunda and H. Phiri, 'Comparative Study of NoSQL and Relational Database’, zictjournal, vol. 1, no. 1, pp. 1–4, Dec. 2017, doi: 10.33260/zictjournal.v1i1.8.
  6. A. Vaswani et al., 'Attention Is All You Need’, June 12, 2017, arXiv: arXiv: 1706.03762. doi: 10.48550/arXiv.1706.03762.
  7. D. Van Aken, A. Pavlo, G. J. Gordon, and B. Zhang, 'Automatic Database Management System Tuning Through Large-scale Machine Learning’, in Proceedings of the 2017 ACM International Conference on Management of Data, Chicago Illinois USA: ACM, May 2017, pp. 1009–1024. doi: 10.1145/3035918.3064029.
  8. X. Zhao, X. Zhou, and G. Li, 'Automatic Database Knob Tuning: A Survey’, IEEE Transactions on Knowledge and Data Engineering, vol. 35, no. 12, pp. 12470–12490, Dec. 2023, doi: 10.1109/TKDE.2023.3266893.
  9. J. Zhang et al., 'An End-to-End Automatic Cloud Database Tuning System Using Deep Reinforcement Learning’, in Proceedings of the 2019 International Conference on Management of Data, in SIGMOD ’19. New York, NY, USA: Association for Computing Machinery, 2019, pp. 415–432. doi: 10.1145/3299869.3300085.
  10. X. Huang et al., 'E2ETune: End-to-End Knob Tuning via Fine-tuned Generative Language Model’, Mar. 19, 2025, arXiv: arXiv: 2404.11581. doi: 10.48550/arXiv.2404.11581.
  11. S. Duan, V. Thummala, and S. Babu, 'Tuning database configuration parameters with iTuned’, Proc. VLDB Endow., vol. 2, no. 1, pp. 1246–1257, Aug. 2009, doi: 10.14778/1687627.1687767.
  12. B. Zhang et al., 'A demonstration of the ottertune automatic database management system tuning service’, Proc. VLDB Endow., vol. 11, no. 12, pp. 1910–1913, Aug. 2018, doi: 10.14778/3229863.3236222.
  13. X. Zhang et al., 'ResTune: Resource Oriented Tuning Boosted by Meta-Learning for Cloud Databases’, in Proceedings of the 2021 International Conference on Management of Data, Virtual Event China: ACM, June 2021, pp. 2102–2114. doi: 10.1145/3448016.3457291.
  14. K. Kanellis, C. Ding, B. Kroth, A. Müller, C. Curino, and S. Venkataraman, 'LlamaTune: Sample-Efficient DBMS Configuration Tuning’, Aug. 23, 2022, arXiv: arXiv: 2203.05128. doi: 10.48550/arXiv.2203.05128.
  15. B. Milicevic and Z. Babovic, 'A systematic review of deep learning applications in database query execution’, Journal of Big Data, vol. 11, no. 1, p. 173, Dec. 2024, doi: 10.1186/s40537-024-01025-1.
  16. Y. Zhu et al., 'BestConfig: Tapping the Performance Potential of Systems via Automatic Configuration Tuning’, in Proceedings of the 2017 Symposium on Cloud Computing, Sept. 2017, pp. 338–350. doi: 10.1145/3127479.3128605.
  17. G. Li, X. Zhou, S. Li, and B. Gao, 'QTune: a query-aware database tuning system with deep reinforcement learning’, Proc. VLDB Endow., vol. 12, no. 12, pp. 2118–2130, Aug. 2019, doi: 10.14778/3352063.3352129.
  18. F. Ye, Y. Li, X. Wang, N. Nedjah, P. Zhang, and H. Shi, 'Parameters tuning of multi-model database based on deep reinforcement learning’, J Intell Inf Syst, vol. 61, no. 1, pp. 167–190, Aug. 2023, doi: 10.1007/s10844-022-00762-0.
  19. J. Lao et al., 'GPTuner: A Manual-Reading Database Tuning System via GPT-Guided Bayesian Optimization’, Proc. VLDB Endow., vol. 17, no. 8, pp. 1939–1952, Apr. 2024, doi: 10.14778/3659437.3659449.
  20. K. Wiggers, 'OtterTune, which taps AI to optimize databases, raises $12M’, TechCrunch. Accessed: Oct. 01, 2025. [Online]. Available: https: //techcrunch.com/2022/05/10/2309852/
  21. K. Jamieson, M. Malloy, R. Nowak, and S. Bubeck, 'lil’ UCB : An Optimal Exploration Algorithm for Multi-Armed Bandits’, Dec. 27, 2013, arXiv: arXiv: 1312.7308. doi: 10.48550/arXiv.1312.7308.
  22. D. Russo, B. V. Roy, A. Kazerouni, I. Osband, and Z. Wen, 'A Tutorial on Thompson Sampling’, July 14, 2020, arXiv: arXiv: 1707.02038. doi: 10.48550/arXiv.1707.02038.
  23. X. Zhang, H. Wu, Y. Li, J. Tan, F. Li, and B. Cui, 'Towards Dynamic and Safe Configuration Tuning for Cloud Databases’, in Proceedings of the 2022 International Conference on Management of Data, June 2022, pp. 631–645. doi: 10.1145/3514221.3526176.
  24. J. Tan et al., 'iBTune: individualized buffer tuning for large-scale cloud databases’, Proc. VLDB Endow., vol. 12, no. 10, pp. 1221–1234, June 2019, doi: 10.14778/3339490.3339503.
  25. T. Alford, G. Morton, and A. Repczynski, 'Addressing the Benefits of Infrastructure in the Cloud’, 2010, [Online]. Available: https: //www.iceaaonline.com/wp-content/uploads/2017/09/SOF09A-Repczynski.pdf