Hi Kamil,
It is possible to set all QOS's "Preempt" value with two sacctmgr commands. For
example, if all the existing QOS have PreemptMode as "cluster", which seems
likely if this is the first time QOS preemption is being set up, then you can
set the PreemptMode of the targeted QOS to "suspend" followed by using a second
sacctmgr command to add that QOS to the "Preempt" list of all the rest:
> $ sacctmgr show qos format=name,preempt,preemptmode
> NamePreempt PreemptMode
> -- -- ---
> normalcluster
> highcluster
>lowcluster
> $ sacctmgr update qos where name=low set PreemptMode="suspend"
> Modified qos...
> low
> Would you like to commit changes? (You have 30 seconds to decide)
> (N/y): y
> $ sacctmgr show qos format=name,preempt,preemptmode
> NamePreempt PreemptMode
> -- -- ---
> normalcluster
> highcluster
>lowsuspend
> $ sacctmgr update qos where PreemptMode=cluster set Preempt=+low
> Modified qos...
> normal
> high
> Would you like to commit changes? (You have 30 seconds to decide)
> (N/y): y
> $ sacctmgr show qos format=name,preempt,preemptmode
> NamePreempt PreemptMode
> -- -- ---
> normallow cluster
> highlow cluster
>lowsuspend
Regards,
--Megan
--
slurm-users mailing list -- slurm-users@lists.schedmd.com
To unsubscribe send an email to slurm-users-le...@lists.schedmd.com