QTune: A Query-Aware Database Tuning System with Deep Reinforcement Learning

被引:131
|
作者
Li, Guoliang [1 ]
Zhou, Xuanhe [1 ]
Li, Shifu [2 ]
Gao, Bo [2 ]
机构
[1] Tsinghua Univ, Dept Comp Sci, Beijing, Peoples R China
[2] Huawei Co, Shenzhen, Guangdong, Peoples R China
来源
PROCEEDINGS OF THE VLDB ENDOWMENT | 2019年 / 12卷 / 12期
关键词
PERFORMANCE;
D O I
10.14778/3352063.3352129
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Database knob tuning is important to achieve high performance (e.g., high throughput and low latency). However, knob tuning is an NP-hard problem and existing methods have several limitations. First, DBAs cannot tune a lot of database instances on different environments (e.g., different database vendors). Second, traditional machine-learning methods either cannot find good configurations or rely on a lot of high-quality training examples which are rather hard to obtain. Third, they only support coarse-grained tuning (e.g., workload-level tuning) but cannot provide fine-grained tuning (e.g., query-level tuning). To address these problems, we propose a query-aware database tuning system QTune with a deep reinforcement learning (DRL) model, which can efficiently and effectively tune the database configurations. QTune first featurizes the SQL queries by considering rich features of the SQL queries. Then QTune feeds the query features into the DRL model to choose suitable configurations. We propose a Double-State Deep Deterministic Policy Gradient (DS-DDPG) model to enable query-aware database configuration tuning, which utilizes the actor-critic networks to tune the database configurations based on both the query vector and database states. QTune provides three database tuning granularities: query-level, workload-level, and cluster-level tuning. We deployed our techniques onto three real database systems, and experimental results show that QTune achieves high performance and outperforms the state-of-the-art tuning methods.
引用
收藏
页码:2118 / 2130
页数:13
相关论文
共 50 条
  • [1] A Sample-Aware Database Tuning System With Deep Reinforcement Learning
    Li, Zhongliang
    Tu, Yaofeng
    Ma, Zongmin
    JOURNAL OF DATABASE MANAGEMENT, 2024, 35 (01)
  • [2] A Scalable Query-Aware Enormous Database Generator for Database Evaluation
    Wang, Qingshuai
    Li, Yuming
    Zhang, Rong
    Shu, Ke
    Zhang, Zhenjie
    Zhou, Aoying
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2023, 35 (05) : 4395 - 4410
  • [3] Query-Aware Explainable Product Search With Reinforcement Knowledge Graph Reasoning
    Zhu, Qiannan
    Zhang, Haobo
    He, Qing
    Dou, Zhicheng
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2024, 36 (03) : 1260 - 1273
  • [4] Query-aware Long Video Localization and Relation Discrimination for Deep Video Understanding
    Xu, Yuanxing
    Wei, Yuting
    Wu, Bin
    PROCEEDINGS OF THE 31ST ACM INTERNATIONAL CONFERENCE ON MULTIMEDIA, MM 2023, 2023, : 9591 - 9595
  • [5] WATuning: A Workload-Aware Tuning System with Attention-Based Deep Reinforcement Learning
    Ge, Jia-Ke
    Chai, Yan-Feng
    Chai, Yun-Peng
    JOURNAL OF COMPUTER SCIENCE AND TECHNOLOGY, 2021, 36 (04) : 741 - 761
  • [6] WATuning: A Workload-Aware Tuning System with Attention-Based Deep Reinforcement Learning
    Jia-Ke Ge
    Yan-Feng Chai
    Yun-Peng Chai
    Journal of Computer Science and Technology, 2021, 36 : 741 - 761
  • [7] An End-to-End Automatic Cloud Database Tuning System Using Deep Reinforcement Learning
    Zhang, Ji
    Liu, Yu
    Zhou, Ke
    Li, Guoliang
    Xiao, Zhili
    Cheng, Bin
    Xing, Jiashu
    Wang, Yangtao
    Cheng, Tianheng
    Liu, Li
    Ran, Minwei
    Li, Zekang
    SIGMOD '19: PROCEEDINGS OF THE 2019 INTERNATIONAL CONFERENCE ON MANAGEMENT OF DATA, 2019, : 415 - 432
  • [8] XTuning: Expert Database Tuning System Based on Reinforcement Learning
    Chai, Yanfeng
    Ge, Jiake
    Chai, Yunpeng
    Wang, Xin
    Zhao, BoXuan
    WEB INFORMATION SYSTEMS ENGINEERING - WISE 2021, PT I, 2021, 13080 : 101 - 110
  • [9] A Query-Level Distributed Database Tuning System with Machine Learning
    Fang, Xiang
    Zou, Yi
    Fang, Yange
    Tang, Zhen
    Li, Hui
    Wang, Wei
    2022 IEEE 13TH INTERNATIONAL CONFERENCE ON JOINT CLOUD COMPUTING (JCC 2022), 2022, : 29 - 36
  • [10] Dynamic Pathway for Query-Aware Feature Learning in Language-Driven Action Localization
    Yang, Shuo
    Wu, Xinxiao
    Shang, Zirui
    Luo, Jiebo
    IEEE TRANSACTIONS ON MULTIMEDIA, 2024, 26 : 7451 - 7461