Hello everyone,

I'm trying to use QoS to enforce resource limits on an association, but I'm 
having trouble with proper enforcement.

I created a QoS with resource limits:
```
sacctmgr add qos qos_gpus flags=denyonlimit,overpartqos maxjobsperuser=4 
maxtresperjob=gres/gpu=1
```

Then I assigned it to an account:
```
sacctmgr modify account name=account-a set qos=qos_gpus defaultqos=qos_gpus
systemctl restart slurmctld
```

Users in this account can bypass the QoS limits by explicitly specifying a 
different QoS when submitting jobs:
```
srun --qos=(normal|qos_gpus) ...
```

Even though I set `defaultqos=qos_gpus`, users can still choose any available 
QoS and bypass the intended resource limits.

My question is: How can I restrict users to only using their assigned QoS and 
prevent them from specifying other QoS options? Is there a configuration I'm 
missing to enforce QoS restrictions properly?

Best,

--- info about my setup
slurm version : tested on 23.11.4 and 23.02.7
AccountingStorageEnforce = associations,limits
EnforcePartLimits       = ALL

-- 
slurm-users mailing list -- slurm-users@lists.schedmd.com
To unsubscribe send an email to slurm-users-le...@lists.schedmd.com

Reply via email to