From f2af1a2daa5cf63b7f53826f9c8876f39c4f3a74 Mon Sep 17 00:00:00 2001 From: jamesbeedy Date: Sun, 24 Nov 2024 17:40:13 +0000 Subject: [PATCH] enhancement(slurmctld): enforce job level memory These changes introduce default values for SelectTypeParameters and MemSpecLimit. `SelectTypeParameters=CR_CPU_Memory` to enable memory allocation enforcement. `MemSpecLimit=1024` to ensure systems always have 1G available memory that jobs cannot consume. --- charms/slurmctld/src/constants.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charms/slurmctld/src/constants.py b/charms/slurmctld/src/constants.py index 91acce1..36c34ae 100644 --- a/charms/slurmctld/src/constants.py +++ b/charms/slurmctld/src/constants.py @@ -15,9 +15,11 @@ "HealthCheckNodeState": ["ANY", "CYCLE"], "HealthCheckProgram": "/usr/sbin/charmed-hpc-nhc-wrapper", "MailProg": "/usr/bin/mail.mailutils", + "MemSpecLimit": "1024", "PluginDir": ["/usr/lib/x86_64-linux-gnu/slurm-wlm"], "PlugStackConfig": "/etc/slurm/plugstack.conf.d/plugstack.conf", "SelectType": "select/cons_tres", + "SelectTypeParameters": "CR_CPU_Memory", "SlurmctldPort": "6817", "SlurmdPort": "6818", "StateSaveLocation": "/var/lib/slurm/checkpoint",