<div dir="ltr">Generally, the add, modify, etc sacctmgr <br><div>commands want an "user" or "account" entity, but can modify associations though this.</div><div><br></div><div>E.g., if user baduser should have GrpTRESmin of cpu=1000 set on partition special, use something like</div><div>sacctmgr add user name=baduser partition=special account=testacct grptresmin=cpu=1000</div><div>if there is no association for that user, account and partition already, or <br></div><div>sacctmgr modify user where user=baduser partition=special set grptresmin=cpu=1000</div><div><br></div><div>To place the restriction on an account instead, add/modify the account with a partition field.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Jan 15, 2019 at 11:33 AM Skouson, Gary <<a href="mailto:gbs35@psu.edu">gbs35@psu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Slurm accounting info is stored based on user, cluster, partition and account. I'd like to be able to enforce limits for an account based on the partition it's running in. <br>
<br>
Sadly, I'm not seeing how to use sacctmgr to change the partition as part of the association. The add, modify and delete seem to only apply to user, account and cluster entities. How do I add a partition to a particular account association, and set GrpTRES for an association that includes a partition. <br>
<br>
I know I can change the partition configuration in slurm.conf and use AllowAccounts, but that doesn't change the usage limits on a partition for a particular account.<br>
<br>
Maybe there's another way to work around this that I'm missing.<br>
<br>
I'd like to be able to use GrpTRESMins to limit overall cumulative account usage. I also want to limit accounts to differing resources (GrpTRES) on some partitions (for preemption/priority etc.)<br>
<br>
Thoughts?<br>
<br>
-----<br>
Gary Skouson<br>
<br>
<br>
<br>
<br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Tom Payerle <br>DIT-ACIGS/Mid-Atlantic Crossroads <a href="mailto:payerle@umd.edu" target="_blank">payerle@umd.edu</a><br></div><div>5825 University Research Park (301) 405-6135<br></div><div dir="ltr">University of Maryland<br>College Park, MD 20740-3831<br></div></div></div></div></div></div>