Each Classic Load Balancer (CLB) instance is associated with a default server group. You can add Elastic Compute Service (ECS) to the default server group. All listeners on the CLB instance are associated with the default server group. This topic describes how to add an ECS instance to the default server group and manage the ECS instances in the default server group.
Prerequisites
- A CLB instance is created. For more information, see Create and manage a CLB instance.
- ECS instances are created and applications are deployed on the ECS instances to receive
requests.
Note Make sure that the ECS instance and the CLB instance are in the same region.
Add an ECS instance to the default server group
Manage the ECS instances in the default server group
After you add ECS instances to the default server group, you can modify the weights of the ECS instances. If you no longer use an ECS instance, you can remove the ECS instance from the default server group.
- Log on to the CLB console.
- In the top navigation bar, select the region where the CLB instance is deployed.
- On the Instances page, find the CLB instance that you want to manage and click its ID.
- Click the Default Server Group tab. On this tab, you can manage the ECS instances.
- Modify the weights of the ECS instances:
- Find the backend server that you want to manage, move the pointer over the weight
specified for the backend sever, and then click the
icon.
- In the dialog box that appears, enter a weight for the ECS instance and click OK.
Notice If you set the weight of an ECS instance to 0, the ECS instance does not receive requests.
- Find the backend server that you want to manage, move the pointer over the weight
specified for the backend sever, and then click the
- Remove an ECS instance:
- Find the ECS instance that you want to remove and click Remove in the Operations column.
- In the Confirm message, click Remove.
- Modify the weights of the ECS instances:
References
- AddBackendServers: adds backend servers to the default server group.
- SetBackendServers: specified the weights of the backend servers in the default server group.
- RemoveBackendServers: removes ECS instances from the default server group.