Ticket 12266

Summary: RFE: extend --nodes to support --nodes 20,40,60,80
Product: Slurm Reporter: Felix Abecassis <fabecassis>
Component: SchedulingAssignee: Dominik Bartkiewicz <dbartkiewicz>
Status: RESOLVED FIXED QA Contact:
Severity: 5 - Enhancement    
Priority: --- CC: dbartkiewicz, jbernauer, jblomqvist, lyeager, tim
Version: 20.11.8   
Hardware: Linux   
OS: Linux   
Site: NVIDIA (PSLA) Slinky Site: ---
Alineos Sites: --- Atos/Eviden Sites: ---
Confidential Site: --- Coreweave sites: ---
Cray Sites: --- DS9 clusters: ---
Google sites: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- NoveTech Sites: ---
Nvidia HWinf-CS Sites: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Tzag Elita Sites: ---
Linux Distro: --- Machine Name:
CLE Version: Version Fixed: 23.02.0
Target Release: 23.02 DevPrio: 1 - Paid
Emory-Cloud Sites: ---

Description Felix Abecassis 2021-08-12 13:52:49 MDT
Related to https://bugs.schedmd.com/show_bug.cgi?id=12245, let's say we have a job that can work with any number of nodes that is a multiple of 20 between 20 and 400.

The current solution is to use --nodes 20-400 and then shrink the job down to the nearest multiple of 20. But this is probably working against the Slurm scheduler, as it doesn't know that the job is going to relinquish some of the nodes and will have to re-evaluate other jobs in the queue when those extra nodes are released.

It would be ideal to extend --nodes to support this with a list of acceptable values, e.g.: --nodes 20,40,60,80. 

The use case above could then be easily solved programmatically:
$ sbatch --nodes $(seq -s, 20 20 400) run.sub
Comment 9 Tim Wickberg 2023-01-06 13:34:03 MST
Felix -

I wanted to double-check on a couple of implementation details as we get this wrapped up for 23.02.

After some back-and-forth, what we're planning to land looks exactly like the original request - a way to specify the desired multiplier - but is slightly different than what was outlined in the SoW.

So the proposed syntax looks like:

--nodes=20-400:20

(20 to 400 nodes, must be in multiples of 20)

Is that sufficient to cover this use case, or do you still foresee some reason why you'd want to specify a list of values?

thanks,
- Tim
Comment 10 Felix Abecassis 2023-01-06 13:36:07 MST
Hi Tim,

We still have a use case for specifying a list of values, for example in the case where not all multiples of 20 are valid configs for the application.
Comment 19 Dominik Bartkiewicz 2023-01-31 03:57:44 MST
Hi

The requested feature was added to the master branch and will be included in 23.02. 
The allowed syntax is '--nodes 20,40,60,80' and '--nodes 20-81:20'.
Please let me know if you have any questions.

Dominik
Comment 20 Dominik Bartkiewicz 2023-03-09 06:13:59 MST
Hi

23.02 is already released.
Do you have any questions or concerns?
If not, maybe we could close this ticket.
 
Dominik
Comment 21 Luke Yeager 2023-03-09 09:18:49 MST
LGTM, thanks!
Comment 22 Felix Abecassis 2023-03-09 09:29:20 MST
Apologies, I didn't realize the bug was still open.

I was under the impression that usually the RFE bugs are closed as soon as the code lands on the master branch, but that was not the case here.