<div dir="ltr"><div>Hi,</div><div><br></div><div>We also have multiple partitions, but in addition we use a job submit plugin to distinguish between srun/salloc and sbatch submissions. This plugin forces a specific partition for interactive jobs (and the timelimit with it) and using the license system it limits the number of simultaneous interactive jobs per user.</div><div><br></div><div>Originally I wrote it because users were running bash for the maximum allowed time (for no good reason). However, nowadays users are running e.g. jupyter in sbatch, and the plugin doesn't catches these.<br></div><div><br></div><div dir="ltr">If you want, the plugin's source is in: <a href="https://github.com/irush-cs/slurm-plugins">https://github.com/irush-cs/slurm-plugins</a></div><div dir="ltr"><br></div><div> Yair.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 19, 2018 at 8:09 PM, Renfro, Michael <span dir="ltr"><<a href="mailto:Renfro@tntech.edu" target="_blank">Renfro@tntech.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto">
I don’t. If they want to submit a job running ‘bash’ at the same priority as a regular batch job shell script, that’s on them. If and when we go to an accounting model based off reserved resources and time, it’ll handle itself.<div><div class="h5"><br>
<div><br>
On Sep 19, 2018, at 11:54 AM, Siddharth Dalmia <<a href="mailto:dalmia.sid@gmail.com" target="_blank">dalmia.sid@gmail.com</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div dir="ltr">
<div>
<div dir="auto">Thanks for your response Mike. I have a follow-up question for this approach. How do you restrict someone to start an interactive session on the "batch" partition? </div>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div dir="auto"><br>
</div>
<div><br>
<div class="gmail_quote">
<div dir="ltr">On Wed, Sep 19, 2018 at 12:50 PM Renfro, Michael <<a href="mailto:Renfro@tntech.edu" target="_blank">Renfro@tntech.edu</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto">We have multiple partitions using the same nodes. The interactive partition is high priority and limited on time and resources. The batch partition is low priority and has looser time and resource restrictions.
<div><br>
</div>
<div>And we have a shell function that calls srun —partition=<span style="background-color:rgba(255,255,255,0)">interactive </span>—pty $SHELL to make it easier to submit interactive jobs.</div>
<div><br>
<div>
<div><span style="background-color:rgba(255,255,255,0)">--</span></div>
<span style="background-color:rgba(255,255,255,0)">Mike Renfro / HPC Systems Administrator, Information Technology Services<br>
<a href="tel:931%20372-3601" dir="ltr" target="_blank">931 372-3601</a> / Tennessee Technological University</span></div>
</div>
</div>
<div dir="auto">
<div>
<div><br>
On Sep 19, 2018, at 10:51 AM, Siddharth Dalmia <<a href="mailto:dalmia.sid@gmail.com" target="_blank">dalmia.sid@gmail.com</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div dir="ltr">Hi all,
<div><br>
</div>
<div>Is it possible to have a separate timeout for interactive jobs? Or can someone help me come up with a hack to do this? </div>
<div><br>
</div>
<div>Thanks </div>
<div>Sid<br>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div></div></div>
</blockquote></div><br></div>