AS needs to know in advance what configuration to use to produce CVM during scaling-out. You need to specify relevant resources in advance, such as images, data disk data, instance configuration, key pairs, security groups, and block storage devices.
It is worth noting that the launch configuration is just a template, and machines are produced according to this template during automatic scaling-out. Creating a launch configuration does not produce a machine, so it is completely free. Feel free to use it.
Log in to the auto scaling console and click Launch Configuration in the sidebar.
Step 1: Select the Region
In the menu at the top of the screen, select a region for the scaling group that meets your needs.
Note:
Here, you must select the region where the CVM to which you want to bind the scaling group is located. Both the launch configuration and the scaling group are region attributes. For example, if NCR is selected as the region for the launch configuration, you can only bind the scaling group in NCR, and the automatically added CVM is also a CVM in NCR.
Step 2: Specify Parameters
Click Create, and follow the instructions to create a launch configuration. The steps are the same as when you purchase a CVM.
Fill in the Configuration Name, for example, Frontend Server Cluster Configuration A.
Select the model, for example, 1 core 1 GB, which means 1 core CPU and 1 GB memory.
Choose images: You can choose a clean public image or a custom image with a business already deployed.
To make the machine available directly after creation, we strongly recommend that you deploy business applications in a custom image. At the same time, the business applications in the image should be set to launch together with the operating system, so that the machines scaled-out by AS can be automated.Select the system disk size and data disk size.
If you want the data disk to come with data after the machine is activated, you can specify a data disk snapshot so that the machine will come with the data in the snapshot after it is produced.Note:
- As instances in a scaling group are generally stateless, we recommend you put your own data into a custom image for convenience. If the system disk is not large enough, you can apply for a larger one by submitting a ticket.
- If you want to use a data disk to store data, you need to set up automatic mounting of the data disk so that the scale-out does not require manual intervention.
Select the bandwidth just like when you purchase a CVM instance.
Set the username, password, and security group.
Description:
In Advanced settings, if the instance type of the extension you created has been set by the Administrator as unsupported for Placement Groups, then Placement Groups will be unavailable. Please contact the Administrator if changes are needed.
Click Next: Confirm Configuration Information.
Create a scaling group based on the launch configuration. The launch configuration determines the instances to be created during scale-out, while the scaling group determines when to scale out.Click Create Launch Configuration.