To launch a cluster compute instance type using ServerTemplates. Typically you will launch a set of cluster compute instances, but the same steps apply.
Table of Contents
Cluster compute instances are launched in a similar way as other EC2 instance types, except for a couple minor differences, which will be explained in context below. Although, you can launch a cluster compute instance directly from an image, it's recommended that you launch them using ServerTemplates for better control and repeatability. This tutorial will focus on the latter use case.
There are two key differences between launching cluster compute instances and other EC2 instance types.
There are two different ways to launch a Cluster Compute Instance:
Go to Clouds -> AWS Region -> EC2 Images. Use the filter tool to find an HVM-based machine image. For example, you can use an AMI from Amazon (e.g. ami-7ea24a17). (Note: AWS includes "HVM" in the namespace to help locate a HVM based machine image. You can use the Filter by Name option, and search against "HVM".)
Click the Launch icon.
Specify the required parameters before launching the instance. HVM machine images do not require Kernel or Ramdisk images. Be sure to select a valid Cluster Compute Instance Type (e.g. cc2.8xlarge) and the Placement Group (e.g. dean) into which the instance will be placed. If you do not have one listed, see Create a New Placement Group.
Click the Launch button.
Once the instance becomes operational, it will be listed under Clouds -> AWS Region -> EC2 Instances -> Active tab.
The first step is to create a Deployment that will contain the cluster compute servers.
Next, you can create a ServerTemplate that you can use to create Cluster Compute Servers.
You will add an MCI to this ServerTemplate. You may browse our HVM MCIs in the Marketplace to import. Or you can create your own HVM MCI and follow the steps below.
Be sure to select a valid Cluster Compute Instance Type (e.g. cc2.8xlarge) and a valid HVM-based machine image. Use the image published by RightScale, "RightLink_CentOS_5.4_x64_v5.4.6_HVM_Beta" (only available in AWS US-East) or one from Amazon (Search for "HVM").
Now that you've created a ServerTemplate for launching a Cluster Compute Instance, click the Add To Deployment action button when viewing the new ServerTemplate. Select the Deployment that you just created for these Cluster Compute Servers and configure the required parameters. The Server will inherit the correct instance type (e.g. cc2.8xlarge) from the MCI. Since you specified an EC2 Placement Group when you created the Deployment, the Server will also inherit that setting as well.
Repeat these steps to add multiple Cluster Compute Servers to the Deployment.
You can now safely launch the Servers.
Note: Amazon recommends launching all Cluster Compute Servers at the same time.
Go to the Deployment that contains the Cluster Compute Servers and launch them all at once.
Note: Before you can launch multiple Servers at the same time, all required Inputs parameters must be specified.
© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.