The container that includes fully functional single node Slurm Workload Manager
3.6K
The container includes fully functional single node (both controller and worker are same machine) Slurm Workload Manager. The container adjusts /etc/slurm/slurm.conf and /etc/slurm/slurmdbd.conf configuration files based on available number of cores, memory and the hostname at the startup.
Following command can be used to run the container,
docker run --rm --platform linux/amd64 --hostname=linux -it turuncu/slurm:latest bash
The information about the Slurm partition can be seen using sinfo and node information can be seen using scontrol show node commands.
To test the container, following simple command can be used (the number of tasks given by -n command needs to be less or equal to the number of core available),
srun -n 6 hostname
or following job submission script (test.job) can be used to submit job to scheduler,
#!/bin/bash
#
#SBATCH --job-name=test
#SBATCH --nodes=1
#SBATCH --ntasks=1
##SBATCH --mem=1G
##SBATCH --partition=debug
#SBATCH --time=00:10:00
#SBATCH --output=%x_%j.out
#SBATCH --error=%x_%j.err
echo "Hello World"
echo "Hello Error" 1>&2
and job can be submitted using sbatch test.job. The job can be checked by issuing squeue command.
Content type
Image
Digest
sha256:958ec58b5…
Size
137.3 MB
Last updated
over 2 years ago
docker pull turuncu/slurm