GPTuner: A Manual-Reading Database Tuning System via GPT-Guided Bayesian Optimization

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Lao, Jiale, Wang, Yibo, Li, Yufei, Wang, Jianping, Zhang, Yunjia, Cheng, Zhiyuan, Chen, Wanghu, Tang, Mingjie, Wang, Jianguo
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910720029884416
author Lao, Jiale
Wang, Yibo
Li, Yufei
Wang, Jianping
Zhang, Yunjia
Cheng, Zhiyuan
Chen, Wanghu
Tang, Mingjie
Wang, Jianguo
author_facet Lao, Jiale
Wang, Yibo
Li, Yufei
Wang, Jianping
Zhang, Yunjia
Cheng, Zhiyuan
Chen, Wanghu
Tang, Mingjie
Wang, Jianguo
contents Modern database management systems (DBMS) expose hundreds of configurable knobs to control system behaviours. Determining the appropriate values for these knobs to improve DBMS performance is a long-standing problem in the database community. As there is an increasing number of knobs to tune and each knob could be in continuous or categorical values, manual tuning becomes impractical. Recently, automatic tuning systems using machine learning methods have shown great potentials. However, existing approaches still incur significant tuning costs or only yield sub-optimal performance. This is because they either ignore the extensive domain knowledge available (e.g., DBMS manuals and forum discussions) and only rely on the runtime feedback of benchmark evaluations to guide the optimization, or they utilize the domain knowledge in a limited way. Hence, we propose GPTuner, a manual-reading database tuning system. Firstly, we develop a Large Language Model (LLM)-based pipeline to collect and refine heterogeneous knowledge, and propose a prompt ensemble algorithm to unify a structured view of the refined knowledge. Secondly, using the structured knowledge, we (1) design a workload-aware and training-free knob selection strategy, (2) develop a search space optimization technique considering the value range of each knob, and (3) propose a Coarse-to-Fine Bayesian Optimization Framework to explore the optimized space. Finally, we evaluate GPTuner under different benchmarks (TPC-C and TPC-H), metrics (throughput and latency) as well as DBMS (PostgreSQL and MySQL). Compared to the state-of-the-art approaches, GPTuner identifies better configurations in 16x less time on average. Moreover, GPTuner achieves up to 30% performance improvement (higher throughput or lower latency) over the best-performing alternative.
format Preprint
id arxiv_https___arxiv_org_abs_2311_03157
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle GPTuner: A Manual-Reading Database Tuning System via GPT-Guided Bayesian Optimization
Lao, Jiale
Wang, Yibo
Li, Yufei
Wang, Jianping
Zhang, Yunjia
Cheng, Zhiyuan
Chen, Wanghu
Tang, Mingjie
Wang, Jianguo
Databases
Modern database management systems (DBMS) expose hundreds of configurable knobs to control system behaviours. Determining the appropriate values for these knobs to improve DBMS performance is a long-standing problem in the database community. As there is an increasing number of knobs to tune and each knob could be in continuous or categorical values, manual tuning becomes impractical. Recently, automatic tuning systems using machine learning methods have shown great potentials. However, existing approaches still incur significant tuning costs or only yield sub-optimal performance. This is because they either ignore the extensive domain knowledge available (e.g., DBMS manuals and forum discussions) and only rely on the runtime feedback of benchmark evaluations to guide the optimization, or they utilize the domain knowledge in a limited way. Hence, we propose GPTuner, a manual-reading database tuning system. Firstly, we develop a Large Language Model (LLM)-based pipeline to collect and refine heterogeneous knowledge, and propose a prompt ensemble algorithm to unify a structured view of the refined knowledge. Secondly, using the structured knowledge, we (1) design a workload-aware and training-free knob selection strategy, (2) develop a search space optimization technique considering the value range of each knob, and (3) propose a Coarse-to-Fine Bayesian Optimization Framework to explore the optimized space. Finally, we evaluate GPTuner under different benchmarks (TPC-C and TPC-H), metrics (throughput and latency) as well as DBMS (PostgreSQL and MySQL). Compared to the state-of-the-art approaches, GPTuner identifies better configurations in 16x less time on average. Moreover, GPTuner achieves up to 30% performance improvement (higher throughput or lower latency) over the best-performing alternative.
title GPTuner: A Manual-Reading Database Tuning System via GPT-Guided Bayesian Optimization
topic Databases
url https://arxiv.org/abs/2311.03157