1.5 Install StarCluster for AWS instance provisioning (optional)
Important note: If users are using option 1 in Step 2 (i.e. Public AMI) to set up the tracking database, users DO NOT need to install the starcluster, but setting up the cluster template (i.e. configure file) is a MUST. Users should re-visit this session after setting up the tracking database AMI in Step 2 (Option 1)
Install starcluster
StarCluster is an open source cluster-computing toolkit for Amazon's Elastic Compute Cloud (EC2). StarCluster utilizes Amazon's EC2 web service to create and destroy clusters of Linux virtual machines on demand. In VCPA, we launch instance via starcluster.
Users can download Starcluster version 0.95.6 here https://github.com/jtriley/StarCluster.
To install starcluster:
Setup StarCluster cluster template (i.e. configure file)
To successfully launch the starcluster on EC2, users must create a cluster template (i.e. Starcluster configure file). These templates are a collection of settings that define a single cluster configuration and are used when creating and configuring a cluster. Starcluster has a default template cluster smallcluster. You can modify it according to your needs. You can also define multiple cluster templates, from which you can choose your template while launching the instance. Below is an example of the "smallcluster template"
Optional: if users are not clear on how to input the contents of the template file, the following is a step-by-step guide:
1) type: sudo python setup.py install
This shows that your Starcluster configure file does not exist. User will need to select the second option by typing 2 and pressing enter. This will give you a template to use to create a configuration file containing your AWS credentials, cluster settings, etc. The next step is to customize this file using your favorite text-editor:
2) fill in the AWS credentials and key pair info which you created in the session 1.2.
3) fill in your key pairs information.
If you don’t have the key pairs, you can create one from StarCluster using the following command:
This will create key pairs called mykey on Amazon EC2 and save the private key to ~/.ssh/mykey.rsa.
4) fill-in your key pairs info in the StarCluster config file:
Keypair: Define at least one keypair section that represents one of your keypairs on Amazon EC2.
Choose instance that is optimized for memory intensive applications (e.g. i3.8xlarge, r3.8xlarge, r4.8xlarge, d2.8xlarge)
Set Amazon Machine Image of ID in Starcluster config
It includes all resources required to launch an instance, which is a virtual server in the cloud. It includes the following:
A template for the root volume for the instance
Launch permission that control which AWS accounts can use the AMI to launch instances
A block device that specifies the volumes to attach to the instance when it’s launched
AWS image ID – describe what is in this image ID
Last updated