[slurm-users] Preferential scheduling on a subset of nodes

Sean McGrath smcgrat at tchpc.tcd.ie
Wed Dec 1 16:32:07 UTC 2021


Apologies for having to ask such a basic question.

We want to be able to give some users preferential access to some
nodes. They bought the nodes which are currently in a 'long' partition
as their jobs need a longer walltime.

When the purchasing users group is not using the nodes I would like
other users to be able to run jobs on those nodes but when the owners
group submit jobs I want those jobs to be queued as soon as currently
running jobs on those nodes are finished. My understanding is that
preemption won't work in these circumstances as it will either cancel or
suspend currently running jobs, I want the currently running jobs to
finish before the preferential ones start. 

I'm wondering if QOS could do what we need here. Can the following be
sanity checked please.

Put the specific nodes in both the long and the compute (standard)
partition. Then restrict access to the long partition to specified users
so that all users can access them in the compute queue but only a subset
of users can use the longer wall time queue.

$ scontrol update PartitionName=long Users=user1,user2

We currently don't have QOS enabled so change that in slurm.conf and
restart the slurmctld.

Then create a qos and modify its priority
$ sacctmgr add qos boost
$ sacctmgr modify qos boost set priority=10
$ sacctmgr modify user user1 set qos=boost

Will that do what I expect please?

Many thanks and again apologies for the basic question.


Sean McGrath M.Sc

Systems Administrator
Trinity Centre for High Performance and Research Computing
Trinity College Dublin

sean.mcgrath at tchpc.tcd.ie


+353 (0) 1 896 3725

More information about the slurm-users mailing list