Skip to contents

Micro-Pilot Profiling & Resource Sizing

Empirically profile OS RSS & runtime, size SLURM arrays, load-balance heterogeneous workloads, audit closures, and inspect post-mortem efficiency.

pilot_run()
Run an Empirical Micro-Pilot to Profile Runtime and Peak RSS Memory
plot(<slurmpilot_pilot>)
Plot a Micro-Pilot Profile
estimate_resources()
Estimate Optimal SLURM Array Resources from a Micro-Pilot
resource_spec()
Construct an Explicit SLURM Resource Specification
scale_resources()
Scale Memory and/or Walltime of a Resource Specification
as_slurm_flags()
Convert a Resource Specification into SLURM CLI Flags
plan_chunks()
Plan Load-Balanced SLURM Array Chunk Assignments
inspect_job_globals()
Inspect Worker Function Closures, Globals, and Serialization Bundle Size
slurm_efficiency_report()
Audit Post-Mortem SLURM Memory, Walltime, and Load-Balance Efficiency
plot(<slurmpilot_efficiency>)
Plot a Post-Mortem SLURM Resource Efficiency Report

Multi-Stage Pipelines & Job Lifecycle

User-facing S3 workflow API for single-stage jobs, autopilot runs, and multi-stage dependent HPC DAGs.

slurm_autopilot()
End-to-End Micro-Pilot to Cluster Autopilot
slurm_job_spec()
Construct a SLURM Array Job Specification
slurm_submit()
Submit a Job to a slurmpilot Scheduler Backend
slurm_status()
Poll Current Status of a Submitted Job
slurm_wait()
Wait for a Job to Reach a Terminal State
slurm_retry()
Surgically Retry Failed, OOM, Timed-Out, or Cancelled Chunks
slurm_retry_history()
Retrieve Per-Chunk Surgical Retry Provenance for a Job
slurm_cancel()
Cancel Active Chunks of a Submitted Job
slurm_logs()
Retrieve Stdout and Stderr Logs for a Submitted Job
slurm_collect()
Collect Ordered Task Results from a Completed Job
slurm_stage()
Define a Stage in a Multi-Stage SLURM Pipeline DAG
slurm_pipeline()
Construct a Validated Multi-Stage SLURM Pipeline DAG
slurm_pipeline_run()
Execute a Multi-Stage SLURM Pipeline DAG
slurm_pipeline_status()
Inspect Status Across All Stages of a SLURM Pipeline Run
slurm_pipeline_collect()
Collect Results from a Completed SLURM Pipeline Run

Scheduler Backends

Pluggable R6 scheduler interface with a local parallel mock SLURM simulator and production SSH/SLURM adapter.

SlurmBackend
Abstract Base Class for slurmpilot Scheduler Backends
MockSlurmBackend
Local Parallel Mock SLURM Scheduler Backend
mock_slurm_backend()
Create a Local Parallel Mock SLURM Backend
SlurmSshBackend
Production SSH/SLURM Scheduler Backend
slurm_ssh_backend()
Create an SSH/SLURM Scheduler Backend

HPC Environment, Apptainer & Container Handoff

Scan dependencies, detect compiled toolchains, emit reproducible Apptainer .def recipes and sbatch scripts, and attach rcapsule containers.

scan_project_env()
Scan an R Project for Package Dependencies and Compiled HPC Toolchains
toolchain_registry()
Built-In Compiled Toolchain and System Dependency Registry
build_apptainer_def()
Build a Reproducible Apptainer/Singularity .def Recipe
use_rcapsule_container()
Attach a Validated Apptainer or rcapsule Container to a SLURM Job Spec
render_sbatch_script()
Render a Self-Contained SLURM sbatch Array Submission Script
render_worker_script()
Generate the Standalone Base-R Cluster Worker Script

Non-Blocking Shiny Offload Modules

Drop-in bslib/Shiny UI and server modules plus the bundled interactive Monte Carlo demo studio.

mod_hpc_submit_ui()
Shiny UI Module for Micro-Pilot Auto-Sizing and HPC Job Submission
mod_hpc_submit_server()
Shiny Server Module for Non-Blocking Micro-Pilot and HPC Submission
mod_hpc_monitor_ui()
Shiny UI Module for Live Cluster Telemetry and Surgical Job Recovery
mod_hpc_monitor_server()
Shiny Server Module for Non-Blocking Cluster Monitoring and Recovery
run_demo_app()
Launch the Bundled Non-Blocking slurmpilot Demo Shiny App

Security, Reproducibility & SLURM Parsers

Checkpoint SHA-256 verification, independent L’Ecuyer-CMRG parallel RNG streams, SSH/SCP builders, and SLURM output parsers.

verify_checkpoint()
Verify SHA-256 Checksum and Readability of a Chunk Checkpoint
slurmpilot_rng_stream()
Derive an Independent L'Ecuyer-CMRG Parallel RNG Stream
build_ssh_args()
Build Safe Non-Interactive SSH Command Arguments
build_scp_args()
Build Safe Non-Interactive SCP Command Arguments
build_scancel_command()
Build a SLURM scancel Command String
parse_sbatch_output()
Parse SLURM sbatch Output to Extract Job ID
parse_squeue_output()
Parse Pipe-Delimited SLURM squeue Output
parse_sacct_output()
Parse Pipe-Delimited SLURM sacct Accounting Output
format_slurm_time()
Format Duration in Seconds as a SLURM Time String
parse_slurm_time()
Parse a SLURM Time String to Seconds
format_slurm_mem()
Format Memory in Megabytes as a SLURM --mem String
parse_slurm_mem()
Parse a SLURM Memory String to Megabytes
format_slurm_array_indices()
Format Integer Array Indices into Compact SLURM --array Notation
parse_slurm_array_spec()
Parse a SLURM Array Expression into Expanded Integer Indices

Package Overview

slurmpilot slurmpilot-package
slurmpilot: Auto-Profiling 'SLURM' Cluster Orchestration and 'Shiny' Offload