Reuse an existing instance's specifications to create a scaling group that automatically maintains a uniform cluster.
Common scenarios
A scaling group is a collection of ECS instances that share the same application scenario and instance type. Scaling groups automatically adjust instance count based on load. Examples:
-
When b usiness cluster resource usage fluctuates according to time patterns , automatically scale ECS instances on a schedule
Scale out before peak usage and scale in after usage drops.
-
For s udden business fluctuations , automatically scale ECS instances based on monitoring metrics
Scale out or in based on real-time monitoring metrics (such as CPU and memory usage) to handle sudden, unpredictable load changes.
-
To meet h igh availability requirements , maintain a fixed number of available instances based on expected instance count
Use the expected number of instances and health check mechanism to automatically replace unavailable instances.
Procedure
The following steps create a scaling group from an existing instance. You can also create a scaling group with other methods.
-
Open the Create Scaling Group page.
Sign in to the Auto Scaling console.
In the left-side navigation pane, click Scaling Groups.
In the top navigation bar, select the region where Auto Scaling is activated.
-
On the Scaling Groups page, click Create to go to the Create Scaling Group page.
-
Click the Create by Form tab and configure the scaling group as prompted.
The following table describes the required parameters. See Create an ECS scaling group for all parameters.
-
Click Create.
Next steps
-
Update the scaling configuration image: The scaling configuration uses the base image of the selected instance by default. To replicate the instance's configurations and environment, create a custom image from the instance and update the scaling configuration image.
-
Configure automatic scaling policies: Set up scaling solutions based on your business requirements.
-
Add existing instances: Manually add the original instance to the scaling group for unified management.