<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Ya, I found they had the power to hold jobs just be experimentation.  Maybe it will turn out I had something misconfigured and coordinators don't have that ability either.  I hope that's not the case, since being able to hold jobs in their account gives them
 some usefulness.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
My interest in this was solely focused on what coordinators could do to jobs within their account.  So, I accepted as ok that a coordinator couldn't move jobs in their account to a higher priority than jobs in other accounts.  I just wanted the coordinator
 to be able to move jobs in their account to a higher priority over other jobs within the same account.  Being able to use hold/release seems like what we're looking for.  I just wonder why coordinators can't use "top" as well, for jobs within their coordinated
 account.  I guess "top" is meant to move them to the top of the entire pending queue, and in my case, I was only interested in the coordinator moving certain jobs in their accounts to the top of the account-related queue.  But of course, there ISN'T an account-related
 queue, so maybe that's why top doesn't work for a coordinator.  I think I just answered my own question.....</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> slurm-users <slurm-users-bounces@lists.schedmd.com> on behalf of Brian Andrus <toomuchit@gmail.com><br>
<b>Sent:</b> Wednesday, May 17, 2023 2:00 PM<br>
<b>To:</b> slurm-users@lists.schedmd.com <slurm-users@lists.schedmd.com><br>
<b>Subject:</b> Re: [slurm-users] On the ability of coordinators</font>
<div> </div>
</div>
<div>
<p>Coordinator permissions from the man pages:</p>
<blockquote>
<p>coordinator<br>
A special privileged user, usually an account manager, that can add users or sub-accounts to the account they are coordinator over. This should be a trusted person since they can change limits on account and user associations, as well as cancel, requeue or
 reassign accounts of jobs inside their realm.</p>
</blockquote>
<p>So, I read that as it manages accounts in slurmdb with minimal access to the jobs themselves. So you would be stuck with cancel/requeue. I see no mention of hold, but if that is one of the permissions, I would say, yes, our approach does what you want within
 the limits of what the default permissions of a coordinator can do.</p>
<p><br>
</p>
<p>Of course, that still may not work if there are other accounts/partitions/users with higher priority jobs than User B. Specifically if those jobs can use the same resources A's jobs are running on.</p>
<p><br>
</p>
<p>Brian Andrus<br>
</p>
<p><br>
</p>
<div class="x_moz-cite-prefix">On 5/17/2023 10:49 AM, Groner, Rob wrote:<br>
</div>
<blockquote type="cite"><style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I'm not sure what you mean by "if they have the permissions".  I'm talking about someone who is specifically designated as "coordinator" of an account in slurm.  With that designation, and no other admin level changes, I'm not aware that they can directly change
 the priority of jobs associated with the account.</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
If you're talking about additional permissions or admin levels...we're not looking into that as an option.  We want to purely use the coordinator role to have them manipulate stuff.</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> slurm-users
<a class="x_moz-txt-link-rfc2396E" href="mailto:slurm-users-bounces@lists.schedmd.com">
<slurm-users-bounces@lists.schedmd.com></a> on behalf of Brian Andrus <a class="x_moz-txt-link-rfc2396E" href="mailto:toomuchit@gmail.com">
<toomuchit@gmail.com></a><br>
<b>Sent:</b> Wednesday, May 17, 2023 12:58 PM<br>
<b>To:</b> <a class="x_moz-txt-link-abbreviated" href="mailto:slurm-users@lists.schedmd.com">
slurm-users@lists.schedmd.com</a> <a class="x_moz-txt-link-rfc2396E" href="mailto:slurm-users@lists.schedmd.com">
<slurm-users@lists.schedmd.com></a><br>
<b>Subject:</b> Re: [slurm-users] On the ability of coordinators</font>
<div> </div>
</div>
<div>
<p>If they have the permissions, you can just raise the priority of user B's jobs to be higher than whatever A's currently are. Then they will run next.</p>
<p>That will work if you are able to wait for some jobs to finish and you can 'skip the line' for the priority jobs.</p>
<p>If you need to preempt running jobs, that would take a bit more effort to set up, but is an alternative.</p>
<p><br>
</p>
<p>Brian Andrus</p>
<p><br>
</p>
<div class="x_x_moz-cite-prefix">On 5/17/2023 6:40 AM, Groner, Rob wrote:<br>
</div>
<blockquote type="cite"><style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div class="x_x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I was asked to see if coordinators could do anything in this scenario:</div>
<div class="x_x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<ul data-editing-info="{"orderedStyleType":1,"unorderedStyleType":1}">
<li style="list-style-type:disc">Within the account that they coordinated, User A submitted 1000s of jobs and left for the day.</li><li style="list-style-type:disc">Within the same account, User B wanted to run a few jobs really quickly.  Once submitted, his jobs were of course behind User A's jobs.</li><li style="list-style-type:disc">The coordinator wanted to see the results of User B's runs.</li></ul>
<div>Reading the docs and doing some experiments, here is what I determined:</div>
<div>
<ul data-editing-info="{"orderedStyleType":1,"unorderedStyleType":1}">
<li style="list-style-type:disc">The coordinator could put a hold on all of User A's jobs in the pending queue.  This won't affect any jobs User A has that aren't tied to the coordinated account.</li><li style="list-style-type:disc">With User A's jobs held, then User B's jobs would be next to run.</li><li style="list-style-type:disc">If the coordinator was particularly impatient, he could scancel User A's currently running jobs so that User B's jobs immediately started.</li><li style="list-style-type:disc">The coordinator would need to remember to release the held jobs, or put them in a uhold so that User A could release them eventually.</li></ul>
<div>It seems like the easiest way for the coordinator to elevate User B's jobs to the top of the queue would be if he could "scontrol top" those jobs.  But my testing indicates that the coordinator doesn't have that permission.  Is there some reason that a
 coordinator can't use "scontrol top" to change the priority of jobs within the account that he coordinates?</div>
</div>
<div><br>
</div>
<div>Thanks.</div>
<div><br>
</div>
<div>Rob</div>
<div><br>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</body>
</html>