Hello, We have a very special purpose partition "realtime" that I need to gate access to in a rather detailed way. Only certain users have access to it, each user will potentially have different limits to it (e.g., GrpTRES, MaxJobs, etc). Is there a way I can add a new association for these users specifically for the a particular qos? What I'm after to to allow these users to operate with their usual limits in other qos (e.g., normal), but get different limits when using the realtime qos. nid00837:~ # sacctmgr add user dmj cluster=cori qos=premium account=mpccc Nothing new added. nid00837:~ # sacctmgr show assoc where user=dmj cluster=cori Cluster Account User Partition Share GrpJobs GrpTRES GrpSubmit GrpWall GrpTRESMins MaxJobs MaxTRES MaxTRESPerNode MaxSubmit MaxWall MaxTRESMins QOS Def QOS GrpTRESRunMin ---------- ---------- ---------- ---------- --------- ------- ------------- --------- ----------- ------------- ------- ------------- -------------- --------- ----------- ------------- -------------------- --------- ------------- cori fungalp dmj 1 bb/cray=0 normal cori m342 dmj 1 bb/cray=0 normal cori fnglanot dmj 1 bb/cray=0 normal cori plant dmj 1 bb/cray=0 normal cori mpccc dmj 1 normal nid00837:~ # nid00837:~ # sacctmgr modify user set MaxJobs=1 where user=dmj qos=premium Nothing modified nid00837:~ # sacctmgr show assoc where user=dmj cluster=cori Cluster Account User Partition Share GrpJobs GrpTRES GrpSubmit GrpWall GrpTRESMins MaxJobs MaxTRES MaxTRESPerNode MaxSubmit MaxWall MaxTRESMins QOS Def QOS GrpTRESRunMin ---------- ---------- ---------- ---------- --------- ------- ------------- --------- ----------- ------------- ------- ------------- -------------- --------- ----------- ------------- -------------------- --------- ------------- cori fungalp dmj 1 bb/cray=0 normal cori m342 dmj 1 bb/cray=0 normal cori fnglanot dmj 1 bb/cray=0 normal cori plant dmj 1 bb/cray=0 normal cori mpccc dmj 1 normal nid00837:~ # Thanks, Doug
So you'd want to set limits against (User, QOS) pairs so that the specific limits vary by (user, qos), but isn't just defined in the QOS? Slurm can't do that currently. I think you'd have to just define additional QOS's with the respective limits set in them, and allow users access to those particular QOS's. Obviously there's a bit more overhead in establishing those additional QOS's, but is there any reason that wouldn't work for you?
that would work, however I still need a way to authorize a user to access a particular qos -- is that possible?
Doug, could you use partition associations instead for this? It should be rather straight forward. You can also limit the QOS an association has access to by setting it in the association with sacctmgr, just QOS+=realtime, or whatever your qos is.
Doug - Haven't heard back on this one in a week... do partition associations work for what you're after?
Sorry, I've been out of town. I ended up setting enforcement to include qos and then automated managing which qos each user is allowed to access. So that worked out. ---- Doug Jacobsen, Ph.D. NERSC Computer Systems Engineer National Energy Research Scientific Computing Center <http://www.nersc.gov> dmjacobsen@lbl.gov ------------- __o ---------- _ '\<,_ ----------(_)/ (_)__________________________ On Thu, Dec 10, 2015 at 11:55 AM, <bugs@schedmd.com> wrote: > *Comment # 4 <http://bugs.schedmd.com/show_bug.cgi?id=2218#c4> on bug 2218 > <http://bugs.schedmd.com/show_bug.cgi?id=2218> from Tim Wickberg > <tim@schedmd.com> * > > Doug - Haven't heard back on this one in a week... do partition associations > work for what you're after? > > ------------------------------ > You are receiving this mail because: > > - You reported the bug. > >
No problem, just wanted to make sure you weren't stalled on our response. Closing now. - Tim