Bootcamp notes 03-SLB load balancing

Bootcamp notes-SLB load balancing

1. Create

Create two servers, the back-end IP is displayed on the page to be used to distinguish the back-end servers and create a load balancing instance

2. Confirm ecs status

Enter the public network IP on the browser to view the ecs service status, you can distinguish which ecs the page belongs to by the mark on the page, and verify through the management console

3. Configure load balancing

Configure listening port backend server health checks
listening protocol uses HTTP
80 port
advanced configuration to keep the default
back-end server configuration to select just two ECS, the port is set to 80, weight of 100
about 1 minute to view the configuration has been successful

4. Verify load balancing

Visit the load balancing IP and observe the number of times
that the request is sent to the two servers. Change the weight and verify whether the ratio of the number of times the request is sent to the two servers is the ratio of the weight. The
two are equal, and the load balancing verification is successful.
Session retention function: In a certain period of time, the same client session will only be sent to one server. If
one ecs is abnormal, the load balancer will automatically transfer the request to the normal ecs. The verification method is to close one and then visit the load balancer to verify

Alibaba Cloud University plans to accompany more than 2,000 college students to practice and grow on the cloud. Here you can get free cpu resources, and you can also participate in free training camps to improve your practice: https://developer.aliyun.com/adc/student/

Guess you like

Origin blog.csdn.net/scowlingsoup/article/details/113024645