MLETune: Streamlining Database Knob Tuning Via Multi-LLMs Experts Guided Deep Reinforcement Learning

Wenlong Dong,Wei Liu,Rui Xi,Mengshu Hou,Shuhuan Fan
DOI: https://doi.org/10.1109/icpads63350.2024.00038
2024-01-01
Abstract:Automatic knob tuning has emerged as a critical field of study within database optimization, focusing on simplifying the configuration of database parameters to boost performance, particularly in the realm of advanced modern database management systems with myriad adjustable knobs. The primary challenge revolves around identifying the ideal knob configurations that can markedly enhance system efficiency. Various machine learning techniques have been devised to automate this tuning process. Nevertheless, these methods frequently entail running extensive workloads, resulting in significant time and resource consumption. This inefficiency arises from their reliance on runtime feedback or the limited exploitation of domain knowledge.To overcome these limitations, we propose MLETune, a novel deep reinforcement learning-based approach guided by multi-Large Language Models (LLMs) experts. Our method leverages a remix retrieval-augmented generation algorithm to harness knowledge and distill expert guidance effectively. Additionally, we utilize a genetic algorithm for coarse-grained exploration based on system and query-level knob knowledge to expedite the cold start process in deep reinforcement learning. By classifying and compressing metrics and optimizing tuning knobs based on workload and knob-level insights, we aim to reduce the search space efficiently. In addition, adopting a delayed update strategy helps mitigate the training time required for the deep reinforcement learning model. Our extensive experiments demonstrate that MLETune outperforms existing methods by identifying superior configurations in significantly less time, showing an average improvement of ${6x}$, along with achieving up to a $26 \%$ performance improvement.
What problem does this paper attempt to address?