Issue: How can I use a job template to limit a jobs walltime based on the number of processors requested?
Affected Versions: All
Some sites wish to give a longer walltime to jobs that request more processors and less walltime for smaller jobs. Job templates can be a good solution for this.
In this solution, we limit the long queue to a single running job.
In this template, we look for a jobs requesting between 1 and 2 procs and CLASS long. We then set the walltime to 300 seconds.
JOBCFG[job1.min] DPROCS=1 class="long"
JOBMATCHCFG[job1] JMIN=job1.min JSET=job1.set JMAX=job1.max
In this template, we look for a jobs requesting between 3 and 4 procs and CLASS long. We then set the walltime to 600 seconds.
JOBCFG[job2.min] DPROCS=3 class="long"
JOBMATCHCFG[job2] JMIN=job2.min JSET=job2.set JMAX=job2.max