High Availability
Exercises¶
- Check HA configuration
Examine the running Slurm configuration to determine whether high availability is configured for slurmctld. Identify the primary and backup controller hostnames.
Hint / Solution
# Check SlurmctldHost entries in the running configuration
scontrol show config | grep SlurmctldHost
# If HA is configured, you'll see two entries like:
# SlurmctldHost[0] = controller1
# SlurmctldHost[1] = controller2
# You can also check slurm.conf directly
grep SlurmctldHost /etc/slurm/slurm.conf
# Verify StateSaveLocation is on shared storage (required for HA)
scontrol show config | grep StateSaveLocation
slurm-training-val (Slurm 25.11.4, ParallelCluster 3.15.0).
- Verify controller status
Determine which slurmctld instance is currently the active controller and which is the standby. Confirm that the active controller is responding to requests.
Hint / Solution
# Ping the controller — shows which host is responding
scontrol ping
# Expected output for HA setup:
# Slurmctld(primary) at controller1 is UP
# Slurmctld(backup) at controller2 is UP
# Verify the cluster is functional by checking node and job status
sinfo --summarize
squeue --summarize
# Check slurmctld logs for failover events (on controller nodes)
grep -i failover /var/log/slurm/slurmctld.log | tail -5
slurm-training-val (Slurm 25.11.4, ParallelCluster 3.15.0).
$ scontrol ping
Slurmctld(primary) at ip-172-31-94-160 is UP
$ sinfo --summarize
PARTITION AVAIL TIMELIMIT NODES(A/I/O/T) NODELIST
batch* up infinite 0/4/0/4 batch-dy-compute-[1-4]
debug up infinite 0/2/0/2 debug-dy-small-[1-2]
gpu up infinite 0/1/0/1 gpu-dy-t4-1
highmem up infinite 0/1/0/1 highmem-dy-large-1