TL;DR
Scientific workflows often struggle with inefficient task scheduling on diverse computing infrastructures due to inaccurate runtime predictions. This paper introduces "Reshi," a novel system that recommends optimal task-to-node assignments by learning from hardware benchmarks and historical task performance, bypassing the need for precise runtime estimates. Reshi significantly outperforms existing schedulers, reducing workflow completion times by up to 18% even with imperfect predictions.
What Problem Does This Paper Address?
Modern scientific research heavily relies on complex computational workflows, which are essentially directed acyclic graphs (DAGs) of tasks. These workflows process massive datasets and can take days or weeks to complete on large computing clusters. The challenge lies in efficiently scheduling these tasks onto the available compute nodes, especially when both the tasks and the nodes are heterogeneous. Tasks have varying resource demands (CPU, memory, I/O), and cluster nodes, due to upgrades or hardware failures, often have different performance characteristics. Traditional scheduling algorithms often require accurate predictions of how long each task will take on each specific node. However, these predictions are notoriously difficult to make accurately, with typical errors ranging from 10% to 20%. This imprecision leads to suboptimal scheduling decisions, longer overall workflow execution times (makespans), and wasted computational resources.
Methods
Reshi tackles this problem by shifting the focus from precise runtime prediction to a recommendation system that ranks nodes for tasks. The approach involves four key steps:
- Cluster Profiling: The system first profiles the available compute nodes using a suite of benchmarks (e.g., John the Ripper for CPU throughput, RAMspeed for memory performance,
fiofor I/O) to gather detailed performance insights. This profiling is done once per node and can be rerun if the cluster configuration changes. - Model Creation: Reshi then leverages historical workflow execution data, which includes task performance metrics (CPU usage, memory, I/O), and combines it with the infrastructure profiling data. If historical data is scarce, a short profiling run with reduced inputs can generate initial traces. This combined information is used to train a regression tree model.
- Ranking and Recommendation: For a given task, Reshi filters the available nodes to those that meet the task's basic resource requirements. The trained regression tree model then ranks these allocatable nodes based on their suitability for the task, effectively creating a prioritized list of recommended nodes.
- Usage in Scheduling: The generated ranks are then fed to a scheduler. The paper proposes two simple task prioritization strategies (based on the number of child tasks or average historical runtime) to demonstrate how Reshi's recommendations can be integrated into a scheduling workflow, allowing schedulers to rely on these ranks instead of error-prone runtime estimates.
Datasets
The evaluation uses three representative real-world scientific workflows from the popular nf-core repository: Viralrecon, Eager (for ancient DNA analysis), and Chipseq (for peak-calling).
For infrastructure profiling, the authors utilized the Phoronix Test Suite and specific benchmarks like John the Ripper, Linux kernel build time, RAMspeed, Stream, and fio.
For simulation and evaluation, they used 27 different AWS EC2 machine types. To simulate realistic scenarios, they created 200 random heterogeneous clusters, each comprising 40 nodes.
Key Insights and Ideas
- Decoupling Scheduling from Runtime Prediction: The most significant insight is that accurate runtime prediction is not strictly necessary for effective scheduling on heterogeneous infrastructures. Reshi demonstrates that a well-trained recommendation system can provide sufficient guidance to schedulers, bypassing the inherent inaccuracies of runtime estimation.
- Leveraging Heterogeneity: By profiling both hardware and task performance, Reshi can effectively exploit the heterogeneity of modern computing clusters, matching tasks to nodes that are best suited for them, even if their absolute performance characteristics are not perfectly known.
- Robustness to Prediction Errors: Reshi's approach is inherently robust to runtime prediction errors. Since it doesn't directly use predicted runtimes for ranking, its performance remains consistent even when prediction errors increase, unlike traditional schedulers that degrade significantly.
- Practical Implementation: The paper presents a practical implementation, including a cluster benchmarking tool and the recommender system itself, making the approach actionable.
Key Results
- Reshi outperforms state-of-the-art schedulers like HEFT, MinMin, and Round-Robin.
- When paired with a simple scheduler, Reshi achieved a mean makespan reduction of 7.18% for a normally distributed task runtime prediction error of 15%.
- For an exponentially distributed task runtime prediction error of 15%, Reshi achieved an even greater mean makespan reduction of 18.01%.
- Reshi's 95th percentile makespan values were consistently lower than the 90th percentile of baseline schedulers across all tested workflows.
- Baseline schedulers showed a significant degradation in performance and increased variance in makespans as prediction errors increased, a problem Reshi largely avoids.
Limitations and Future Work
- Scheduler Integration: The paper proposes simple task prioritization strategies to demonstrate Reshi's integration. More sophisticated schedulers could further leverage Reshi's ranks to optimize task placement and resource utilization.
- Dynamic Cluster Changes: While the paper mentions rerunning profiling for changed cluster configurations, the system's ability to adapt to rapidly changing or dynamic cluster environments (e.g., cloud elasticity) could be further explored.
- Task Prioritization: The current work focuses on recommending nodes for tasks. Future work could explore how Reshi's recommendations can be combined with more advanced task prioritization strategies to further optimize scheduling.
Summary updated