Source-linked AI summary

RASER: Resilient Agent Scheduling and Execution Runtime for HPC Clusters

Sima Attar-Khorasani, Matthias Lieber, Siavash Ghiasvand

arXiv:2609.03598v1cs.PF

TL;DR

Agentic workflows bring unpredictable tasks, API calls, and fault-tolerance demands that traditional Slurm scheduling does not address directly. RASER extends Slurm with dynamic work stealing, user-space checkpointing, and container isolation; evaluations report nearly 39% lower makespan than static partitioning while maintaining near-full CPU utilization.

  • Problem

    Slurm’s traditional scheduling does not directly address agent workflows’ unpredictable task durations, external API calls, and fault-tolerance requirements.

    Source: §1 · p. 2
  • Method

    RASER extends Slurm job arrays with shared-filesystem work stealing, application-level state checkpointing with requeue, and Apptainer-based agent isolation.

    Source: §1 · p. 2
  • Results

    Nearly 39% lower makespan than static partitioning on heterogeneous workloads, with near-full CPU utilization.

    Source: §4 · p. 9
  • Takeaways & Limitations

    RASER provides a Slurm-native, installation-free agent execution environment without privileged access.

    Source: §4 · p. 8

    RASER’s scalability with larger numbers of concurrent agents requires further testing.

    Source: §4 · p. 10

Abstract

from arXiv · show

The emergence of modern agents powered by large language models has created a demand for executing long-horizon, autonomous workflows in various domains that require significant computational resources. While High Performance Computing clusters provide the ideal infrastructure for these computation-intensive workloads, traditional HPC job schedulers such as Slurm are not designed for dynamic, agentic workflows characterized by unpredictable task durations, external API calls, and fault tolerance requirements of modern agents. This work presents RASER, a user-space framework that enables seamless execution of agentic workflows on production HPC clusters by extending Slurm's internal primitives. RASER introduces agentic job arrays with work stealing via shared filesystem queues, user-space checkpointing through application-level state serialization combined with Slurm requeue, and Apptainer container-based isolation without requiring any image modifications. Evaluations demonstrate that RASER reduces makespan by nearly 39% compared to static partitioning while achieving near-full CPU utilization. RASER provides resilience against preemption and failures while maintaining minimal checkpoint/restore overhead. It requires no kernel privileges or external database infrastructure, making it an accessible solution for deploying agentic workflows on existing HPC infrastructure.

1 Introduction

Agentic workloads combine long-horizon, computation-intensive tasks with unpredictable tool use and durations, creating challenges for static HPC scheduling and fault tolerance. RASER extends Slurm’s primitives to support dynamic execution on production clusters without modifying the underlying software stack.

1 Introduction

  • Agentic workflows can span minutes to hours, decompose complex objectives into tasks, use external tools and APIs, and remain computation-intensive.These workloads create demand for high-end computational hardware.Source: §1 · p. 1
  • Long-running, fault-prone agents, unpredictable API calls, preemption, heterogeneous task durations, and multi-tenancy make HPC execution difficult.Slurm provides job arrays, requeue, and container integration, but its arrays support static partitioning.Source: §1 · p. 2
  • RASER combines Slurm job arrays, shared-filesystem work stealing, application-level checkpointing with Slurm requeue, and Apptainer isolation without image modification.It runs in userspace without kernel privileges or external database infrastructure.Source: §1 · p. 2

2 Related Work

Prior systems address pieces of heterogeneous HPC workflow execution, but the section identifies no out-of-the-box solution covering agent-specific scheduling, checkpointing, and isolation needs. RASER combines existing Slurm primitives and Apptainer to address that gap without privileged access or persistent infrastructure.

2 Related Work

  • Robust execution of heterogeneous agent ensembles requires dynamic scheduling, fault tolerance, checkpointing, and secure isolation, yet production HPC environments often preclude software-stack changes and high privileges.The section reviews prior workflow, scheduling, fault-tolerance, and containerization systems as partial solutions.Source: §2 · p. 3
  • RADICAL-Pilot, Parsl, Dask, Balsam [14], and TaskVine each lack at least one capability relevant to dynamic, stateful agent workflows.The cited limitations include external database and middleware requirements, static provisioning, or missing Slurm-array integration and application-level checkpointing.Source: §2 · p. 3
  • Ray targets distributed AI primitives, while Apptainer, Shifter, and Charliecloud provide HPC containers with differing administrative coupling or feature limits.DMTCP and CRIU offer process-level checkpointing but are not compatible with capturing application-level agent reasoning state; Kubernetes adds overhead and replaces the existing scheduler.Source: §2 · p. 3
  • RASER combines Slurm job arrays, requeue, and container support to provide agent-ensemble execution without administrative coordination, persistent services, databases, or kernel privileges.The section states that none of the existing approaches provides the required capabilities out of the box.Source: §2 · p. 3

3 RASER’s Architecture and Implementation

RASER coordinates Slurm array agents through shared-filesystem queues and plugins, while container wrappers provide isolated execution and support recovery from failures. Its scheduling, checkpointing, and recovery mechanisms are designed to operate within existing cluster constraints.

3 RASER’s Architecture and Implementation

  • Plugins connect RASER’s generic orchestrator to agent frameworks by handling setup, injecting variables, updating heartbeats, and adding state-saving hooks when needed.Users can supply workload-specific implementations while keeping the main codebase generic.Source: §3 · pp. 4–5
  • Each array task runs a persistent Bash wrapper that launches the Python orchestrator in a container and relaunches it after a process crash.The wrapper passes the workspace, queue path, and API keys through bind mounts and environment variables.Source: §3 · p. 5
  • RASER uses unmodified user containers with a runtime bind-mounted at execution and gives each agent a private workspace to prevent filesystem cross-contamination.Framework settings and API keys are injected at runtime.Source: §3 · p. 5
  • On preemption or wall-time expiration, agents serialize and archive their workspace and state, exit with code 99, and resume from the checkpoint after Slurm requeues the job.The shared filesystem also stores checkpoints, logs, task queues, and results.Source: §3 · p. 6
  • Agents dynamically claim or reclaim queued tasks using shared-filesystem polling and atomic file locking, decoupling task assignment from Slurm array indices.Peers may reclaim tasks whose timestamps have gone stale for the configured interval, three minutes by default.Source: §3 · p. 6
  • Resource-aware tiers route tasks with elevated failure counts toward higher-memory agents, while lower-tier agents prioritize fresh tasks.This policy is intended to keep lightweight tasks from monopolizing high-memory agents.Source: §3 · p. 6
  • Task failures can trigger retries, re-queuing, or reassignment, while job-level failures may use Slurm requeue; when checkpointing fails, lost computation must be reexecuted.The implementation assumes Apptainer 1.1+ with user namespaces, a POSIX filesystem supporting fcntl, Slurm 20.02+ with requeue and signal support, and Python 3.8+.Source: §3 · pp. 7–8

4 Evaluation and Discussions

On Romeo, RASER reduced makespan on heterogeneous workloads while maintaining near-full CPU utilization, and agent states were restored after injected failures. The evaluation also identifies larger-scale filesystem contention as an area needing further testing.

  • RASER combines non-coordinated multi-tier load balancing with a user-space, installation-free execution environment that requires no privileged access.Source: §4 · p. 8
  • The comparison used 60 SWE-bench-Lite tasks with mini-SWE-agent; direct comparisons against other frameworks were not possible.Source: §4 · p. 8
  • Nearly 39% lower makespan than static partitioning on heterogeneous workloads, with near-full CPU utilization.Source: Figure 4 · p. 9, §4 · p. 9
  • Under random SIGTERM fault injection, agent states were restored and agents completed all tasks, though lost-computation intervals were not reported.Source: §4 · p. 9
  • Checkpoint/restore overhead was under 30 seconds on NVMe-backed filesystems, but larger-scale lock-contention testing remains future work.Source: §4 · pp. 9–10

5 Conclusion and Future Work

RASER extends Slurm primitives with work stealing, application-level checkpointing, and container isolation in a user-space framework. Evaluations show reduced makespan with near-full CPU utilization, while model switching, hung-agent detection, and GPU provisioning remain future work.

  • Evaluations show reduced makespan compared with static partitioning while achieving near-full CPU utilization.Source: §5 · p. 10
  • RASER combines Slurm job arrays and shared-filesystem work stealing with application-level checkpointing and container-based isolation.Source: §5 · p. 10
  • Its installation-free, user-space design requires no kernel privileges or external database infrastructure.Source: §5 · p. 10
  • Future work includes model switching, distinguishing reasoning from hung agents, and GPU provisioning; current evaluations use CPU-only allocations making external API calls.Source: §5 · p. 10
Loading 2609.03598v1…