-
Notifications
You must be signed in to change notification settings - Fork 2
/
cluster.yaml
73 lines (73 loc) · 1.91 KB
/
cluster.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
Region: <REGION>
Image:
Os: ubuntu2004
HeadNode:
InstanceType: m6i.large
Networking:
SubnetId: <HEADNODE_SUBNET>
AdditionalSecurityGroups:
- <ADDITIONAL_HEAD_NODE_SG>
Ssh:
KeyName: <KEY_NAME>
AllowedIps: <ALLOWED_IPS>
Iam:
AdditionalIamPolicies:
- Policy: arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore
- Policy: arn:aws:iam::aws:policy/CloudWatchLogsReadOnlyAccess
- Policy: <ADDITIONAL_HEAD_NODE_POLICY>
S3Access:
- BucketName: <BUCKET_NAME>
EnableWriteAccess: false
CustomActions:
OnNodeConfigured:
Script: s3://<BUCKET_NAME>/post_install.sh
Scheduling:
Scheduler: slurm
SlurmSettings:
QueueUpdateStrategy: DRAIN
SlurmQueues:
- Name: compute
ComputeResources:
- Name: cpu
InstanceType: c6i.large
MinCount: 0
MaxCount: 5
Networking:
SubnetIds:
- <COMPUTE_SUBNET>
Iam:
AdditionalIamPolicies:
- Policy: arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore
- Policy: <ADDITIONAL_COMPUTE_NODE_POLICY>
S3Access:
- BucketName: <BUCKET_NAME>
EnableWriteAccess: false
CustomActions:
OnNodeConfigured:
Script: s3://<BUCKET_NAME>/post_install.sh
- Name: gpu
ComputeResources:
- Name: gpu
InstanceType: g4dn.xlarge
MinCount: 0
MaxCount: 5
Networking:
SubnetIds:
- <Compute_Subnet>
Iam:
AdditionalIamPolicies:
- Policy: arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore
- Policy: <ADDITIONAL_COMPUTE_NODE_POLICY>
S3Access:
- BucketName: <BUCKET_NAME>
EnableWriteAccess: false
CustomActions:
OnNodeConfigured:
Script: s3://<BUCKET_NAME>/post_install.sh
SharedStorage:
- MountDir: /data_lustre
Name: fsx-lustre-data
StorageType: FsxLustre
FsxLustreSettings:
StorageCapacity: 1200
DeploymentType: SCRATCH_2