Updated on 2024-03-19 GMT+08:00

Changing Backend Server Weights

Scenarios

You can change the weights specified for backend servers based on their capability to process requests.

Constraints and Limitations

  • You can set an integer from 0 to 100. If you set the weight of a backend server to 0, new requests will not be routed to this server.
  • The weights can only be specified when you select weighted round robin, weighted least connections, or source IP hash as the load balancing algorithm. For more information about load balancing algorithms, see Backend Server Weights.

Procedure

  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. Hover on in the upper left corner to display Service List and choose Network > 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 backend server group.
  6. Switch to the Backend Servers tab page and click Backend Servers.
  7. Select the backend servers and click Modify Weight up above the backend server list.
  8. In the displayed dialog box, modify weights as you need.
    • Changing the weight of a single backend server: Set the weight in the Weight column.
    • Changing the weights of multiple backend servers: Set the weight next to Batch Modify Weights and click OK.

    You can change the weights of multiple backend servers to 0 so that they will not receive requests from the load balancer.

  9. Click OK.