[slurm-users] limit the queued jobs

1,005 views
Skip to first unread message

Purvesh Parmar

unread,
Jul 10, 2022, 9:38:21 PM7/10/22
to slurm...@lists.schedmd.com
Hi,

I want to limit the queued jobs per user to 5 which means, system should not allow more than 5 jobs per user to remain in queue (not running and waiting for resources) and only 4 jobs to run at any given time. To summarize, I want to implement a policy of 4 jobs per user in the running state and 5 jobs per user in the queue at any given time.

I have achieved implementation of the limit of running jobs to 4 by sacctmger  set MaxJobs=4. This works..But, could not find any parameter which takes care of only queued jobs limit. How to do this?

Thanks
Purves


Ole Holm Nielsen

unread,
Jul 11, 2022, 1:34:52 AM7/11/22
to slurm...@lists.schedmd.com
Hi Purvesh,
Probably you want to use the MaxJobsAccrue limit, see the sacctmgr manual
page.

/Ole


Purvesh Parmar

unread,
Jul 11, 2022, 1:55:48 AM7/11/22
to Slurm User Community List
Hi,
Thank you for the response. However, MaxJobsAccrue only limits to assigning priorities to jobs i.e.  Maximum number of pending jobs able to accrue age priority at any given time. But it does not stop/ allow  user from submitting further jobs. 

Thanks once again

Ole Holm Nielsen

unread,
Jul 11, 2022, 3:14:36 AM7/11/22
to slurm...@lists.schedmd.com


On 7/11/22 07:55, Purvesh Parmar wrote:
> Hi,
> Thank you for the response. However, MaxJobsAccrue only limits to
> assigning priorities to jobs i.e. Maximum number of pending jobs able to
> accrue age priority at any given time. But it does not stop/ allow  user
> from submitting further jobs.

I see. Then you probably want to use the MaxSubmitJobs limit in stead.

See also my Wiki page:
https://wiki.fysik.dtu.dk/niflheim/Slurm_configuration#maxjobcount-limit

/Ole
Reply all
Reply to author
Forward
0 new messages