Hello.

I have a remote license configured in slurm and I'd like to limit the number of licenses each user can use.

The license shows up correctly in both "scontrol show lic", "sacctmgr show tres" and "sacctmgr show resource", but attempting to use QoS to set a limit on the number of licenses does not work.

The QoS otherwise works as expected, for instance if I do

sacctmgr modify qos set maxtrespu=cpu=2 where name=qos_debug

then jobs will start pending if I try to use more than two cores.

BUT: if I try to limit the number of licenses doing

sacctmgr modify qos set maxtrespu=license/remotelic=1 where name=qos_debug

then this setting shows up in "sacctmgr show qos qos_debug", but does not appear to do anything.

I can launch any number of "srun -L remotelic@127.0.0.1 sleep 100 &" and they start running immediately (whereas I'd expect the first job to run, and subsequent jobs to pend).

If anyone could tell me what the problem might be, it'd be much appreciated. I've observed this behaviour on both 17.02.5 and 17.02.7.

Thank you,

Johan

Reply via email to