Leveraging Reinforcement Learning for Task Resource Allocation in Scientific Workflows
arXiv:2211.12076 · doi:10.1109/BigData55660.2022.10020688
Abstract
Scientific workflows are designed as directed acyclic graphs (DAGs) and consist of multiple dependent task definitions. They are executed over a large amount of data, often resulting in thousands of tasks with heterogeneous compute requirements and long runtimes, even on cluster infrastructures. In order to optimize the workflow performance, enough resources, e.g., CPU and memory, need to be provisioned for the respective tasks. Typically, workflow systems rely on user resource estimates which are known to be highly error-prone and can result in over- or underprovisioning. While resource overprovisioning leads to high resource wastage, underprovisioning can result in long runtimes or even failed tasks. In this paper, we propose two different reinforcement learning approaches based on gradient bandits and Q-learning, respectively, in order to minimize resource wastage by selecting suitable CPU and memory allocations. We provide a prototypical implementation in the well-known scientific workflow management system Nextflow, evaluate our approaches with five workflows, and compare them against the default resource configurations and a state-of-the-art feedback loop baseline. The evaluation yields that our reinforcement learning approaches significantly reduce resource wastage compared to the default configuration. Further, our approaches also reduce the allocated CPU hours compared to the state-of-the-art feedback loop by 6.79% and 24.53%.
Paper accepted in 2022 IEEE International Conference on Big Data Workshop BPOD 2022
References in corpus (7)
- Tarema: Adaptive Resource Allocation for Scalable Scientific Workflows in Heterogeneous Clusters
- Lotaru: Locally Estimating Runtimes of Scientific Workflow Tasks in Heterogeneous Clusters
- Reshi: Recommending Resources for Scientific Workflow Tasks on Heterogeneous Infrastructures
- Get Your Memory Right: The Crispy Resource Allocation Assistant for Large-Scale Data Processing
- Macaw: The Machine Learning Magnetometer Calibration Workflow
- Towards Advanced Monitoring for Scientific Workflows
- Ruya: Memory-Aware Iterative Optimization of Cluster Configurations for Big Data Processing
Cited by in corpus (6)
- Sizey: Memory-Efficient Execution of Scientific Workflow Tasks
- Towards Advanced Monitoring for Scientific Workflows
- KS+: Predicting Workflow Task Memory Usage Over Time
- The Common Workflow Scheduler Interface: Status Quo and Future Plans
- Scaling on Frontier: Uncertainty Quantification Workflow Applications using ExaWorks to Enable Full System Utilization
- Ponder: Online Prediction of Task Memory Requirements for Scientific Workflows