From 661d80dcf5cc9ad018071a18819acceae5b02a3f Mon Sep 17 00:00:00 2001 From: vsoch Date: Thu, 23 Apr 2026 11:32:08 -0700 Subject: [PATCH 1/2] bug: max nodes set to 2 Signed-off-by: vsoch --- controllers/slurm/templates/slurm.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/slurm/templates/slurm.conf b/controllers/slurm/templates/slurm.conf index 3ac6e6d..655395c 100644 --- a/controllers/slurm/templates/slurm.conf +++ b/controllers/slurm/templates/slurm.conf @@ -92,4 +92,4 @@ AccountingStoragePort=6819 NodeName={{ .Hostlist }} {{ .Spec.Node.Nodespec }} # # PARTITIONS -PartitionName=normal Default=yes Nodes={{ .Hostlist }} Priority=50 DefMemPerCPU=500 Shared=NO MaxNodes=2 MaxTime=5-00:00:00 DefaultTime=5-00:00:00 State=UP \ No newline at end of file +PartitionName=normal Default=yes Nodes={{ .Hostlist }} Priority=50 DefMemPerCPU=500 Shared=NO MaxTime=5-00:00:00 DefaultTime=5-00:00:00 State=UP PriorityTier=50 OverSubscribe=NO \ No newline at end of file From f04d77f0dd2ca44715cccf71a349fb5659739e93 Mon Sep 17 00:00:00 2001 From: vsoch Date: Thu, 23 Apr 2026 12:22:30 -0700 Subject: [PATCH 2/2] feat: add task affinity plugin Signed-off-by: vsoch --- controllers/slurm/templates/slurm.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/controllers/slurm/templates/slurm.conf b/controllers/slurm/templates/slurm.conf index 655395c..61b5e5d 100644 --- a/controllers/slurm/templates/slurm.conf +++ b/controllers/slurm/templates/slurm.conf @@ -88,6 +88,11 @@ AccountingStoragePort=6819 #AccountingStoragePass= #AccountingStorageUser= # +# TaskAffinity +# SelectType=select/cons_tres +# SelectTypeParameters=CR_CPU_Memory +TaskPlugin=task/affinity + # COMPUTE NODES NodeName={{ .Hostlist }} {{ .Spec.Node.Nodespec }} #