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

On Mon, 11 Jul 2022 at 11:07, Ole Holm Nielsen <ole.h.niel...@fysik.dtu.dk <mailto:ole.h.niel...@fysik.dtu.dk>> wrote:

    Hi Purvesh,

    On 7/11/22 03:37, Purvesh Parmar wrote:
     > 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?

    Probably you want to use the MaxJobsAccrue limit, see the sacctmgr manual
    page.

Reply via email to