A launch configuration defines the configuration information of CVM instances used for auto scaling, including the images, storage, networks, security groups, login methods, and other configuration information of the CVMs.
Creating launch configurations is free of charge.
On the "2. Select an image" page, set the image type, operating system, system architecture, and image tag, as shown in the following figure:
- Differences between a public image and a custom image: if you select a public image, the CVM instances created in a scaling group are not yet activated and cannot be used directly. Instead, you need to manually deploy the application environment. If you select a custom image, by creating an image for the CVM instance of which the environment has been deployed, and using the image as the operating system when batch creating CVM instances, the CVM instances will have the same software environment as the original CVM instance after successful creation. In this way, you can perform batch deploying software environments.
- For more information on how to create the image of a CVM to be bound to a scaling group, see Creating a Custom Image.
Click Next: Select Storage and Bandwidth.
On the "3. Select storage and bandwidth" page, set the disk and network, as shown in the following figure:
If you specify a Cloud Block Storage (CBS) cloud disk as the system disk, you can create a data disk by using data disk snapshots.
Users with a large amount of data often use data disks to store data. When a snapshot file is created for a data disk, users can use the file to quickly clone multiple disks, achieving rapid CVM deployment.
When Auto Scaling automatically adds a new CVM instance, if a data disk snapshot is specified for the data disk in the launch configuration, Tencent Cloud cloud disks support the automatic mounting of the data disk containing the set data after the CVM instance is launched, meeting the needs of automatic data replication.
If a data disk snapshot is specified in the launch configuration, you must ensure that the data disk can be automatically and corrently mounted so that the scaling group can be scaled out automatically. Before configuring auto scaling, you must perform some operations on the original instance of the data disk snapshot in order to support the automatic mounting of the data disk when a new CVM instance is launched. For more information on the directions, see Mounting a Data Disk Automatically When Launching New Instances by Using Custom Images and Data Disk Snapshots.
Auto Scaling is free of charge, but the added CVM instances, disks, and networks are billed on demand. Prices will be shown based on your configurations.
Click 4. Security Groups and CVMs.
By default, Auto Scaling-created CVM instances are protected by Cloud Security and Cloud Monitor for free.