Updated on 2024-06-20 GMT+08:00

Cloud Servers

When you use ELB to route requests, ensure that at least one backend server is running properly and can receive requests routed by the load balancer.

After a backend server is unbound from a load balancer, the backend server does not receive requests forwarded by the load balancer, but the backend server is disassociated from the load balancer. You can add the backend server to the backend server group again when traffic increases or the reliability needs to be enhanced.

Constraints and Limitations

Only servers in the same VPC as the load balancer can be added.

Adding a Cloud Server

  1. Log in to the management console.
  2. In the upper left corner of the page, click and select the desired region and project.
  3. Click in the upper left corner to display Service List and choose Networking > Elastic Load Balance.
  4. In the navigation pane on the left, choose Elastic Load Balance > Backend Server Groups.
  1. On the Backend Server Groups page, click the name of the backend server group.
  2. Switch to the Backend Servers tab and click Add on the right.
  3. Search for backend servers using specified keywords.
  4. Specify the weights and ports for the backend servers, and click Finish.

    Backend server ports can be set in batches.

Modifying Cloud Server Ports/Weights

  1. Log in to the management console.
  2. In the upper left corner of the page, click and select the desired region and project.
  3. Click in the upper left corner to display Service List and choose Networking > Elastic Load Balance.
  4. In the navigation pane on the left, choose Elastic Load Balance > Backend Server Groups.
  5. On the Backend Server Groups page, click the name of the target backend server group.
  6. On the Backend Servers tab, click Backend Servers.
  7. Select the cloud servers and click Modify Weight up above the cloud server list.
  8. In the displayed dialog box, modify ports/weights as you need.
    • Changing the weight of a single cloud server: Set the weight in the Weight column.
    • Modifying the weights of multiple cloud servers: Select the target cloud servers and set the weight next to Batch Modify Weights and click OK.

    You can set the weights of multiple cloud servers to 0 to block them from receiving requests routed by each load balancer.

  9. Click OK.

Removing a Cloud Server

If a cloud server is removed, requests are still routed to it. This is because a persistent connection is established between the load balancer and the backend server and requests are routed to this server until the TCP connection times out. If no data is transmitted over this TCP connection after it times out, ELB disconnects the connection.

  1. Log in to the management console.
  2. In the upper left corner of the page, click and select the desired region and project.
  3. Click in the upper left corner to display Service List and choose Networking > Elastic Load Balance.
  4. In the navigation pane on the left, choose Elastic Load Balance > Backend Server Groups.
  5. On the Backend Server Groups page, click the name of the target backend server group.
  6. Switch to the Backend Servers tab and click Backend Servers.
  7. Select the cloud servers you want to remove and click Remove above the cloud server list.
  8. In the displayed dialog box, click OK.