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 条
  • [31] Deep Reinforcement Learning for Query-Conditioned Video Summarization
    Zhang, Yujia
    Kampffmeyer, Michael
    Zhao, Xiaoguang
    Tan, Min
    APPLIED SCIENCES-BASEL, 2019, 9 (04):
  • [32] PTDRL: Parameter Tuning using Deep Reinforcement Learning
    Goldsztejn, Elias
    Feiner, Tal
    Brafman, Ronen
    2023 IEEE/RSJ INTERNATIONAL CONFERENCE ON INTELLIGENT ROBOTS AND SYSTEMS (IROS), 2023, : 11356 - 11362
  • [33] Socially Aware Motion Planning with Deep Reinforcement Learning
    Chen, Yu Fan
    Everett, Michael
    Liu, Miao
    How, Jonathan P.
    2017 IEEE/RSJ INTERNATIONAL CONFERENCE ON INTELLIGENT ROBOTS AND SYSTEMS (IROS), 2017, : 1343 - 1350
  • [34] Variance aware reward smoothing for deep reinforcement learning
    Dong, Yunlong
    Zhang, Shengjun
    Liu, Xing
    Zhang, Yu
    Shen, Tan
    NEUROCOMPUTING, 2021, 458 : 327 - 335
  • [35] A systematic review of deep learning applications in database query execution
    Milicevic, Bogdan
    Babovic, Zoran
    JOURNAL OF BIG DATA, 2024, 11 (01)
  • [36] DRLBTS: deep reinforcement learning-aware blockchain-based healthcare system
    Abdullah Lakhan
    Mazin Abed Mohammed
    Jan Nedoma
    Radek Martinek
    Prayag Tiwari
    Neeraj Kumar
    Scientific Reports, 13
  • [37] DRLBTS: deep reinforcement learning-aware blockchain-based healthcare system
    Lakhan, Abdullah
    Mohammed, Mazin Abed
    Nedoma, Jan
    Martinek, Radek
    Tiwari, Prayag
    Kumar, Neeraj
    SCIENTIFIC REPORTS, 2023, 13 (01)
  • [38] Index selection for NoSQL database with deep reinforcement learning
    Yan, Yu
    Yao, Shun
    Wang, Hongzhi
    Gao, Meng
    INFORMATION SCIENCES, 2021, 561 (561) : 20 - 30
  • [39] Regularized Cost-Model Oblivious Database Tuning with Reinforcement Learning
    Basu, Debabrota
    Lin, Qian
    Chen, Weidong
    Vo, Hoang Tam
    Yuan, Zihong
    Senellart, Pierre
    Bressan, Stephane
    TRANSACTIONS ON LARGE-SCALE DATA- AND KNOWLEDGE-CENTERED SYSTEMS XXVIII: SPECIAL ISSUE ON DATABASE- AND EXPERT-SYSTEMS APPLICATIONS, 2016, 9940 : 96 - 132
  • [40] Interactive Query-Assisted Summarization via Deep Reinforcement Learning
    Shapira, Ori
    Pasunuru, Ramakanth
    Bansal, Mohit
    Dagan, Ido
    Amsterdamer, Yael
    NAACL 2022: THE 2022 CONFERENCE OF THE NORTH AMERICAN CHAPTER OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS: HUMAN LANGUAGE TECHNOLOGIES, 2022, : 2551 - 2568