Now that you installed AWS ParallelCluster, let us create a cluster configuration file as below. Let us reuse the SSH key-pair created earlier.
Below are some details of the cluster configuration parameters/ settings:
DisableSimultaneousMultithreading: true
in the configuration file.For more details about the AWS ParallelCluster configuration options, see the AWS ParallelCluster User Guide.
Execute the following commands in your cloud9 shell to get your AWS networking information and create a cluster configuration file:
AWS_REGION=$(curl --silent http://169.254.169.254/latest/meta-data/placement/region)
IFACE=$(curl --silent http://169.254.169.254/latest/meta-data/network/interfaces/macs/)
SUBNET_ID=$(curl --silent http://169.254.169.254/latest/meta-data/network/interfaces/macs/${IFACE}/subnet-id)
cat > config.yaml << EOF
Region: ${AWS_REGION}
Image:
Os: alinux2
SharedStorage:
- MountDir: /shared
Name: default-ebs
StorageType: Ebs
HeadNode:
InstanceType: c5.xlarge
Networking:
SubnetId: ${SUBNET_ID}
ElasticIp: false
Ssh:
KeyName: lab-your-key
Scheduling:
Scheduler: slurm
SlurmQueues:
- Name: compute
CapacityType: ONDEMAND
ComputeResources:
- Name: compute
InstanceType: c5.xlarge
MinCount: 0
MaxCount: 8
DisableSimultaneousMultithreading: true
Networking:
SubnetIds:
- ${SUBNET_ID}
PlacementGroup:
Enabled: true
EOF
Now, you are ready to launch a cluster! Proceed to the next section.