[slurm-users] Setting GrpTRES for specific Account only for specific Partition(s)

0 views
Skip to first unread message

Paul Raines via slurm-users

unread,
3:00 PM (3 hours ago) 3:00 PM
to slurm-users

I am trying to figure out how one can limit resources like with GrpTRES
for specific accounts only for specific partitions in the cluster

Lets say I have a cluster with 3 partitions Part1, Part2, and Part3
and 3 accounts Acct1, Acct2, and Acct3

I want Acct1 to be limited to 10 cpus on Part1, Acct2 to be limited
to 5 cpus on Part1, and Acct3 to be limited to 8 cpus on Part1. No
limits for any account on the other two partitions at present.

I have tried

# sacctmgr modify account Acct1 where partition=Part1 set GrpTRES=cpu=10
Modified account associations...
Nothing modified

I have tried creating a QOS to assign

# sacctmgr add qos cpus10
# sacctmgr modify qos cpus10 set GrpTRES=cpu=10
# sacctmgr modify account Acct1 where partition=Part1 set qos=cpus10
Modified account associations...
Nothing modified

I cannot set a Partition QOS since that would apply to all accounts
on the partition giving them the same limit

I cannot just set a general Account limit (or QOS) since that
would apply to all Partitions.

I really don't want to have to have different Accounts for each partition
so I can set Account wide limits. That would make users have to remember
which Account to use with which Partiton.

It looks like the following works but requires having to repeat for all
users in every Account

sacctmgr -i add user User1 account=Acct1 partition=Part1 \
fairshare=parent qos=cpus10 # limits on the Acct1 partition
sacctmgr -i add user User1 account=Acct1 \
fairshare=parent # no limits on any other partition


But in essense is not much better than having different Accounts for each
partition as I now have to maintain multiple user entries per Account: one
for partitios with no-limits and and additional one for each partition
that needs limits. I guess at least users don't have to remember
what account to use when submitting to a partition.

Its seems there should be some simpler way to do this. A way to say
"this is the limit for this Account on this Partion for all current
users and any future users added to the Account"

Am I missing something?
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline <https://www.massgeneralbrigham.org/complianceline> .
Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.


--
slurm-users mailing list -- slurm...@lists.schedmd.com
To unsubscribe send an email to slurm-us...@lists.schedmd.com
Reply all
Reply to author
Forward
0 new messages