Creating a Launch Configuration

Last updated: 2020-02-25 15:15:21


A launch configuration defines the information that is required for a scaling group to launch CVM (Cloud Virtual Machine) instances. The information includes CVM's image, storage, network, security group, and login method.

Creating launch configurations is free of charge.

  1. Log in to the AS console .
  2. In the left sidebar, click Launch Configuration To go to the launch configuration management page.

Selecting a Region

  1. Specify the region of CVM that you would like to bind to the scaling group.
    In the upper part of the console, select the target region. CVM instances and CLB instances must be the same region as the one specified for the launch configuration. For example, if Guangzhou is specified for the launch configuration, only CVM instances in Guangzhou will be automatically added to the scaling group. For a scaling group in Guangzhou, you cannot add CVM instances or bind CLB instances in any region (e.g., Shanghai, Beijing, Hong Kong (China), Toronto) other than Guangzhou.

Selecting a Device Model

  1. Click [Create], and the "create Launch configuration" page pops up.
  2. On the Create a launch configuration Page, enter the launch configuration name, select the availability zone, and select the model.
  • Launch configuration name: Enter a name for your launch configuration.
  • Instance: Select the same model as the CVM instance that you want to bind to the scaling group.
  1. Click Next: Select an Image .

Selecting an Image

  1. On the "2. Select an image" page, set the image type, OS, system architecture, and image version.
    Select an image
  • Image: When creating a launch configuration, you can use either public or custom image. However, custom images are recommended.
    • Public images must have the same operating system as the CVM instance that you want to bind to the scaling group.
    • Custom images must be created via CVM's Create Custom Image feature.
  • Operating System (OS): You can select CentOS, CoreOS, Debian, SUSE or Windows.
  • System architecture: You can select 64-bit or 32.
  • Image version: You can select an image version.
  • The difference between Public Image and Custom image: if you choose Public Image, the stretched Cloud Virtual Machine instance is not activated and cannot be used directly. You need to deploy the application environment manually. Custom images enables batch production. You can create an image of a CVM instance with application environment deployed,. and then use the image to batch create many CVM instances which will have the same application environment as the original instance. This enables you to deploy the same software environment in multiple instances.
  • For more information about how to create a CVM instance to a scaling group, see Creating a Custom Image .
  1. Click Next: Select Storage and Bandwidth .

Selecting Storage and Bandwidth

  1. On the "Select storage and bandwidth" page, set the disk and network.

If you specify a CBS (Cloud Block Storage) disk as the system disk, then you can create a data disk using data disk snapshots.

Disk data snapshot makes it easier to store Big data:. snapshot a data disk, then use this snapshot to create more disks as needed..

When a new CVM instance is added to Auto Scaling, if you've specified a snapshot for the data disk in launch configuration, CBS automatically mounts a data disk in the launched CVM instance to copy data.

In this case, the data disk must be correctly mounted in the CVM instance to automatically scale out the scaling group.. To auto-mount data disk in a new CVM instance, some additional operations on snapshot's original instance are required before setting up the automatic scaling. For more information, please see: The method of automatically mounting a data disk when using Custom image and the new instance of Launch snapshot of the data disk .

AS is free of charge, but the added CVM instances, disks and networks are pay-as-you-go. Prices will be shown based on your configurations.

  1. Click Security Group and CVM .

Setting Information

  1. On the "4. Security Group and CVM" tab, select the login method and security group.

By default, Auto Scaling-created CVM instances are protected by Cloud Security and Cloud Monitor for free.

  1. Click 5. Confirm And check to make sure all the information are correct.
  2. Click Create a launch configuration . After the configuration is completed, you will see an entry on the launch configuration list, as shown below