BQSched: A Non-intrusive Scheduler for Batch Concurrent Queries via Reinforcement Learning
Not on the map. Why?
Abstract (arXiv)
Most large enterprises build predefined data pipelines and execute them periodically to process operational data using SQL queries for various tasks. A key issue in minimizing the overall makespan of these pipelines is the efficient scheduling of concurrent queries within the pipelines. Existing tools mainly rely on simple heuristic rules due to the difficulty of expressing the complex features and mutual influences of queries. The latest reinforcement learning (RL) based methods have the potential to capture these patterns from feedback, but it is non-trivial to apply them directly due to the large scheduling space, high sampling cost, and poor sample utilization. Motivated by these challenges, we propose BQSched, a non-intrusive Scheduler for Batch concurrent Queries via reinforcement learning. Specifically, BQSched designs an attention-based state representation to capture the complex query patterns, and proposes IQ-PPO, an auxiliary task-enhanced proximal policy optimization (PPO) algorithm, to fully exploit the rich signals of Individual Query completion in logs. Based on the RL framework above, BQSched further introduces three optimization strategies, including adaptive masking to prune the action space, scheduling gain-based query clustering to deal with large query sets, and an incremental simulator to reduce sampling cost. To our knowledge, BQSched is the first non-intrusive batch query scheduler via RL. Extensive experiments show that BQSched can significantly improve the efficiency and stability of batch query scheduling, while also achieving remarkable scalability and adaptability in both data and queries. For example, across all DBMSs and scales tested, BQSched reduces the overall makespan of batch queries on TPC-DS benchmark by an average of 34% and 13%, compared with the commonly used heuristic strategy and the adapted RL-based scheduler, respectively.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 20 of its 53 references that are in the map. First posted on arXiv 27 Apr 2025.
Builds on
20 of 53 references.
References · 20
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
- 2013Playing Atari with Deep Reinforcement Learningcited by 3,211
- 2016Asynchronous Methods for Deep Reinforcement Learningcited by 2,218
- 2015High-Dimensional Continuous Control Using Generalized Advantage Estimationcited by 1,916
- 2018Attention, Learn to Solve Routing Problems!cited by 646
- 2017A Brief Survey of Deep Reinforcement Learningcited by 466
- 2016Reinforcement Learning with Unsupervised Auxiliary Taskscited by 400
- 2018Making Sense of Vision and Touch: Self-Supervised Learning of Multimodal Representations for Contact-Rich Taskscited by 150
8 more
- 2018Learning Scheduling Algorithms for Data Processing Clusterscited by 133
- 2020Phasic Policy Gradientcited by 121
- 2020Bao: Learning to Steer Query Optimizerscited by 62
- 2019An End-to-End Learning-based Cost Estimatorcited by 43
- 2020NeuroCard: One Cardinality Estimator for All Tablescited by 21
- 2021A Unified Deep Model of Learning from both Data and Queries for Cardinality Estimationcited by 21
- 2019DeepDB: Learn from Data, not from Queries!cited by 20
- 2019DL2: A Deep Learning-driven Scheduler for Deep Learning Clusterscited by 14
Built on by
Not cited yet.