Do you have “AccountingStorageEnforce” defined?
We use:
AccountingStorageEnforce=associations,limits,qos
-Greg
On 24/06/2025, 16:17, "laddaoui--- via slurm-users" <slurm-users@lists.schedmd.com> wrote:
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-leave@lists.schedmd.com