Add ECS instances to a vServer group
Overview
This topic describes how to create a vServer group and then add Elastic Compute Service (ECS) instances to the vServer group. If you associate a vServer group with a listener, the listener distributes requests only to backend servers in the vServer group.
Prerequisites
- Create an SLB instance.
- ECS instances are created and applications are deployed on the ECS instances to receive requests.
Procedure
- On the SLB management console interface, select the target SLB instance, click the instance to enter the instance details, and click the VServer Groups tab.
- Click Create VServer Group.
- On the Create VServer Group page, set the parameters and click Create.
In the VServer Group Name field, enter a name for the vServer group.
In the Servers Added section, click Add.
In the Servers panel, select the ECS instances that you want to add and click Next.
On the Ports/Weights page, enter a port and a weight for each ECS instance and click Add.
· Port: The backend port that the ECS instance uses to receive requests.
On the same CLB instance, ECS instances can use the same port.
· Weight: An ECS instance with a higher weight receives more requests. - Click Create.