-
Notifications
You must be signed in to change notification settings - Fork 315
Expand file tree
/
Copy pathstorage-slurm.yaml
More file actions
126 lines (118 loc) · 4.24 KB
/
Copy pathstorage-slurm.yaml
File metadata and controls
126 lines (118 loc) · 4.24 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
# 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: storage-slurm
vars:
project_id: # Set GCP Project ID Here
deployment_name: storage-slurm
region: us-central1
zone: us-central1-b
gcs_bucket_local_mount: /data
# To use Storage Pools, they must be pre-created before deployment.
# Replace 'your-pool-balanced' and 'your-pool-throughput' with your storage pool names.
hyperdisk_balanced_storage_pool: "projects/$(vars.project_id)/zones/$(vars.zone)/storagePools/your-pool-balanced"
hyperdisk_throughput_storage_pool: "projects/$(vars.project_id)/zones/$(vars.zone)/storagePools/your-pool-throughput"
deployment_groups:
- group: primary
modules:
- id: network
source: modules/network/vpc
- id: zonal-gcs-bucket
source: modules/file-system/cloud-storage-bucket
settings:
local_mount: $(vars.gcs_bucket_local_mount)
random_suffix: true
# force_destroy allows the bucket to be destroyed even if it contains objects.
# To preserve the bucket please change the below flag to "false".
force_destroy: true
storage_class: RAPID
placement_zones: ["$(vars.zone)"]
enable_hierarchical_namespace: true
# Refer https://docs.cloud.google.com/storage/docs/anywhere-cache#create_a_cache for parameter details
anywhere_cache:
zones: ["$(vars.zone)"]
admission_policy: "admit-on-first-miss"
outputs: [gcs_bucket_name]
- group: slurm-cluster
modules:
- id: slurm-nodeset
source: community/modules/compute/schedmd-slurm-gcp-v6-nodeset
use: [network]
settings:
node_count_dynamic_max: 2
machine_type: c3d-standard-4
disk_type: hyperdisk-balanced
disk_storage_pool: $(vars.hyperdisk_balanced_storage_pool)
additional_disks:
- disk_name: nodeset-data
device_name: nodeset-data
disk_type: hyperdisk-throughput
disk_size_gb: 2048
disk_storage_pool: $(vars.hyperdisk_throughput_storage_pool)
auto_delete: true
boot: false
disk_labels: {}
allow_automatic_updates: false
metadata:
gcs-bucket-name: $(zonal-gcs-bucket.gcs_bucket_name)
gcs-mount-path: $(vars.gcs_bucket_local_mount)
- id: rapid_partition
source: community/modules/compute/schedmd-slurm-gcp-v6-partition
use:
- slurm-nodeset
settings:
partition_name: rapid
is_default: true
- id: slurm_login
source: community/modules/scheduler/schedmd-slurm-gcp-v6-login
use:
- network
settings:
machine_type: c3d-standard-4
disk_type: hyperdisk-balanced
disk_storage_pool: $(vars.hyperdisk_balanced_storage_pool)
additional_disks:
- disk_name: login-data
device_name: login-data
disk_type: hyperdisk-throughput
disk_size_gb: 2048
disk_storage_pool: $(vars.hyperdisk_throughput_storage_pool)
auto_delete: true
boot: false
disk_labels: {}
enable_login_public_ips: true
metadata:
gcs-bucket-name: $(zonal-gcs-bucket.gcs_bucket_name)
gcs-mount-path: $(vars.gcs_bucket_local_mount)
- id: slurm_controller
source: community/modules/scheduler/schedmd-slurm-gcp-v6-controller
use:
- network
- rapid_partition
- zonal-gcs-bucket
- slurm_login
settings:
machine_type: c3d-standard-4
disk_type: hyperdisk-balanced
disk_storage_pool: $(vars.hyperdisk_balanced_storage_pool)
additional_disks:
- disk_name: controller-data
device_name: controller-data
disk_type: hyperdisk-throughput
disk_size_gb: 2048
disk_storage_pool: $(vars.hyperdisk_throughput_storage_pool)
auto_delete: true
boot: false
disk_labels: {}
enable_controller_public_ips: true