Skip to content

Commit 542b9cc

Browse files
committed
Add slurmexec-local nodes. Add local partition
1 parent 847d835 commit 542b9cc

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

terraform/cluster.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ prod:
3333
flavor: p4-7.5gb
3434
security_groups: [usegal, usegal-slurm]
3535
slurmexecservers:
36+
- name: slurmexec-local
37+
volume_size: 20
38+
volume_type: volumes-ec
39+
flavor: p8-15gb
40+
security_groups: [usegal, usegal-slurm]
41+
count: 2
3642
- name: slurmexec-xs
3743
volume_size: 250
3844
volume_type: volumes-ec
@@ -138,6 +144,12 @@ staging:
138144
flavor: p2-3.75gb
139145
security_groups: [usegal, usegal-slurm]
140146
slurmexecservers:
147+
- name: slurmexec-local
148+
image: ubuntu22
149+
volume_type: volumes-ec
150+
flavor: p1-2gb
151+
security_groups: [usegal, usegal-slurm]
152+
count: 2
141153
- name: slurmexec
142154
image: ubuntu22
143155
volume_type: volumes-ec

terraform/templates/slurm.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,16 @@ slurm_partitions:
2323
Default: YES
2424
MaxTime: UNLIMITED
2525
Nodes: ${main_nodes}
26+
- name: local
27+
Default: NO
28+
MaxTime: UNLIMITED
29+
Nodes: >-
30+
%{ for group_name, hosts in nodes ~}
31+
%{ if group_name == "slurmexecservers" ~}
32+
%{ for host in hosts ~}
33+
%{ if startswith(host.name, "slurmexec-local") ~}
34+
${host.name},
35+
%{ endif ~}
36+
%{ endfor ~}
37+
%{ endif ~}
38+
%{ endfor ~}

0 commit comments

Comments
 (0)