forked from OguzPastirmaci/oci-hpc-clusternetwork-tifr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.yaml
executable file
·607 lines (601 loc) · 14.6 KB
/
schema.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
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
---
title: HPC cluster
description: Oracle Cloud HPC cluster
schemaVersion: 1.1.0
version: "20201214"
logoUrl: >
https://cloudmarketplace.oracle.com/marketplace/content?contentId=80357668
source:
type: marketplace
reference: 67628143
locale: "en"
variableGroups:
- title: "Cluster configuration"
variables:
- ${targetCompartment}
- ${ad}
- ${ssh_key}
- ${use_custom_name}
- ${cluster_name}
- title: "Headnode options"
variables:
- ${bastion_ad}
- ${bastion_shape}
- ${bastion_ocpus}
- ${bastion_custom_memory}
- ${bastion_memory}
- ${use_standard_image}
- ${custom_bastion_image}
- ${bastion_boot_volume_size}
- title: "Advanced headnode options"
variables:
- ${bastion_advanced}
- ${home_nfs}
- ${use_cluster_nfs}
- ${cluster_nfs_path}
- ${bastion_block}
- ${bastion_block_volume_size}
- ${bastion_block_volume_performance}
- title: "Compute node options"
variables:
- ${cluster_network}
- ${cluster_network_shape}
- ${instance_pool_shape}
- ${instance_pool_ocpus}
- ${autoscaling}
- ${node_count}
- ${instance_pool_custom_memory}
- ${instance_pool_memory}
- ${boot_volume_size}
- ${use_marketplace_image}
- ${marketplace_listing}
- ${image}
- title: "Advanced options"
variables:
- ${use_advanced}
- ${use_scratch_nfs}
- ${scratch_nfs_path}
- ${scratch_nfs_type_cluster}
- ${scratch_nfs_type_pool}
- ${cluster_block_volume_size}
- ${cluster_block_volume_performance}
- title: "Network options"
variables:
- ${use_existing_vcn}
- ${vcn_compartment}
- ${vcn_id}
- ${public_subnet_id}
- ${private_subnet_id}
- ${vcn_subnet}
- ${public_subnet}
- ${additional_subnet}
- ${private_subnet}
- ${ssh_cidr}
- title: "Software"
variables:
- ${slurm}
- ${spack}
- title: "API authentication"
variables:
- ${inst_prin}
- ${api_user_ocid}
- ${api_fingerprint}
- ${api_user_key}
visible: ${autoscaling}
- title: "Hidden"
variables:
- ${region}
- ${tenancy_ocid}
- ${cluster_nfs_mount}
- ${cluster_nfs_export}
- ${scratch_nfs_export}
- ${scratch_nfs_mount}
- ${marketplace_listing_id}
visible: false
- title: "Debug"
variables:
- ${configure}
variables:
targetCompartment:
title: "target compartment"
type: oci:identity:compartment:id
ad:
type: oci:identity:availabilitydomain:name
dependsOn:
compartmentId: ${targetCompartment}
visible: complexExpression
required: true
description: "Availability Domain"
title: "Availability Domain"
ssh_key:
type: string
title: "Public SSH key"
required: true
use_custom_name:
type: boolean
title: "use custom cluster name"
description: "Use custom name for the cluster"
required: true
default: false
cluster_name:
title: "Name of the cluster"
description: "Custom cluster name"
type: string
visible:
and:
- ${use_custom_name}
bastion_ad:
type: oci:identity:availabilitydomain:name
dependsOn:
compartmentId: ${targetCompartment}
visible: complexExpression
required: true
description: "Availability Domain for bastion host"
title: "Availability Domain"
bastion_shape:
type: oci:core:instanceshape:name
dependsOn:
compartmentId: ${targetCompartment}
bastion_ocpus:
type: integer
description: Number of OCPU's for flex shape
minimum: 1
maximum: 64
default: 2
visible:
eq:
- ${bastion_shape}
- "VM.Standard.E3.Flex"
required: false
bastion_custom_memory:
title: Use custom memory size
type: boolean
default: false
visible:
eq:
- ${instance_pool_shape}
- "VM.Standard.E3.Flex"
bastion_memory:
title: Memory in GBS
type: integer
description: Number of memory for flex shape. Minimum 1GB per core.
minimum: 1
maximum: 1024
default: 16
visible:
and:
- eq:
- ${bastion_shape}
- "VM.Standard.E3.Flex"
- and:
- ${bastion_custom_memory}
required: false
use_standard_image:
type: boolean
title: "use standard bastion image"
description: >
"Use standard bastion image, otherwise provide custom image OCID"
required: true
default: true
custom_bastion_image:
title: "Bastion Image ID"
description: "Custom image ID for bastion nodes"
type: string
dependsOn:
compartmentId: ${targetCompartment}
visible:
not:
- ${use_standard_image}
bastion_boot_volume_size:
type: integer
required: true
minimum: 50
title: "Size of the boot volume in GB"
default: 50
bastion_advanced:
type: boolean
title: Show advanced options
default: false
bastion_block:
type: boolean
title: Additional block volume for shared space
visible:
and:
- ${bastion_advanced}
default: false
required: true
bastion_block_volume_size:
required: true
type: integer
title: "Size of the additional volume in GB"
default: 1000
visible:
and:
- and:
- ${bastion_block}
- ${bastion_advanced}
bastion_block_volume_performance:
type: enum
title: "Block volume performance"
required: true
enum:
- "0. Lower performance"
- "10. Balanced performance"
- "20. High Performance"
default: "10. Balanced performance"
visible:
and:
- and:
- ${bastion_block}
- ${bastion_advanced}
home_nfs:
type: boolean
title: "shared NFS /home from bastion"
visible:
and:
- ${bastion_advanced}
default: true
use_cluster_nfs:
type: boolean
title: "shared NFS volume from bastion"
visible:
and:
- ${bastion_advanced}
default: true
cluster_nfs_path:
title: "Cluster share mount point"
description: "Path to NFS share"
default: "/nfs/cluster"
type: string
visible:
and:
- ${bastion_advanced}
- ${use_cluster_nfs}
cluster_network:
title: Use cluster network
type: boolean
description: Use ROCEv2 cluster network
default: true
cluster_network_shape:
type: enum
enum:
- "BM.HPC2.36"
- "BM.GPU4.8"
default: "BM.HPC2.36"
title: "Shape of the Compute Nodes"
required: true
visible:
and:
- ${cluster_network}
instance_pool_shape:
title: "Shape of the Compute Nodes"
required: true
type: oci:core:instanceshape:name
dependsOn:
compartmentId: ${targetCompartment}
visible:
not:
- ${cluster_network}
instance_pool_ocpus:
title: Cores
type: integer
description: Number of OCPU's for flex shape
minimum: 1
maximum: 64
default: 2
visible:
eq:
- ${instance_pool_shape}
- "VM.Standard.E3.Flex"
required: false
instance_pool_custom_memory:
title: Use custom memory size
type: boolean
default: false
visible:
eq:
- ${instance_pool_shape}
- "VM.Standard.E3.Flex"
instance_pool_memory:
title: Memory in GBS
type: integer
description: Number of memory for flex shape. Minimum 1GB per core.
minimum: 1
maximum: 1024
default: 16
visible:
and:
- eq:
- ${instance_pool_shape}
- "VM.Standard.E3.Flex"
- and:
- ${instance_pool_custom_memory}
required: false
node_count:
required: true
type: integer
minimum: 0
title: "Number of Compute Instances"
default: 2
visible:
not:
- ${autoscaling}
boot_volume_size:
type: integer
required: true
minimum: 50
title: "Size of the boot volume in GB"
default: 50
use_marketplace_image:
type: boolean
title: "use marketplace image"
description: "Use marketplace image, otherwise provide custom image OCID"
required: true
default: true
marketplace_listing:
type: enum
title: "Image version"
description: "Marketplace listing to use"
required: true
enum:
- "1. Oracle Linux 7.8 OFED5.0"
- "2. Oracle Linux 7.5 OFED4.4"
default: "1. Oracle Linux 7.8 OFED5.0"
visible:
and:
- ${use_marketplace_image}
image:
title: "Image ID"
description: "Custom image ID for compute nodes"
type: string
default: "ocid1.image.oc1..aaaaaaaa5yxem7wzie34hi5km4qm2t754tsfxrjuefyjivebrxjad4jcj5oa" # yamllint disable-line rule:line-length
required: true
dependsOn:
compartmentId: ${targetCompartment}
visible:
not:
- ${use_marketplace_image}
use_advanced:
type: boolean
title: "Show advanced options"
default: false
use_scratch_nfs:
type: boolean
title: "Shared NFS scratch space from NVME or Block volume"
visible:
and:
- ${use_advanced}
default: true
scratch_nfs_type_cluster:
type: enum
title: "Scratch storage configuration"
enum:
- "none"
- "nvme"
- "block"
default: "nvme"
visible:
and:
- ${cluster_network}
- ${use_advanced}
- ${use_scratch_nfs}
scratch_nfs_type_pool:
type: enum
title: "Scratch storage configuration"
enum:
- "none"
- "block"
default: "none"
visible:
and:
- not:
- ${cluster_network}
- ${use_scratch_nfs}
- and:
- ${use_advanced}
cluster_block_volume_size:
required: true
type: integer
title: "Size of the additional volume in GB"
default: 1000
visible:
and:
- or:
- and:
- eq:
- ${scratch_nfs_type_cluster}
- "block"
- and:
- ${use_advanced}
- ${cluster_network}
- ${use_scratch_nfs}
- and:
- eq:
- ${scratch_nfs_type_pool}
- "block"
- and:
- not:
- ${cluster_network}
- and:
- ${use_scratch_nfs}
- ${use_advanced}
cluster_block_volume_performance:
type: enum
title: "Block volume performance"
required: true
enum:
- "0. Lower performance"
- "10. Balanced performance"
- "20. High Performance"
default: "10. Balanced performance"
visible:
and:
- or:
- and:
- eq:
- ${scratch_nfs_type_cluster}
- "block"
- and:
- ${cluster_network}
- ${use_scratch_nfs}
- ${use_advanced}
- and:
- eq:
- ${scratch_nfs_type_pool}
- "block"
- and:
- not:
- ${cluster_network}
- and:
- ${use_scratch_nfs}
- ${use_advanced}
scratch_nfs_path:
title: "NFS scratch space mount point"
description: "Path to NFS share"
default: "/nfs/scratch"
type: string
visible:
and:
- ${use_advanced}
- ${use_scratch_nfs}
use_existing_vcn:
type: boolean
title: "Use Existing VCN"
description: "Use existing VCN or create new one"
default: false
required: true
vcn_compartment:
title: "VCN compartment"
type: oci:identity:compartment:id
visible: ${use_existing_vcn}
default: ${targetCompartment}
vcn_id:
type: oci:core:vcn:id
visible:
and:
- ${use_existing_vcn}
title: "Existing network"
default: ''
required: true
dependsOn:
compartmentId: ${vcn_compartment}
public_subnet_id:
type: oci:core:subnet:id
dependsOn:
compartmentId: ${vcn_compartment}
vcnId: ${vcn_id}
hidePrivateSubnet: true
visible: ${use_existing_vcn}
private_subnet_id:
type: oci:core:subnet:id
dependsOn:
compartmentId: ${vcn_compartment}
vcnId: ${vcn_id}
hidePublicSubnet: true
visible: ${use_existing_vcn}
vcn_subnet:
type: string
title: "VCN IP range"
description: "VCN subnet"
default: "172.16.0.0/21"
required: true
visible:
not:
- ${use_existing_vcn}
public_subnet:
type: string
title: "Public subnet IP range"
default: "172.16.0.0/24"
description: "Must be within VCN subnet"
required: true
visible:
not:
- ${use_existing_vcn}
additional_subnet:
type: string
title: "Additional subnet IP range"
default: "172.16.1.0/24"
description: "Must be within VCN subnet"
required: true
visible:
not:
- ${use_existing_vcn}
private_subnet:
type: string
title: "Private subnet IP range"
default: "172.16.4.0/22"
description: "Must be within VCN subnet"
required: true
visible:
not:
- ${use_existing_vcn}
ssh_cidr:
type: string
title: "Initial CIDR range allowed to SSH"
default: "0.0.0.0/0"
description: "Allowed SSH network in CIDR notation"
required: true
visible:
not:
- ${use_existing_vcn}
slurm:
type: boolean
title: "Install SLURM"
default: true
spack:
type: boolean
title: "Install Spack package manager"
default: false
autoscaling:
type: boolean
title: "Get your cluster to automatically scale up and down"
default: false
inst_prin:
type: boolean
title: "Use Instance Principal"
description: "You will need to set a dynamic group and policy to allow the bastion to authenticate "
default: true
visible:
and:
- ${autoscaling}
api_user_key:
type: string
title: "API key"
default: ""
visible:
not:
- ${inst_prin}
#required:
# and:
# - ${autoscaling}
# not:
# - ${inst_prin}
api_fingerprint:
type: string
title: "API fingerprint"
default: ""
visible:
not:
- ${inst_prin}
#required:
# and:
# - ${autoscaling}
# not:
# - ${inst_prin}
api_user_ocid:
type: string
title: "API User OCID"
default: ""
visible:
not:
- ${inst_prin}
#required:
# and:
# - ${autoscaling}
# not:
# - ${inst_prin}
configure:
type: boolean
title: "Configure system"
default: true
description: "If unchecked, cluster will be launched but left unconfigured"