1.5 Install StarCluster for AWS instance provisioning (optional)
Last updated
Last updated
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 .
To install starcluster:
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"
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:
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
: Define at least one keypair section that represents one of your keypairs on Amazon EC2.