[Paper Review] Balsam: Automated Scheduling and Execution of Dynamic, Data-Intensive HPC Workflows
Balsam is a workflow management system that automates scheduling and execution of dynamic, data-intensive HPC workloads by packaging heterogeneous tasks into adaptive ensemble jobs via a pilot launcher. It enables fault-tolerant, load-balanced execution of serial and parallel programs without code modification, achieving high resource utilization and reducing scripting overhead in large-scale campaigns, as demonstrated in hyperparameter tuning and quantum chemistry workflows.
We introduce the Balsam service to manage high-throughput task scheduling and execution on supercomputing systems. Balsam allows users to populate a task database with a variety of tasks ranging from simple independent tasks to dynamic multi-task workflows. With abstractions for the local resource scheduler and MPI environment, Balsam dynamically packages tasks into ensemble jobs and manages their scheduling lifecycle. The ensembles execute in a pilot "launcher" which (i) ensures concurrent, load-balanced execution of arbitrary serial and parallel programs with heterogeneous processor requirements, (ii) requires no modification of user applications, (iii) is tolerant of task-level faults and provides several options for error recovery, (iv) stores provenance data (e.g task history, error logs) in the database, (v) supports dynamic workflows, in which tasks are created or killed at runtime. Here, we present the design and Python implementation of the Balsam service and launcher. The efficacy of this system is illustrated using two case studies: hyperparameter optimization of deep neural networks, and high-throughput single-point quantum chemistry calculations. We find that the unique combination of flexible job-packing and automated scheduling with dynamic (pilot-managed) execution facilitates excellent resource utilization. The scripting overheads typically needed to manage resources and launch workflows on supercomputers are substantially reduced, accelerating workflow development and execution.
Motivation & Objective
- Address the lack of flexible, user-friendly job scheduling and execution tools for dynamic, data-intensive HPC workflows on leadership-class systems.
- Reduce the scripting and configuration overhead traditionally required to manage large-scale job campaigns on supercomputers.
- Enable dynamic workflows where tasks can be created or killed at runtime, supporting complex, evolving computational campaigns.
- Improve resource utilization by dynamically packing tasks into ensemble jobs that align with local scheduler policies.
- Provide fault tolerance and provenance tracking for large-scale, multi-user HPC campaigns without application code changes.
Proposed method
- Uses a service-database-launcher architecture with a centralized task database managed via Python and Django ORM for workflow state and provenance.
- Automatically groups tasks with similar resource requirements into dynamically sized ensemble jobs to match scheduler policies and improve throughput.
- Employs a pilot launcher application that executes ensemble jobs, managing concurrent execution of heterogeneous serial and MPI-parallel tasks.
- Supports fault tolerance by isolating task-level failures and providing configurable recovery mechanisms without modifying user applications.
- Integrates with local schedulers (e.g., SLURM, LSF) via abstractions, enabling seamless job submission and lifecycle management.
- Exposes command-line and Python APIs for workflow creation, monitoring, and dynamic modification, including real-time task spawning and killing.
Experimental results
Research questions
- RQ1How can dynamic, data-intensive HPC workflows be scheduled and executed with minimal user configuration and maximum resource utilization?
- RQ2To what extent can automated job packing into ensemble jobs improve throughput in leadership-class HPC environments with restrictive scheduler policies?
- RQ3Can a pilot-based launcher architecture achieve efficient, fault-tolerant execution of heterogeneous, mixed-parallelism tasks without application modifications?
- RQ4How effective is Balsam in reducing development and operational overhead for large-scale, high-throughput computational campaigns?
- RQ5What is the performance overhead of Balsam’s automation layer in comparison to hand-optimized batch job scripts?
Key findings
- Balsam significantly reduces scripting overhead, enabling the entire 1600-point quantum chemistry potential energy surface computation with under 60 lines of Python code.
- The system achieved excellent resource utilization by load-balancing 1600 two-node MPI tasks across 128 nodes, demonstrating effective ensemble packing and scheduling.
- Balsam outperformed typical hand-written ensemble job scripts on Theta, where only one aprun could be launched per second, indicating low runtime overhead.
- The system supports dynamic workflows where tasks can be created or killed at runtime, enabling adaptive execution in response to changing workloads.
- Provenance data, including task history and error logs, are automatically stored in the database, enabling full campaign reproducibility and debugging.
- Existing binaries, such as NWChem, were integrated into workflows with no code changes, confirming the system’s transparency and application transparency.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.