Reservations

Modified

November 10, 2023

Please refer to How to Request a Resource Reservation? in the FAQ section.

Option Description
-r, --reservation Allocate resources for the job from the specified reservation
-p, --partition Note that if a resource reservation provides nodes from multiple partitions it is required to use the partition option as well. Otherwise the schedule will not be able to determine which resources to use

Reference a resource reservation with salloc, srun, and sbatch:

# request a specific reservation for allocation
sbatch --reservation=$name ...

Alternatively use following input environment variables:

Environment Variable Description
SLURM_RESERVATION Use a reservation with srun
SALLOC_RESERVATION Use a reservation with salloc
SBATCH_RESERVATION Use a reservation with sbatch

Reservations in Slurm allow operators to book resources for accounts at a particular point in time. This is useful to guarantee the availability of resources ahead of time. Thus, allows experiments and working groups to plan the execution of a future work-load. List available reservations with the scontrol 1 command:

# list all reservation in the system
scontrol show reservations

Footnotes

  1. scontrol Manual Page, SchedMD
    https://slurm.schedmd.com/scontrol.html↩︎