Create a scaling configuration to define the ECS instance template for scale-out events in your scaling group. Auto Scaling uses this template to automatically create ECS instances.
Prerequisites
-
An ECS-type scaling group is created. To specify instance attributes instead of a specific instance type, the scaling group must be in a VPC. Configure a scaling group.
-
A security group is created. For VPC-based scaling groups, the security group must belong to the same VPC. Create a security group.
Procedure
Log on to the Auto Scaling console.
In the navigation pane on the left, click Scaling Groups.
In the top navigation bar, select a region.
-
On the Scaling Groups page, find the target scaling group and click View Details in the Actions column to open the scaling group details page.
At the top of the page, click the Scaling Configurations tab.
-
On the Scaling Configuration tab, click Create Scaling Configuration.
-
Configure parameters such as the billing method, instance and image, and network and security group.
For parameter details, see Parameters.
-
Click Create. On the Preview Scaling Configuration page, confirm the settings and click Create Order to create the scaling configuration.
-
(Optional) Enable the scaling configuration.
After you click Create Order, the The scaling configuration is created. dialog box appears. You can click Enable to apply the scaling configuration immediately.
NoteYou can also enable the scaling configuration later from the scaling configuration list. Apply or enable a scaling configuration.
Parameters
Basic information
|
Parameter |
Description |
References |
|
Scaling Configuration Name |
The scaling configuration name. Requirements:
|
None |
|
Billing Method |
Available billing methods:
|
Instance and image
|
Parameter |
Description |
References |
|
Select Image |
An image provides the OS, application environment, and software required to create an ECS instance. Available image types:
|
|
|
Instance Configuration Mode |
Different instance types suit different scenarios. Supported instance configuration modes:
|
|
|
Select Instance Type |
This parameter is available only when you set Instance Configuration Mode to Specify Instance Type. Select the required ECS instance types by name or by vCPU count. Note
You can select up to 20 instance types. The scaling configuration prioritizes types that appear earlier in the list. After you select instance types, you can enable the following features:
|
|
|
Instance Attribute Combination |
This parameter is available only when you set Instance Configuration Mode to Specify Instance Attributes. Select instance types based on attributes such as vCPUs, memory, instance family level, and maximum price. View selected types in the Preview Instance Types section. Note
You can select Add More Attribute Filters to filter by architecture or burstable instance attributes, or select Specify Instance Types that Must Be Included to specify exact instance types. |
Storage
|
Parameter |
Description |
References |
|
System Disk |
Select a ESSD cloud disk, Standard SSD, Ultra Disk, or ESSD AutoPL system disk. |
|
|
Configure More System Disk Categories |
Specify multiple system disk categories, including Basic Disk, Standard SSD, Ultra Disk, ESSD cloud disk, and ESSD AutoPL. This reduces scale-out failures caused by disk category mismatches. Auto Scaling selects the first matching category in the specified order. |
|
|
Data Disk |
Set the number of data disks for your storage needs.
|
|
|
Configure More Data Disk Categories |
If you configure a Data Disk, you can specify multiple data disk categories, such as Basic Disk, Standard SSD, Ultra Disk, ESSD cloud disk, and ESSD AutoPL. This reduces scale-out failures caused by disk category mismatches. |
Network and security group
|
Parameter |
Description |
References |
|
Public IP Address |
Assign a public IPv4 address to an ECS instance. If you assign a public IP address, specify a Bandwidth Billing Mode: By Traffic or Pay-by-bandwidth.
|
|
|
Security Group |
A virtual firewall that controls network access for ECS instances. |
Management settings
|
Parameter |
Description |
References |
|
Logon Credentials |
Supported logon methods vary by OS:
|
|
|
Key Pair |
This parameter is available only when you set Logon Credentials to Key Pair. A key pair consists of a public key and a private key file. Only I/O optimized instances support key pairs. When key pair logon is selected, username and password-based logon is disabled by default. |
|
|
Tag |
A key-value pair that identifies a resource. Tags help you group and manage related ECS instances. Note
Tag keys and values are case-sensitive. Tags apply to all instances and cloud disks created from this scaling configuration. |
Advanced settings
|
Parameter |
Description |
References |
|
Resource Group |
Group cloud resources by purpose, ownership, or permissions for easier management. |
|
|
Instance Name |
An ordered and unique naming pattern generates sequential names for ECS instances created during scale-out events. If not specified, the system uses a default name. |
Set ordered and unique rules for instance names or hostnames |
|
Host |
An ordered and unique hostname pattern generates sequential hostnames for ECS instances created during scale-out events. If not specified, the system uses a default hostname. |
|
|
RAM Role |
An instance RAM role lets you make API calls from an ECS instance using temporary credentials instead of your permanent AccessKey. Note
Instance RAM roles are available only for VPC-based scaling groups. |
|
|
Instance User Data |
Run custom scripts or pass data to an instance during startup, such as obtaining software packages, enabling services, or printing logs. Prepare a custom script and pass it to the ECS instance through this feature. Note
Instance user data is available only for VPC-based scaling groups. |
|
|
Load Balancer Weight |
The weight of an ECS instance from this configuration when added as a backend server to an SLB instance. Valid values: 1 to 100. A weight specified when attaching an SLB instance to the scaling group takes precedence. |
|
|
Resource Pool Policy |
Resource pools include private pools (from Elastic Assurance or Capacity Reservation) and public pools.
|
|
|
Dedicated Host |
A dedicated host provides exclusive physical resources, avoiding resource contention with other tenants and meeting strict security and compliance requirements. Create a dedicated host in the console, then Auto Scaling creates ECS instances on the specified dedicated host. |