-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaiml-slurmgcp6-weka4.yaml
257 lines (236 loc) · 7.97 KB
/
aiml-slurmgcp6-weka4.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
# Copyright 2024 Fluid Numerics LLC
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# 3. Neither the name of the copyright holder nor the names of its contributors
# may be used to endorse or promote products derived from this software without
# specific prior written permission.
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
# OF SUCH DAMAGE.
blueprint_name: aiml-slurm6-weka4
vars:
project_id: ## Set GCP Project ID Here ##
get_weka_io_token: ## Obtain a token from https://get.weka.io ##
deployment_name: aiml-slurm6-weka4
network_name_prefix: aiml
region: us-east4
zone: us-east4-b
custom_image:
family: slurm6-weka4
project: $(vars.project_id)
disk_size: 64
weka_version: 4.2.11
weka_machine_type: c2-standard-8
weka_nics_number: 4
deployment_groups:
- group: primary
modules:
- id: image_network
source: modules/network/vpc
settings:
network_name: $(vars.network_name_prefix)-img
subnetwork_name: $(vars.network_name_prefix)-img-subnet
- id: weka_install_script
source: modules/scripts/startup-script
settings:
runners:
- type: shell
destination: install_weka.sh
content: |
#!/bin/sh
set -x
wget --auth-no-challenge https://$(vars.get_weka_io_token):@get.weka.io/dist/v1/pkg/weka-$(vars.weka_version).tar -O /tmp/weka.tar
mkdir -p /tmp/weka
tar -xvf /tmp/weka.tar -C /tmp/weka --strip-components=1
cd /tmp/weka && ./install.sh
sed -i 's/isolate_cpusets=true/isolate_cpusets=false/g' /etc/wekaio/service.conf
systemctl restart weka-agent
- group: packer
modules:
- id: weka-enabled-image
source: modules/packer/custom-image
kind: packer
use:
- image_network
- weka_install_script
settings:
source_image_project_id: [schedmd-slurm-public]
# see latest in https://github.com/GoogleCloudPlatform/slurm-gcp/blob/master/docs/images.md#published-image-family
source_image_family: slurm-gcp-6-6-ubuntu-2004-lts
# You can find size of source image by using following command
# gcloud compute images describe-from-family <source_image_family> --project schedmd-slurm-public
disk_size: $(vars.disk_size)
image_family: $(vars.custom_image.family)
state_timeout: 15m
- group: cluster
modules:
- id: multivpc
source: modules/network/multivpc
settings:
network_name_prefix: $(vars.network_name_prefix)
network_count: $(vars.weka_nics_number)
global_ip_address_range: 10.0.0.0/8
subnetwork_cidr_suffix: 16
- id: primary_vpc
source: modules/network/pre-existing-vpc
settings:
network_name: $(multivpc.network_names[0])
subnetwork_name: $(multivpc.subnetwork_names[0])
region: $(vars.region)
- id: wekafs
source: github.com/FluidNumerics/weka-gcp-hpc-toolkit
use:
- multivpc
settings:
cluster_name: aiml-weka
get_weka_io_token: $(vars.get_weka_io_token)
machine_type: $(vars.weka_machine_type)
local_mount: "/home"
- id: cpu01
source: community/modules/compute/schedmd-slurm-gcp-v6-nodeset
use:
- primary_vpc
settings:
bandwidth_tier: virtio_enabled
disk_size_gb: $(vars.disk_size)
instance_image: $(vars.custom_image)
instance_image_custom: true
machine_type: c2-standard-4
node_conf:
Features: intel,small,c2-standard-4,ondemand
node_count_dynamic_max: 20
- id: gpu01
source: community/modules/compute/schedmd-slurm-gcp-v6-nodeset
use:
- primary_vpc
settings:
bandwidth_tier: virtio_enabled
disk_size_gb: $(vars.disk_size)
guest_accelerator:
- count: 1
type: nvidia-tesla-a100
instance_image: $(vars.custom_image)
instance_image_custom: true
machine_type: a2-highgpu-1g
node_conf:
Features: intel,small,a2-highgpu-1g,ondemand,gpu-1,a100
Weight: 10
node_count_dynamic_max: 20
- id: gpu02
source: community/modules/compute/schedmd-slurm-gcp-v6-nodeset
use:
- primary_vpc
settings:
bandwidth_tier: virtio_enabled
disk_size_gb: $(vars.disk_size)
guest_accelerator:
- count: 8
type: nvidia-tesla-a100
instance_image: $(vars.custom_image)
instance_image_custom: true
machine_type: a2-highgpu-8g
node_conf:
Features: intel,large,a2-highgpu-8g,ondemand,gpu-8,a100
Weight: 80
node_count_dynamic_max: 20
- id: gpu03
source: community/modules/compute/schedmd-slurm-gcp-v6-nodeset
use:
- primary_vpc
settings:
bandwidth_tier: virtio_enabled
disk_size_gb: $(vars.disk_size)
guest_accelerator:
- count: 1
type: nvidia-l4
instance_image: $(vars.custom_image)
instance_image_custom: true
machine_type: g2-standard-16
node_conf:
Features: intel,small,g2-standard-16,ondemand,gpu-1,l4,ondemand
Weight: 5
node_count_dynamic_max: 20
- id: gpu04
source: community/modules/compute/schedmd-slurm-gcp-v6-nodeset
use:
- primary_vpc
settings:
bandwidth_tier: virtio_enabled
disk_size_gb: $(vars.disk_size)
guest_accelerator:
- count: 4
type: nvidia-l4
instance_image: $(vars.custom_image)
instance_image_custom: true
machine_type: g2-standard-48
node_conf:
Features: intel,medium,g2-standard-48,ondemand,gpu-4,l4,ondemand
Weight: 20
node_count_dynamic_max: 20
- id: gpu05
source: community/modules/compute/schedmd-slurm-gcp-v6-nodeset
use:
- primary_vpc
settings:
bandwidth_tier: virtio_enabled
disk_size_gb: $(vars.disk_size)
guest_accelerator:
- count: 8
type: nvidia-l4
instance_image: $(vars.custom_image)
instance_image_custom: true
machine_type: g2-standard-96
node_conf:
Features: intel,large,g2-standard-96,ondemand,gpu-8,l4,ondemand
Weight: 40
node_count_dynamic_max: 20
- id: compute_partition
source: community/modules/compute/schedmd-slurm-gcp-v6-partition
use:
- cpu01
- gpu01
- gpu02
- gpu03
- gpu04
- gpu05
settings:
partition_name: compute
is_default: true
- id: slurm_login
source: community/modules/scheduler/schedmd-slurm-gcp-v6-login
use:
- primary_vpc
settings:
name_prefix: login
enable_login_public_ips: false
disk_size_gb: $(vars.disk_size)
instance_image: $(vars.custom_image)
instance_image_custom: true
- id: slurm_controller
source: community/modules/scheduler/schedmd-slurm-gcp-v6-controller
use:
- primary_vpc
- compute_partition
- slurm_login
- wekafs
settings:
enable_controller_public_ips: false
disk_size_gb: $(vars.disk_size)
instance_image: $(vars.custom_image)
instance_image_custom: true