forked from GoogleCloudPlatform/cluster-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheda-all-on-cloud.yaml
More file actions
234 lines (216 loc) · 7.4 KB
/
eda-all-on-cloud.yaml
File metadata and controls
234 lines (216 loc) · 7.4 KB
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
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
blueprint_name: eda-all-on-cloud
vars:
project_id: ## Set GCP Project ID Here ##
deployment_name: eda-all-on-cloud
region: us-central1 ## Set GCP Region Here ##
zone: us-central1-a ## Set GCP Zone Here ##
pool_service_level: "EXTREME" # Options: "STANDARD", "PREMIUM", "EXTREME"
rdma_net_range: 192.168.128.0/18 # Specify an unused CIDR range for the RDMA network
deployment_groups:
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#
#
# Deployment Group: Setup
#
# Sets up VPC network, persistent NFS shares
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- group: base
modules:
# Frontend network for GCE, NetApp Volumes and other services
- id: eda-net
source: modules/network/vpc
# Backend RDMA network for GCE instances with RDMA capabilities
- id: eda-rdma-net
source: modules/network/vpc
settings:
network_name: $(vars.deployment_name)-rdma-net-0
mtu: 8896
network_profile: https://www.googleapis.com/compute/beta/projects/$(vars.project_id)/global/networkProfiles/$(vars.zone)-vpc-falcon
network_routing_mode: REGIONAL
enable_cloud_router: false
enable_cloud_nat: false
enable_internal_traffic: false
subnetworks:
- subnet_name: $(vars.deployment_name)-rdma-sub-0
subnet_region: $(vars.region)
subnet_ip: $(vars.rdma_net_range)
region: $(vars.region)
# PSA is required for Google Cloud NetApp Volumes.
# Private Service Access (PSA) requires the compute.networkAdmin role which is
# included in the Owner role, but not Editor.
# https://cloud.google.com/vpc/docs/configure-private-services-access#permissions
- id: private_service_access
source: modules/network/private-service-access
use: [eda-net]
settings:
prefix_length: 24
service_name: "netapp.servicenetworking.goog"
deletion_policy: "ABANDON"
# NetApp Storage Pool. All NetApp Volumes will be created in this pool.
- id: netapp_pool
source: modules/file-system/netapp-storage-pool
use: [eda-net, private_service_access]
settings:
pool_name: "eda-pool"
capacity_gib: 4096
service_level: $(vars.pool_service_level)
region: $(vars.region)
# NFS volume for shared tools and utilities
- id: toolsfs
source: modules/file-system/netapp-volume
use: [netapp_pool]
settings:
region: $(vars.region)
volume_name: "toolsfs"
capacity_gib: 1024 # Adjust size as needed
large_capacity: false
local_mount: "/tools"
protocols: ["NFSV3"]
unix_permissions: "0777"
# Mount options are optimized for aggressive caching, assuming rare changes on the volume
mount_options: "nocto,actimeo=600,hard,rsize=262144,wsize=262144,vers=3,tcp,mountproto=tcp"
# NFS volume for shared libraries
- id: libraryfs
source: modules/file-system/netapp-volume
use: [netapp_pool]
settings:
region: $(vars.region)
volume_name: "libraryfs"
capacity_gib: 1024 # Adjust size as needed
large_capacity: false
local_mount: "/library"
protocols: ["NFSV3"]
unix_permissions: "0777"
# Mount options are optimized for aggressive caching, assuming rare changes on the volume
mount_options: "nocto,actimeo=600,hard,rsize=262144,wsize=262144,vers=3,tcp,mountproto=tcp"
# NFS volume for home directories
- id: homefs
source: modules/file-system/netapp-volume
use: [netapp_pool]
settings:
region: $(vars.region)
volume_name: "homefs"
capacity_gib: 1024 # Adjust size as needed
large_capacity: false
local_mount: "/home"
protocols: ["NFSV3"]
unix_permissions: "0755"
# NFS volume for scratch space
- id: scratchfs
source: modules/file-system/netapp-volume
use: [netapp_pool]
settings:
region: $(vars.region)
volume_name: "scratchfs"
capacity_gib: 1024 # Adjust size as needed
large_capacity: false
local_mount: "/scratch"
protocols: ["NFSV3"]
unix_permissions: "0777"
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#
#
# Deployment Group: Software Installation
#
# This deployment group is a stub for installing software before
# bringing up the actual cluster.
# See the README.md for useful software deployment patterns.
#
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# - group: software_installation
# modules:
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#
#
# Deployment Group: Cluster
#
# Provisions the actual EDA cluster with compute partitions,
# Connects to the previously set up NFS shares.
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- group: cluster
modules:
- id: h4d_startup
source: modules/scripts/startup-script
settings:
set_ofi_cloud_rdma_tunables: true
local_ssd_filesystem:
fs_type: ext4
mountpoint: /mnt/lssd
permissions: "1777"
- id: h4d_nodeset
source: community/modules/compute/schedmd-slurm-gcp-v6-nodeset
use:
- h4d_startup
- eda-net
- homefs
- toolsfs
- libraryfs
- scratchfs
settings:
bandwidth_tier: gvnic_enabled
machine_type: h4d-highmem-192-lssd
node_count_static: 1 # Adjust as needed
node_count_dynamic_max: 0 # Adjust as needed
enable_placement: false
disk_type: hyperdisk-balanced
on_host_maintenance: TERMINATE
additional_networks:
$(concat(
[{
network=null,
subnetwork=eda-rdma-net.subnetwork_self_link,
subnetwork_project=vars.project_id,
nic_type="IRDMA",
queue_count=null,
network_ip=null,
stack_type=null,
access_config=null,
ipv6_access_config=[],
alias_ip_range=[]
}]
))
- id: h4d_partition
source: community/modules/compute/schedmd-slurm-gcp-v6-partition
use:
- h4d_nodeset
settings:
exclusive: false
partition_name: h4d
is_default: true
partition_conf:
ResumeTimeout: 900
SuspendTimeout: 600
- id: slurm_login
source: community/modules/scheduler/schedmd-slurm-gcp-v6-login
use: [eda-net]
settings:
machine_type: n2-standard-4
enable_login_public_ips: true
- id: slurm_controller
source: community/modules/scheduler/schedmd-slurm-gcp-v6-controller
use:
- eda-net
- h4d_partition
- slurm_login
- homefs
- toolsfs
- libraryfs
- scratchfs
settings:
enable_controller_public_ips: true
cloud_parameters:
slurmd_timeout: 900