Combining CLBs with Scaling Groups

Last Updated At: 2025-10-21 09:10:00

As the AS adds and removes CVM instances, you need to ensure that the application's traffic is allocated across all CVM instances. If you want the scaled-out machines to be under a load balance and receive traffic forwarded by the load balance without your intervention, you can assign a load balance to your machines. The CLB will serve as the single point of contact for all incoming traffic to the instances in your auto scaling group.

Adding CLBs to Scaling Groups

Scaling groups are integrated with CLB so that you can attach the CLB to the existing scaling group. After you attach the CLB, it automatically registers the instances in the group and distributes incoming traffic to them.
In the auto scaling console, select Create, and in the CLB option at the bottom of the page, select the CLB you need. If you have not created one in advance, you can click the Create link below the options to create a new CLB.

Note:
The CLB instance associated with the scaling group must be in the same network environment (VPC or basic network in the same region) as the scaling group.

Deleting CLBs of Scaling Groups

Click to enter the details page of the scaling group. Under the details, Click Edit to delete the corresponding CLB.
After deletion, the machines in the scaling group are also automatically unbound from the deleted CLB.