This topic describes how to create a scaling configuration for a scaling group of the Elastic Compute Service (ECS) type. If a scale-out event is triggered, Auto Scaling uses the scaling configuration as the template to create ECS instances.
Prerequisites
A scaling group of the ECS type is created. If you want to set the Instance Configuration Mode parameter to Specify Instance Pattern when you create a scaling configuration in the scaling group, make sure that the network type of the scaling group is virtual private cloud (VPC). For more information, see Manage scaling groups.
A security group is created. If the network type of the scaling group is VPC, make sure that the security group and the scaling group reside in the same VPC. For more information, see Create a security group.
Procedure
Log on to the Auto Scaling console.
In the left-side navigation pane, click Scaling Groups.
In the top navigation bar, select a region.
On the Scaling Groups page, find the scaling group that you want to manage and click Details in the Actions column.
In the upper part of the details page, click the Instance Configuration Sources tab.
On the Scaling Configurations tab, click Create Scaling Configuration.
Configure the parameters in the Basic Information, Image and Instance, and Network and Security Group sections based on your business requirements.
For information about the parameters for creating a scaling configuration, see Parameters.
Click Create. In the Preview Scaling Configuration message, confirm the configurations and click Create.
Optional. Enable the scaling configuration.
After you click Create, the The scaling configuration is created message appears. Click Enable to immediately put the scaling configuration into the Active state.
NoteYou can also subsequently enable the scaling configuration on the Scaling Configurations tab. For more information, see Apply or enable scaling configurations.
Parameters
Basic Information section
Parameter | Description | References |
Scaling Configuration Name | Enter a name for the scaling configuration. The name must meet the following requirements:
| None |
Billing Method | The following billing methods are supported:
|
Instance and Image section
Parameter | Description | References |
Select Image | An image can provide data, such as system and application environments and related software configurations, that is required to create ECS instances. Valid values:
| |
Instance Configuration Mode | Different business scenarios require different instance types. Auto Scaling supports the following instance configuration modes:
| |
Select Instance Type | This parameter is displayed only if you set the Instance Configuration Mode parameter to Specify Instance Type. You can select instance types by instance type name or vCPU number. Note You can select up to 10 instance types at the same time. Auto Scaling preferentially uses the top-ranked instance types. After you select instance types, you can enable the following features based on your business requirements:
| |
Instance Attribute Combination | This parameter is displayed only if you set the Instance Configuration Mode parameter to Specify Instance Pattern. You can search for the available instance types by the following attributes: vCPU, memory, instance family level, and maximum acceptable price. In the Preview Instance Type section, you can view the available instance types that meet your business requirements. Note You can select Add Instance Attribute Filters to add attribute filters, such as instance type architectures and burstable instance attributes, to search for the instance types that meet your business requirements. You can also select Specify Instance Types that Must Be Included to select the required instance types. |
Storage section
Parameter | Description | References |
System Disk | You can select the following types of system disks for ECS instances to store data: Enterprise SSD (ESSD), Standard SSD, Ultra Disk, and ESSD AutoPL. | |
More Disk Categories | You can specify multiple system disk categories in the Auto Scaling console to reduce the risk of scale-out failures caused by mismatch between disk categories and instance types or between disk categories and zones. Valid values: Basic Disk, Standard SSD, Ultra Disk, ESSD, and ESSD AutoPL. After you specify multiple disk categories, Auto Scaling preferentially uses the first specified disk category. The priority of the disk categories decreases based on the specified order. | |
Data Disk | You can specify the number of data disks based on your business requirements.
| |
More Disk Categories | You can specify multiple data disk categories in the Auto Scaling console to reduce the risk of scale-out failures caused by mismatch between disk categories and instance types or between disk categories and zones. Valid values: Basic Disk, Standard SSD, Ultra Disk, Enterprise SSD (ESSD), and ESSD AutoPL. |
Network and Security Group section
Parameter | Description | References |
Public IP Address | You can assign IPv4 addresses to ECS instances to enable Internet Access. If you select Assign Public IPv4 Address, you must also configure the Bandwidth Billing parameter. Valid values of the Bandwidth Billing parameter: Pay-by-bandwidth and Pay-by-traffic.
| |
Security Group | A security group is a virtual firewall that controls access to ECS instances. |
Management Settings section
Parameter | Description | References |
Logon Credentials | The setting of this parameter varies based on the operating system type of an ECS instance.
| |
Key Pair | This parameter is required only if you set the Logon Credentials parameter to Key Pair. A key pair consists of a public key and a private key. Only I/O optimized instances support this parameter. If you set the Logon Credentials parameter to Key Pair, the username and password-based logon method is disabled. | |
Tag | You can use tags to identify resources. For example, you can use tags to classify ECS instances and related resources by purpose. This way, you can search for and filter resources in an efficient manner. Note A tag consists of a case-sensitive tag key and a tag value. The tag that you specify is added to all ECS instances and cloud disks that are created based on the scaling configuration. |
Advanced Settings section
Parameter | Description | References |
Resource Group | Resource groups allow you to classify your resources by purpose, permission, or ownership. This way, you can manage the resources across accounts and projects in an efficient manner. | |
Instance Name | The name series of ECS instances created from the scaling configuration. You can use this parameter to specify a unique and sequential instance name series. In this case, ECS instances that are created during scale-out events can be automatically named based on this series. This way, you can manage ECS instances in an efficient manner. If you do not configure this parameter, Auto Scaling provides a default name for each ECS instance. | |
Host Name | The hostname series of ECS instances created from the scaling configuration. You can use this parameter to specify a unique and sequential hostname series. In this case, ECS instances that are created during scale-out events can be assigned hostnames based on this series. This way, you can manage ECS instances in an efficient manner. If you do not configure this parameter, Auto Scaling provides a default hostname for each ECS instance. | |
RAM Role | You can assign Resource Access Management (RAM) roles to ECS instances. Then, you can use temporary Security Token Service (STS) credentials to call API operations of other Alibaba Cloud services. This ensures the security of your AccessKey pair and helps you perform fine-grained permission control and management by using RAM roles. Note You can select RAM roles only for scaling configurations of scaling groups that reside in VPCs. | |
Instance User Data | You can use the Instance User Data feature to configure the startup behavior of ECS instances or pass data to ECS instances to automatically obtain software packages, activate services, and print logs. You must write a custom script and pass data to the script by using the Instance User Data feature. Note You can enable the Instance User Data feature only for scaling configurations of scaling groups that reside in VPCs. | |
SLB Weight | The load balancing weight of each ECS instance created from the scaling configuration. Valid values: 1 to 100. If you already specified a weight when you associated a load balancer with your scaling group, the specified weight takes precedence over the value of the SLB Weight parameter. | |
Private Pool | You can use this parameter to ensure the availability of resources. Auto Scaling uses resources in the associated private pool to create ECS instances. After an elasticity assurance or a capacity reservation is created, Auto Scaling generates a private pool to reserve a specific number of instances that have specific attributes. Valid values:
| |
Dedicated Host | To prevent resource contention and ensure security compliance, you can go to the Dedicated Host console to create a dedicated host. Auto Scaling creates ECS instances on the specified dedicated host to ensure that the ECS instances have exclusive physical resources. |