-
Notifications
You must be signed in to change notification settings - Fork 141
/
hpc-slurm-daos.yaml
188 lines (172 loc) · 6.48 KB
/
hpc-slurm-daos.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
# Copyright 2024 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: hpc-slurm-daos
vars:
project_id: ## Set GCP Project ID Here ##
deployment_name: hpc-slurm-daos
region: us-central1
zone: us-central1-c
daos_server_image_family: daos-server-hpc-rocky-8
daos_version: "2.4"
tags: []
# Note: this blueprint assumes the existence of a default global network and
# subnetwork in the region chosen above
validators:
- validator: test_module_not_used
inputs: {}
skip: true
deployment_groups:
- group: primary
modules:
- id: network1
source: github.com/GoogleCloudPlatform/hpc-toolkit//modules/network/vpc?ref=v1.33.0&depth=1
- id: homefs
source: github.com/GoogleCloudPlatform/hpc-toolkit//modules/file-system/filestore?ref=v1.33.0&depth=1
use: [network1]
settings:
local_mount: /home
- group: daos-server-image
modules:
# more info: https://github.com/daos-stack/google-cloud-daos/tree/main/images
- id: daos-server-image
source: "github.com/daos-stack/google-cloud-daos//images?ref=v0.5.0&depth=1"
kind: packer
settings:
daos_version: $(vars.daos_version)
daos_repo_base_url: https://packages.daos.io/
daos_packages_repo_file: EL8/packages/x86_64/daos_packages.repo
use_iap: true
enable_oslogin: false
machine_type: n2-standard-32
source_image_family: hpc-rocky-linux-8
source_image_project_id: cloud-hpc-image-public
image_guest_os_features: ["GVNIC"]
disk_size: "20"
state_timeout: "10m"
scopes: ["https://www.googleapis.com/auth/cloud-platform"]
use_internal_ip: true
omit_external_ip: false
daos_install_type: server
image_family: $(vars.daos_server_image_family)
- group: cluster
modules:
# more info: https://github.com/daos-stack/google-cloud-daos/tree/main/terraform/modules/daos_server
- id: daos
source: "github.com/daos-stack/google-cloud-daos//terraform/modules/daos_server?ref=v0.5.0&depth=1"
use: [network1]
settings:
labels: {ghpc_role: file-system}
machine_type: "n2-standard-16"
os_family: $(vars.daos_server_image_family)
daos_disk_count: 4
tags: $(vars.tags)
pools:
- name: "pool1"
size: "100%"
# Do not set value for scm_size when size=100%
daos_scm_size:
user: "root@"
group: "root@"
acls:
- "A::OWNER@:rwdtTaAo"
- "A:G:GROUP@:rwtT"
- "A::EVERYONE@:rcta"
properties:
reclaim: "lazy"
containers: []
- id: daos-client-script
source: github.com/GoogleCloudPlatform/hpc-toolkit//modules/scripts/startup-script?ref=v1.33.0&depth=1
settings:
runners:
- type: data
content: $(daos.daos_agent_yml)
destination: /etc/daos/daos_agent.yml
- type: data
content: $(daos.daos_control_yml)
destination: /etc/daos/daos_control.yml
- type: shell
content: $(daos.daos_client_install_script)
destination: /tmp/daos_client_install.sh
- type: shell
content: $(daos.daos_client_config_script)
destination: /tmp/daos_client_config.sh
- id: debug_nodeset
source: github.com/GoogleCloudPlatform/hpc-toolkit//community/modules/compute/schedmd-slurm-gcp-v6-nodeset?ref=v1.33.0&depth=1
use: [network1]
settings:
name: ns1
node_count_dynamic_max: 4
machine_type: n2-standard-2
enable_placement: false # the default is: true
service_account_scopes:
- "https://www.googleapis.com/auth/monitoring.write"
- "https://www.googleapis.com/auth/logging.write"
- "https://www.googleapis.com/auth/devstorage.read_only"
- "https://www.googleapis.com/auth/cloud-platform"
- id: debug_partition
source: github.com/GoogleCloudPlatform/hpc-toolkit//community/modules/compute/schedmd-slurm-gcp-v6-partition?ref=v1.33.0&depth=1
use: [debug_nodeset]
settings:
partition_name: debug
exclusive: false # allows nodes to stay up after jobs are done
is_default: true
- id: compute_nodeset
source: github.com/GoogleCloudPlatform/hpc-toolkit//community/modules/compute/schedmd-slurm-gcp-v6-nodeset?ref=v1.33.0&depth=1
use: [network1]
settings:
name: ns2
node_count_dynamic_max: 20
bandwidth_tier: gvnic_enabled
service_account_scopes:
- "https://www.googleapis.com/auth/monitoring.write"
- "https://www.googleapis.com/auth/logging.write"
- "https://www.googleapis.com/auth/devstorage.read_only"
- "https://www.googleapis.com/auth/cloud-platform"
- id: compute_partition
source: github.com/GoogleCloudPlatform/hpc-toolkit//community/modules/compute/schedmd-slurm-gcp-v6-partition?ref=v1.33.0&depth=1
use: [compute_nodeset]
settings:
partition_name: compute
- id: slurm_login
source: github.com/GoogleCloudPlatform/hpc-toolkit//community/modules/scheduler/schedmd-slurm-gcp-v6-login?ref=v1.33.0&depth=1
use: [network1]
settings:
name_prefix: login
machine_type: n2-standard-4
enable_login_public_ips: true
tags: $(vars.tags)
service_account_scopes:
- "https://www.googleapis.com/auth/monitoring.write"
- "https://www.googleapis.com/auth/logging.write"
- "https://www.googleapis.com/auth/devstorage.read_only"
- "https://www.googleapis.com/auth/cloud-platform"
- id: slurm_controller
source: github.com/GoogleCloudPlatform/hpc-toolkit//community/modules/scheduler/schedmd-slurm-gcp-v6-controller?ref=v1.33.0&depth=1
use:
- network1
- debug_partition
- compute_partition
- slurm_login
- homefs
- daos-client-script
settings:
enable_controller_public_ips: true
compute_startup_script: $(daos-client-script.startup_script)
controller_startup_script: $(daos-client-script.startup_script)
login_startup_script: $(daos-client-script.startup_script)
compute_startup_scripts_timeout: 1000
controller_startup_scripts_timeout: 1000
login_startup_scripts_timeout: 1000
tags: $(vars.tags)