I am seeking out help for setting up a priority queue within Slurm,
very much like this:
How to set the maximum priority to a Slurm job?
and
https://slurm.schedmd.com/priority_multifactor.html
but how/where do I implement this code? Is this c++, or Slurm code?
job_desc_msg_t job_update;
slurm_init_job_desc_msg(&job_update);
job_update.job_id = target_job_id;
job_update.priority = 4294967295;
slurm_update_job(&job_update);
I have tried putting this code inside the /etc/slurm/slurm.conf but this does nothing. If anyone can clarify beyond what is being said from https://slurm.schedmd.com/priority_multifactor.html since this does not give enough information about how to implement inside of slurm.
[Edit] I am trying to get sacct statistics such as currently running task of a user/ and currently pending task of a user, to calculate the next job of that user. So instead of FIFO, each user can get some jobs running. that way someone that queues at 9:00am a 100 jobs doesn't saturate the entire cluster. So everyone else has to wait for the entire 100 to finish.
[Update] Anyone looking for more info on this issue. I found that this code is c++ and is an (poor) example of a plugin. To create a plugin check these links out. https://slurm.schedmd.com/job_submit_plugins.html