You must add at least one default server before using Server Load Balancer.

Prerequisite

  • You have created an SLB instance.
  • You have created ECS instances and deploy applications to process distributed requests. 

Procedure

  1. Log on to the SLB console.
  2. On the Instances page, select a region.
  3. Click the ID of an SLB instance.
  4. Select Default Server.
  5. Click Add
  6. On the Load Balancer Server Pool page, click the Servers Not Added tab.
    The My Servers page is displayed.
  7. Click Add next to the target ECS instance, or select multiple ECS instances and then click Add in Batch.
  8. In the displayed Add a Backend Server dialog box, specify the weight for the added ECS instance and then click Confirm.
    An ECS instance with a higher weight will receive a larger number of connection requests. You can set the weight based on the service capabilities of the ECS instances.
    Notice
    If the weight is set to 0, no requests will be sent to the ECS instance.

    The added ECS instances are listed on the Servers Added page. You can remove or change the weights of the added ECS instances.