Ticket 12289 - RFE: add default constraints
Summary: RFE: add default constraints
Status: RESOLVED INVALID
Alias: None
Product: Slurm
Classification: Unclassified
Component: slurmctld (show other tickets)
Version: 21.08.x
Hardware: Linux Linux
: 5 - Enhancement
Assignee: Director of Support
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2021-08-16 16:43 MDT by Felix Abecassis
Modified: 2025-07-16 08:31 MDT (History)
2 users (show)

See Also:
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:
Target Release: ---
DevPrio: ---
Emory-Cloud Sites: ---


Attachments

Note You need to log in before you can comment on or make changes to this ticket.
Description Felix Abecassis 2021-08-16 16:43:08 MDT
During a maintenance, let's say we add a new node feature to control the NUMA Nodes per Socket (NPS) mode of the CPU, with 3 possible values: nps1,nps2,nps4 and MutuallyExclusive=nps1,nps2,nps4. If we don't inject a default value, it means "I don't care about the value of this feature, give me any state" and you can end up with a mixed allocation with nodes in all the 3 possible states for the same job.
As this is a rarely used feature, we inject the default constraint "nps4" in job_submit.lua if they didn't request nps1 or nps2 explicitly, thus they will not end up with a mixed allocation. This is a OK workaround and has been documented for a while: https://bugs.schedmd.com/show_bug.cgi?id=1364

The drawback of this approach is that when we add a new dynamic feature to helpers.conf, we have to manually add the default value to existing queued jobs (submitted before the maintenance started). Those existing jobs were processed by job_submit.lua before the new feature was added, so it could not inject default values for this new feature. If you don't update the existing jobs, you can end up with a mixed allocation of nodes.

This change could be made in slurm.conf or perhaps it could be specific to node_features/helpers (helpers.conf).
Comment 1 Ben Roberts 2025-07-16 08:31:51 MDT
Closing per email conversation with Felix.