[slurm-users] Help with developing a lua job submit script

Marcin Stolarek stolarek.marcin at gmail.com
Tue Oct 9 11:04:11 MDT 2018

This should be quite easy..

if job_desc.min_cpus or  job_desc.min_cpus < YOUR_NUMBER then
job_desc.partition = "YourPartition"

Check slurm.h definition of job_descriptior and (small self advert but
maybe helpful..) you can also check my blog post on job_submit/lua (


wt., 9 paź 2018 o 17:57 Baker D.J. <D.J.Baker at soton.ac.uk> napisał(a):

> Hello,
> We are starting to think about developing a lua job submission script. For
> example, we are keen to route jobs requiring no more than 1 compute node
> (single core jobs and small parallel jobs) to a slurm shared partition. The
> idea being that "small" jobs can share a small set of compute nodes to try
> to prevent resource fragmentation in the cluster. Other "larger" jobs are
> routed to the default partition.
> As a start I have dug out the example lua script provided by slurm,
> however I wondered if there was any experience in doing this sort of
> routing using a lua script. We would appreciate any advice from the slurm
> community, please.
> Best regards,
> David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20181009/93285034/attachment.html>

More information about the slurm-users mailing list