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

被引:141
|
作者
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 条
  • [21] Mjolnir: A framework agnostic auto-tuning system with deep reinforcement learning
    Ben Slimane, Nourchene
    Sagaama, Houssem
    Marwani, Maher
    Skhiri, Sabri
    APPLIED INTELLIGENCE, 2023, 53 (11) : 14008 - 14022
  • [22] ADSTS: Automatic Distributed Storage Tuning System Using Deep Reinforcement Learning
    Lu, Kai
    Li, Guokuan
    Wan, Jiguang
    Ma, Ruixiang
    Zhao, Wei
    51ST INTERNATIONAL CONFERENCE ON PARALLEL PROCESSING, ICPP 2022, 2022,
  • [23] Mjolnir: A framework agnostic auto-tuning system with deep reinforcement learning
    Nourchene Ben Slimane
    Houssem Sagaama
    Maher Marwani
    Sabri Skhiri
    Applied Intelligence, 2023, 53 : 14008 - 14022
  • [24] Automated performance tuning of distributed storage system based on deep reinforcement learning
    Wang, Lu
    Zhang, Wentao
    Cheng, Yaodong
    19TH INTERNATIONAL WORKSHOP ON ADVANCED COMPUTING AND ANALYSIS TECHNIQUES IN PHYSICS RESEARCH, 2020, 1525
  • [25] Session-aware recommender system using double deep reinforcement learning
    Khurana, Purnima
    Gupta, Bhavna
    Sharma, Ravish
    Bedi, Punam
    JOURNAL OF INTELLIGENT INFORMATION SYSTEMS, 2024, 62 (02) : 403 - 429
  • [26] Session-aware recommender system using double deep reinforcement learning
    Purnima Khurana
    Bhavna Gupta
    Ravish Sharma
    Punam Bedi
    Journal of Intelligent Information Systems, 2024, 62 : 403 - 429
  • [27] Quartet: A Query Aware Database Adaptive Compilation Decision System
    Wang, Zhibin
    Cui, Jiangtao
    Gao, Xiyue
    Li, Hui
    Peng, Yanguo
    Liu, Zhuang
    Zhang, Hui
    Zhao, Kankan
    EXPERT SYSTEMS WITH APPLICATIONS, 2024, 244
  • [28] Reinforcement Replaces Supervision: Query focused Summarization using Deep Reinforcement Learning
    Nath, Swaroop
    Bhattacharyya, Pushpak
    Khadilkar, Harshad
    2023 CONFERENCE ON EMPIRICAL METHODS IN NATURAL LANGUAGE PROCESSING (EMNLP 2023), 2023, : 15770 - 15789
  • [29] Learning Intention-Aware Policies in Deep Reinforcement Learning
    Zhao, T.
    Wu, S.
    Li, G.
    Chen, Y.
    Niu, G.
    Sugiyama, Masashi
    NEURAL COMPUTATION, 2023, 35 (10) : 1657 - 1677
  • [30] CTuner: Automatic NoSQL Database Tuning with Causal Reinforcement Learning
    Mai, Genting
    He, Zilong
    Yu, Guangba
    Chen, Zhiming
    Chen, Pengfei
    PROCEEDINGS OF THE 15TH ASIA-PACIFIC SYMPOSIUM ON INTERNETWARE, INTERNETWARE 2024, 2024, : 269 - 278