Specifying slurm reservation

Post Reply
smcgrat
Posts: 11
Joined: Mon Jul 06, 2020 4:51 pm
Full Name: Sean McGrath
Organization: Trinity College Dublin

Specifying slurm reservation

Post by smcgrat »

Hello,

(Apologies for the multiple different posts).

Is it possible to configure webmo to use a specified slurm reservation by default for all batch jobs? E.g. include the following in all sbatch submissions:

Code: Select all

--reservation=webmo
Apologies if I missed this somewhere in documentation.

Regards

Sean

schmidt
Posts: 23
Joined: Sat May 30, 2020 3:00 pm
Full Name: JR Schmidt
Organization: WebMO, LLC

Re: Specifying slurm reservation

Post by schmidt »

The easiest way to accomplish this is by directly modifying the CGI scripts to add this argument. The relevant script is "daemon_pbs.cgi" (which, despite the name, handles all batch queues). In the 'queue_job' subroutine, around line ~370, you will see a list of options that are passed to sbatch ($qsubOptions, using the pbs terminology). You can append your standing reservation option there without any troubles.

smcgrat
Posts: 11
Joined: Mon Jul 06, 2020 4:51 pm
Full Name: Sean McGrath
Organization: Trinity College Dublin

Re: Specifying slurm reservation

Post by smcgrat »

Thanks, will give it a try, much appreciated.

Post Reply