Ticket 21089

Summary: Shared License Resource Limits w/Exceptions
Product: Slurm Reporter: Nicholas Carl <ncarl>
Component: LimitsAssignee: Jacob Jenson <jacob>
Status: OPEN --- QA Contact:
Severity: 6 - No support contract    
Priority: ---    
Version: - Unsupported Older Versions   
Hardware: Linux   
OS: Linux   
Site: -Other- Alineos Sites: ---
Atos/Eviden Sites: --- Confidential Site: ---
Coreweave sites: --- Cray Sites: ---
DS9 clusters: --- 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: ---

Description Nicholas Carl 2024-10-02 14:23:58 MDT
Hello,

Trying to set up license resource restrictions geographically. Is there a way to get child accounts to share a limit for resources (126), but then only one of the child accounts gets access to additional (32 + 126)? 

Cannot think of a way where the logic would work without scripting something to dynamically update the limits so all child accounts have their own totals.
 
## Add countries
sacctmgr add account name=usa
sacctmgr add account name=cad

## Add US cities
sacctmgr add account name=buf parent=usa
sacctmgr add account name=hou parent=usa
sacctmgr add account name=phx parent=usa

# Resource limits
sacctmgr update resource name=anshpc@slurm set count=158
sacctmgr update account name=usa set grptres=anshpc@slurm=126
sacctmgr update account name=cad set grptres=anshpc@slurm=0

# I figure this isn't possible but what functionally we're looking for:
sacctmgr update account name=hou set grptres=anshpc@slurm=158