[slurm-users] How to set default partition in slurm configuration

1,976 views
Skip to first unread message

Xaver Stiensmeier

unread,
Jan 25, 2023, 9:04:23 AM1/25/23
to slurm...@lists.schedmd.com
Dear slurm-user list,

I am aware that this question sounds very simple and it should be
resolved by just taking one look at the documentation, but for some
reason I am unable to find where I can set the default partition in the
slurm configuration.

For me it feels like simply the last added configuration becomes
automatically the default configuration, but I might be wrong in this
assessment of the situation. However, I would prefer just setting a key
instead of fiddling around with the positioning of partition definitions.

I only found reference to the "default partition" in `JobSubmitPlugins`
and this might be the solution. However, I think this is something so
basic that it probably shouldn't need a plugin so I am unsure.

Can anyone point me towards how setting the default partition is done?

Best regards,
Xaver Stiensmeier


Diego Zuccato

unread,
Jan 25, 2023, 9:18:37 AM1/25/23
to slurm...@lists.schedmd.com
Hi Xaver.

Just add "Default=Yes" to the definition of the partition you want to
have as default. See
https://slurm.schedmd.com/slurm.conf.html#OPT_Default

If you just want Slurm select any partition that maches user's requests,
you can use
JobSubmitPlugins=all_partitions

Diego
--
Diego Zuccato
DIFA - Dip. di Fisica e Astronomia
Servizi Informatici
Alma Mater Studiorum - Università di Bologna
V.le Berti-Pichat 6/2 - 40127 Bologna - Italy
tel.: +39 051 20 95786

Reply all
Reply to author
Forward
0 new messages