Hi - Does slurm support a default partition on a per-user and/or per-group basis? For example, let's say I have partition A partition B and user{1-3}, user{4-6} And I want user{1-3} to have partition A as default, and user{4-6} to have partition B as default. Furthermore, user{1-3} are in group A, and user{4-6} are in group B. Is possible to do what I want? I see a similar question raised in https://bugs.schedmd.com/show_bug.cgi?id=14081 and it was NOT possible at that time, but that was in 2014.
The most natural way to set a per user defaults is to use cli_filter plugin[1]. In the case you described you may want to use a user_defaults plugin, which allows setting of a default parameters in ~/.slurm/defaults file, like >cat ~/.slurm/defaults >partition=UserDefaultPartition or if you want to make it administrator defined it may be more convenient to use cli_filter/lua that allows setting of options based on some logic in lua script. You can find an example script in our repository etc/cli_filter.lua.example[2] >Is possible to do what I want? I see a similar question raised in >https://bugs.schedmd.com/show_bug.cgi?id=14081 >and it was NOT possible at that time, but that was in 2014. I'm not sure if the link is to the bug you thought about, since it's quite recent. cheers, Marcin [1]https://slurm.schedmd.com/slurm.conf.html#OPT_CliFilterPlugins [2]https://github.com/SchedMD/slurm/blob/master/etc/job_submit.lua.example
Thank you Marcin. Creating a ~/.slurm/defaults on a per-user basis seems like an easy way to accomplish what I want. I need to study cli_filter/lua, that looks more complicated and may lead to problems if I make mistakes in the script. Yes, sorry, https://bugs.schedmd.com/show_bug.cgi?id=14081 was a ticket that I recently opened, and it referenced https://bugs.schedmd.com/show_bug.cgi?id=1032#c1 which is the case from 2014.
Jeff, >I need to study cli_filter/lua, that looks more complicated and may lead to problems if I make mistakes in the script. Yes - it's more complicated, but it's the most flexible version to set defaults and take actions prior and post job submission activities on the client side. >and it referenced https://bugs.schedmd.com/show_bug.cgi?id=1032#c1 which is the case from 2014. That's true, the only way to set something similar at the time was to preset environment variables. CliFilter was added in 19.05. Is there anything else I can help you with? cheers, Marcin
Hi - Thank you. Nothing further needed, you may close this ticket.