This topic describes how to add ECS instances as default backend servers to the default server group of an SLB instance. Before you use the SLB service, you must add at least one default backend server to receive client requests forwarded by SLB.

Prerequisites

Before you add ECS instances to the default server group, make sure that the following conditions are met:
  • An SLB instance is created. For more information, see Create an SLB instance.
  • You have created ECS instances and deployed applications on these ECS instances to process requests.

Procedure

  1. Log on to the Server Load Balancer console.
  2. On the Server Load Balancers page, select the region of the target SLB instance.
  3. Find the target SLB instance and click its instance ID.
  4. Click the Default Server Group tab.
  5. Click Add.
  6. In the My Servers dialog box, select ECS instances that you want to add.
  7. Click Next.
  8. In the Configure Ports and Weights dialog box, specify the weight of each added ECS instance.
    An ECS instance with a higher weight receives more requests.
    You can change the weight of a server and then move the pointer over Batch operations to change the weights of multiple servers:
    • Click Replicate to Below: The weights of all servers below the current server are set to the weight of the current server.
    • Click Replicate to Above: The weights of all servers above the current server are set to the weight of the current server.
    • Click Replicate to All: The weights of all servers in the default server group are set to the weight of the current server.
    • Click Reset: The weight fields of all servers in the default server group are cleared.
    Notice If the weight of a backend server is set to 0, this backend server no longer receives new requests.
  9. Click Add.
  10. Click OK.