Tous les labs

Schedule and inspect Slurm jobs

Intermediate ~34 minhpc

Create a simulated cluster, submit jobs and an array, advance scheduler time, and use queue/accounting commands to explain states.

Simulateur déterministe — tape une commande (help) pour commencer.
hpc@cluster:~$
Objectifs
  • Create a two-node Slurm cluster.
  • Submit at least two jobs including an array.
  • Inspect partition and queue state.
  • Advance time until one job completes and inspect accounting.
Indices
Voir la solution
hpc create-cluster --nodes 2 --instance-type c7i.4xlarge
sinfo
sbatch --job-name solver --nodes 2 --time 4
sbatch --job-name sweep --nodes 1 --time 5 --array 1-4
squeue
tick 6
sacct