d. Create an HPC Cluster
In the previous step you connected to PCluster Manager. Now we will create a cluster using the Cluster Creation Wizard:
- Click on one of the two Create Cluster buttons.
- Enter the name of your cluster. Here we have chosen
my-cluster
, but feel free to pick your own cluster name. Select the Wizard and Click the Next button.
- Select the region to be us-east-1, select a VPC and, click on the slider Use Custom AMI? as we will be using a custom AMI. The custom AMI ID you will use is
ami-077b6b31cb74b5c59
. It as been purposefully built for this workshop.
- On the next screen modify the follow values:
- Set the Head Node Instance Type to be
c5.xlarge
- Set a Subnet ID (any will do, we will verify later)
- Set the Keypair to
ee-default-keypair
if running the lab at an AWS Hosted event.
- Set the Root Volume Size to 50.
Once done, enable the Virtual Console as shown below and click on the Next button.
-
On the storage page of the Wizard, do not change the defaults and click on Next.
-
When you reach the Queues page:
- Select a Subnet ID (any will do).
- Select On-Demand for the Purchase Type if not already selected.
- Then, set the field Static Nodes to 4 and Dynamic Nodes to 0. This means that when your cluster launches it will have 4 compute nodes. If we add Dynamic Nodes, the cluster would scale beyond 4 depending on the number of jobs we submit.
- For the Instance Type, select c5.xlarge (you can use the search field to make it easier to find this instance type).
- Click on the Advanced Options, for the Root Volume of the instances, input 50.
Finish by clicking on the Next button.
- The last Wizard page provides an overview of the configuration file that ParallelCluster will use to deploy your cluster. Your configuration file should look similar to the image below. Click on Dry Run to perform a validation of your configuration. You should see warnings regarding the image, ignore them. Once your configuration has been validated, you can Click on Create to initiate creation of your HPC cluster.
If you see an error saying that the instance type is not supported in the availability zone, go back to the subnet selection (both head and compute) and select a subnet in one of the supported Availability Zones.
It’ll take about 5 to 7 minutes to create all of the required resources for your cluster. You can check the Stack Events tab in PCluster Manager to see the progress of your cluster creation. You can also connect to your AWS account sandbox and go to the AWS CloudFormation page. Once your cluster is created, you can move on to the next section.