This section provides a complete tutorial on using Server Load Balancer. An Internet-facing Server Load Balancer instance is created to distribute received HTTP requests to backend servers.
Note: Before creating a Server Load Balancer instance, you must plan and design your load balancing service, such as the instance type, instance region, and more. For more information, see Plan and prepare.
The tutorial includes the following tasks:
Server Load Balancer is a complementary service for ECS multi-machine solutions, and must be used in conjunction with ECS. In this tutorial, two ECS instances are created to process the distributed traffic.
Create required applications on the ECS instances. In this tutorial, a static web page is created to test the load balancing service.
A Server Load Balancer instance is a running entity of Server Load Balancer. In this tutorial, an Internet-facing Server Load Balancer instance is created.
After creating a Server Load Balancer instance, you have to add at least one listener, and multiple ECS instances as backend servers. In this tutorial, a TCP listener is added, and the ECS instances created in task 1 are used as backend servers.
(Optional) Resolve domain name
Use Alibaba Cloud DNS to resolve a domain name to the IP address of Server Load Balancer so that Server Load Balancer can provide service.
If you no longer need Server Load Balancer, delete it to avoid additional charges.