d. Build an HPC Cluster

Now we will create a cluster based on the specifications defined in the configuration file. To create a cluster we will use the command pcluster create and the –config (or -c) option to use another configuration file other than the default one.

If you were to create your cluster without using the–config (or -c) option then AWS ParallelCluster will use the default configuration with the minimum requirements to get a cluster running. For example your head and compute nodes would be t2.micro instances instead of c4.xlarge.

Run the following command in your AWS Cloud9 terminal to create a cluster. Ensure that the configuration file path is correct.

pcluster create hpclab-yourname -c my-cluster-config.conf

Your cluster will take a few minutes to be built. The creation status will be displayed on your terminal. Once ready you should see a result similar to the one shown in the image below. ParallelCluster Create

There can be only one cluster of a given name at any time one your account.

What’s Happening in the Background

When the pcluster create command is executed, AWS ParallelCluster will generate an AWS CloudFormation template to generate an infrastructure in AWS. The bulk of the work is done in AWS and once the create is launched you don’t need to keep AWS ParallelCluster running. If your are interested to see AWS CloudFormation in action please follow this link. You should see something similar to what is shown in the image below.

ParallelCluster CloudFormation