ResourcesInfrastructure

HPC workflow orchestration: simplify complex tasks

High-performance computing (HPC) tasks demand robust coordination. This guide explores how declarative workflow orchestration streamlines complex simulations, data processing, and AI model training on HPC systems, boosting efficiency and accelerating insights.

High-Performance Computing is no longer confined to research labs running monolithic batch jobs. Today’s HPC environments mix interactive workloads, petabyte-scale datasets, and AI/ML training across hybrid and multi-cloud infrastructure. That power comes with complexity. Managing these interdependent tasks with a job scheduler alone leads to fragmentation, manual errors, and operations no one can see into.

HPC workflow orchestration is the answer. It provides the control plane that unifies these workloads, guarantees reproducibility, uses expensive hardware efficiently, and folds AI steps into the same pipeline as the compute. This article explains where traditional scheduling falls short, the patterns that modern HPC orchestration relies on, and how Kestra delivers a declarative, unified solution for these demanding environments.

The Evolving Landscape of High-Performance Computing

What is an HPC workflow today?

Traditionally, an HPC workflow meant large-scale, tightly coupled batch jobs on a specialized supercomputer: CPU-bound simulations in Fortran or C++, queued through schedulers like SLURM or LSF. The goal was to maximize throughput for a fairly uniform set of tasks.

The modern landscape is different. It is defined by heterogeneity and distribution:

  • Diverse workloads: Alongside batch jobs, HPC clusters now run interactive sessions for data exploration, real-time processing, and AI/ML training and inference.
  • Data-intensive computing: The bottleneck has shifted from compute to data. Moving and processing petabyte-scale datasets is now an integral part of the workflow, not an afterthought.
  • AI and ML integration: HPC trains the large models behind modern AI. That requires orchestrating a full AI pipeline, from data ingestion and preparation through distributed training to deployment.
  • Hybrid and multi-cloud: Teams mix on-premises clusters, private clouds, and public cloud (AWS Batch, Azure CycleCloud) to reach specialized hardware like GPUs and TPUs and to control cost. That spreads resources, and the management problem, across many environments.

This reality calls for a control plane that looks past a single cluster’s job queue and manages end-to-end processes across the whole ecosystem.

What are the three key components of HPC?

Every HPC environment stands on three pillars, and orchestration touches all of them:

  • Compute: the CPU and GPU nodes that run the calculations. Orchestration decides which jobs land on which nodes and when.
  • Storage: high-throughput parallel file systems (Lustre, GPFS) that keep those nodes fed with data. Orchestration stages data in and collects results out.
  • Network: low-latency interconnects such as InfiniBand that link nodes so a single job can span hundreds of them. Orchestration coordinates the multi-node steps that depend on it.

Why a Job Scheduler Is Not Enough

What is the difference between a workflow and orchestration?

A workflow is the sequence of steps that make up a job: fetch data, preprocess it, run a simulation, write results. Orchestration is the system that executes that sequence reliably, manages the dependencies between steps, retries failures, and records what happened.

Schedulers like SLURM are excellent at queuing jobs and allocating resources inside one cluster. They were never built to manage a process that fetches data from a cloud object store, preprocesses it on a local cluster, runs a simulation on a cloud HPC service, and writes results to a database. A dedicated orchestration platform exists to:

  • Manage cross-system dependencies: workflows routinely span schedulers, object stores, cloud APIs, and databases. Orchestration runs each step in the right order, across each system.
  • Guarantee reproducibility and auditability: in research and regulated industries, reproducing a result is mandatory. Orchestration keeps a version-controlled record of the exact workflow, parameters, and data used for every run.
  • Use expensive hardware efficiently: a single view across all workflows lets the platform decide when and where to run jobs, preventing contention and idle GPU time.
  • Recover from failure: retries, error branches, and alerting mean a single failed step can trigger a recovery, notify an operator, or run a cleanup, instead of killing a multi-day computation.
  • Connect heterogeneous stacks: modern HPC mixes schedulers, storage systems, cloud APIs, and many languages. Orchestration is the layer that lets them work together, which helps solve complex orchestration problems without piling on more tooling.

Where does orchestration sit in the HPC stack?

Orchestration does not replace your scheduler; it sits above it and ties the pieces together. Each layer keeps the job it is good at:

  • Cluster schedulers (SLURM, LSF, PBS Pro): own resource allocation and the job queue inside a single on-premises cluster. Kestra submits jobs to them and tracks state.
  • Cloud batch services (AWS Batch, Azure CycleCloud): provision and scale compute on demand for burst capacity. Kestra triggers and monitors these jobs natively.
  • Container platforms (Kubernetes): run GPU pods and containerized steps. Kestra dispatches work to them and collects artifacts.
  • The orchestrator (Kestra): spans all of the above, owning the cross-system dependencies, data movement, retries, approvals, and the audit trail.

Reading the stack this way avoids a common mistake: trying to force a single-cluster scheduler to coordinate a workflow that crosses clusters, clouds, and data stores. The scheduler keeps doing what it does well, and the orchestrator handles the rest.

Key Challenges in HPC Workflow Management

What are the types of workflows in modern HPC systems?

Modern clusters run two workload types with very different needs, and a real orchestrator has to serve both:

  • Batch jobs are long-running, non-interactive, and can wait in a queue. A multi-day climate simulation is a batch job.
  • Interactive workloads need resources immediately and give a user real-time feedback. A data scientist exploring a dataset in a notebook is running an interactive workload.

The challenge is managing both without standing up separate, siloed systems. An orchestration platform must submit and monitor long-running batch jobs while also triggering on-demand interactive sessions, allocating resources dynamically and preventing one from starving the other.

Integrating AI and data pipelines into HPC

The convergence of AI and HPC creates a data-management problem. Training a large model can require terabytes staged from a data lake to the cluster’s high-performance file system. The orchestrator has to manage that movement, then chain data preparation, training, validation, and deployment into one flow. The ability to automate data pipelines matters as much as managing the compute itself, especially for workloads like a RAG pipeline that combines retrieval and inference.

Modern Approaches to HPC Workflow Orchestration

Declarative workflows and GitOps for HPC

The most reliable way to manage complex workflows is to define them as code. A declarative, YAML-first orchestration model lets teams state the desired end state of a workflow in a human-readable file, and brings GitOps practices to HPC:

  • Versioning: every workflow change is tracked in Git, with a complete history.
  • Collaboration: scientists and engineers iterate on workflow design through pull requests, using tools they already know.
  • Auditability: the Git history is a definitive log of who changed what and when.
  • Reproducibility: any version of a workflow can be checked out and re-run to reproduce a result exactly.

Event-driven architectures for dynamic HPC tasks

Not all HPC work runs on a cron timer. The arrival of a new dataset in an S3 bucket can trigger a processing pipeline; a signal from a monitoring system can launch a diagnostic run. An event-driven orchestration model lets HPC environments react, launching computations precisely when they are needed instead of polling or waiting for the next scheduled window.

Kestra: A Unified Control Plane for HPC Workflows

Kestra is an open-source, declarative orchestration platform that gives modern HPC environments a single control plane. It is built for the heterogeneity and scale of today’s high-performance work.

Organizations already run infrastructure operations on Kestra at scale. Crédit Agricole’s IT production arm (CAGIP) transformed its infrastructure operations and scaled workflows across more than 100 clusters. A Fortune 500 industrial company replaced VMware Aria Automation to secure hybrid cloud automation across both IT and operational technology. Dataport, Germany’s public-sector IT provider, standardized API-driven orchestration on its private cloud.

Kestra’s capabilities map directly onto HPC needs:

  • Declarative YAML: define everything from a single script to a multi-stage pipeline in version-controllable YAML.
  • Polyglot execution: run code in the languages common to HPC, including Python, R, and Bash, with no wrapper code.
  • Plugin ecosystem: out-of-the-box connectivity to cloud providers (AWS, Azure, GCP), databases, messaging systems, and DevOps tools.
  • Hybrid and multi-cloud: deploy on-premises, in a private cloud, or on a Kubernetes cluster to manage HPC resources wherever they live.
  • Visibility: a central UI shows every execution, log, and metric in real time, which shortens debugging.
  • Human-in-the-loop: insert approval steps so a person can sign off before a costly or sensitive job proceeds.

Orchestrating a SLURM job over SSH

Most on-premises HPC still runs through SLURM. Kestra submits and polls SLURM jobs by running shell commands over SSH, so an existing cluster needs no new agent. The workflow below stages input, submits a job with sbatch, waits for completion, then collects results:

id: slurm_hpc_job
namespace: company.hpc
tasks:
- id: stage_input
type: io.kestra.plugin.scripts.shell.Commands
commands:
- "scp ./input.dat user@login-node:/scratch/run/input.dat"
- id: submit_and_wait
type: io.kestra.plugin.scripts.shell.Commands
commands:
- "ssh user@login-node 'sbatch --wait /scratch/run/simulation.sbatch'"
dependsOn:
- stage_input
- id: collect_results
type: io.kestra.plugin.scripts.shell.Commands
commands:
- "scp user@login-node:/scratch/run/results.out ./results.out"
dependsOn:
- submit_and_wait

Bursting to the cloud with AWS Batch

When on-premises capacity runs out, the same orchestration pattern bursts to the cloud. Here Kestra stages data to S3, runs the computation on AWS Batch, then collects the output, all from one declarative file. The AWS Batch blueprint shows a fuller example, and GPU work can run through the Kubernetes GPU pod blueprint:

id: aws_hpc_batch_job
namespace: company.hpc
inputs:
- id: inputDataPath
type: STRING
defaults: "s3://my-hpc-data/input.csv"
- id: outputPath
type: STRING
defaults: "s3://my-hpc-results/output.csv"
tasks:
- id: prepare_data
type: io.kestra.plugin.scripts.shell.Commands
commands:
- "aws s3 cp {{ inputs.inputDataPath }} /mnt/data/input.csv"
- id: run_hpc_job_on_aws_batch
type: io.kestra.plugin.aws.batch.Job
jobName: "my-hpc-computation"
jobQueue: "my-hpc-job-queue"
jobDefinition: "my-hpc-job-definition"
parameters:
INPUT_FILE: "/mnt/data/input.csv"
OUTPUT_FILE: "/mnt/data/output.csv"
dependsOn:
- prepare_data
- id: collect_results
type: io.kestra.plugin.scripts.shell.Commands
commands:
- "aws s3 cp /mnt/data/output.csv {{ inputs.outputPath }}"
dependsOn:
- run_hpc_job_on_aws_batch

Designing Efficient and Scalable HPC Workflows with Kestra

Reliable HPC workflows go past simple job submission. With Kestra you can apply a few practices that keep them efficient at scale:

  • Modularity: break large workflows into smaller, reusable subflows so they are easier to develop, test, and maintain.
  • Resilience: set retry policies and error-handling logic to recover from the transient failures that are common in large distributed systems.
  • Resource control: use dynamic task generation to scale work up or down with demand, which keeps cloud spend in check.
  • Security and compliance: apply workflow governance and use RBAC to control who can run or change critical workflows, with audit logs for reporting.
  • Performance: Kestra is built for high concurrency; its published benchmarks show how it handles large execution volumes.

As HPC keeps merging with AI, data analytics, and cloud computing, the need for a flexible, unified orchestration layer only grows. Platforms that combine declarative definitions, event-driven triggers, and hybrid-cloud reach are set to become the backbone of the next generation of high-performance computing. To start building, explore the full documentation.

Frequently asked questions

Find answers to your questions right here, and don't hesitate to Contact Us if you couldn't find what you're looking for.