Before using Server Load Balancer, you have to create at least two ECS instances and deploy corresponding applications, and add the instances to the Server Load Balancer instance to process distributed client requests.
Follow the instructions in this document to create two ECS instances, ECS01 and ECS02.
Log on to the ECS console.
In the left-side navigation pane, click Instances and then click Create Instance.
On the Elastic Compute Services (ECS) page, configure the ECS instance.
The following are ECS settings used in this tutorial. For more information, see Create Linux ECS instances.
Region: In this tutorial, select China East 1.
Note: Server Load Balancer does not support cross-region deployment. The region must be the same for the Server Load Balancer instance and the ECS instances.
Network Type: In this tutorial, select VPC. Use the default VPC and VSwitch.
Operating System: In this tutorial, select Ubuntu 16.04 64 bit.
Number of Instances: In this tutorial, select 2. The system simultaneously creates two ECS instances with identical settings.
Click Buy Now and complete the payment.
Go back to the Instance List page and click China East 1. The two newly created ECS instances are displayed.
Hover the mouse pointer over one instance name and click the displayed pencil icon to change the instance name to ECS01. Then change the other instance name to ECS02.