-
Notifications
You must be signed in to change notification settings - Fork 0
/
lustre.jinja.schema
225 lines (188 loc) · 5.96 KB
/
lustre.jinja.schema
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
# Copyright 2018 Google Inc. All rights reserved.
#
# 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.
info:
title: A template for creating an open source Lustre cluster in GCP.
author: Google
description: |
Create an open source Lustre cluster in GCP.
imports:
- path: scripts/startup-script.sh
required:
- cluster_name
- zone
- oss_node_count
- mds_boot_disk_type
- mds_boot_disk_size_gb
- mdt_per_mds
- mdt_disk_size_gb
- mdt_disk_type
- ost_per_oss
- ost_disk_size_gb
- ost_disk_type
- external_ips
optional:
- cidr
- fs_name
- lustre_version
- e2fs_version
- mds_node_count
- oss_ip_range_start
- oss_boot_disk_type
- oss_boot_disk_size_gb
- oss_machine_type
- mds_machine_type
- mds_ip_range_start
- oss_ip_range_start
- mds_ip_address
- vpc_net
- vpc_subnet
- shared_vpc_host_proj
- hsm_node_count
- hsm_machine_type
- hsm_boot_disk_type
- hsm_boot_disk_size_gb
- gcs_bucket_import
properties:
cidr:
type : string
description : RFC1918 subnet to run instances in, eg. 10.10.0.0/16.
mds_ip_address:
type : string
description : IP address for the MDS node.
oss_ip_range_start:
type : string
description : IP address range start for the OSS nodes.
mds_ip_range_start:
type : string
description : IP address range start for the MDS nodes.
cluster_name:
type : string
description : Name of the Lustre cluster.
lustre_version:
type : string
default : latest-release
description : Version of Lustre to download from whamcloud.com
e2fs_version:
type : string
default : latest
description : Version of E2FSPROGS to download from whamcloud.com
mds_machine_type:
type : string
default : n1-standard-8
description : |
Machine type to use for MDS node instances, eg. n1-standard-4.
oss_machine_type:
type : string
default : n1-standard-8
description : |
Machine type to use for OSS node instances, eg. n1-standard-4.
mds_boot_disk_type:
enum : ["pd-ssd", "pd-standard", "pd-balanced"]
default : pd-standard
description : Disk type (pd-ssd, pd-balanced, or pd-standard) for the MDS boot disk.
mds_boot_disk_size_gb:
type : integer
default : 100
minimum : 20
maximum : 64000
description : Size of disk for the MDS boot disk.
mdt_disk_type:
enum : ["pd-ssd", "pd-standard", "pd-balanced", "local-ssd"]
default : pd-standard
description : Disk type (pd-ssd, pd-balanced, or pd-standard) for MDT disks.
mdt_disk_size_gb:
type : integer
default : 100
minimum : 10
maximum : 64000
description : Size of disk for MDTs.
oss_boot_disk_type:
enum : ["pd-ssd", "pd-standard", "pd-balanced"]
default : pd-standard
description : Disk type (pd-ssd, pd-balanced, or pd-standard) for OSS boot disk.
oss_boot_disk_size_gb:
type : integer
default : 100
minimum : 20
maximum : 64000
description : Size of disk for the OSS boot disk.
ost_disk_type:
enum : ["pd-ssd", "pd-standard", "pd-balanced", "local-ssd"]
default : pd-standard
description : Disk type (pd-ssd, pd-balanced, or pd-standard) for OST disks.
ost_disk_size_gb:
type : integer
default : 1000
minimum : 10
maximum : 64000
description : Size of disk for the OST disks.
external_ips:
type : boolean
description : |
Whether Lustre nodes are assigned external IPs or not.
mds_node_count:
type : integer
default : 1
description : Number of MDS node instances to run.
oss_node_count:
type : integer
description : Number of OSS node instances to run.
mdt_per_mds:
type : integer
default : 1
description : Number of MDT disks per MDS instance.
ost_per_oss:
type : integer
default : 1
description : Number of OST disk per OSS instances.
zone:
type : string
description : Zone to run the instances in based on Region.
fs_name:
type : string
default : lustre
description : Filesystem name.
vpc_net:
type : string
description : Name of an existing VPC Network to deploy Lustre into. Requires vpc_subnet.
vpc_subnet:
type : string
description : Name of the existing VPC subnet in vpc_net to deploy Lustre into.
shared_vpc_host_proj:
type : string
description : Name of the host project containing the Shared VPC specified in vpc_net to deploy Lustre into. Requires vpc_net.
hsm_node_count:
type: integer
default: 0
description: Number of Lustre HSM Data Movers node instances to run.
hsm_machine_type:
type : string
default : n1-standard-8
description : Machine type to use for Lustre HSM Data Movers node instances, eg. n1-standard-4.
hsm_boot_disk_type:
enum : ["pd-ssd", "pd-standard", "pd-balanced"]
default : pd-standard
description : Disk type (pd-ssd, pd-balanced, or pd-standard) for HSM boot disk.
hsm_boot_disk_size_gb:
type : integer
default : 20
minimum : 20
maximum : 64000
description : Size of disk for the HSM boot disk.
hsm_gcs_bucket:
type : string
description : Google Cloud Storage bucket to archive to
hsm_gcs_bucket_import:
type: string
description: Google Cloud Storage bucket path to import data from to Lustre.