Configuring Weights for Backend Servers
- Weighted round robin
Requests are not routed to a backend server if its weight is set to 0.
If none of the servers have a weight of 0, the load balancer routes requests to backend servers based on their weights. Backend servers with higher weights receive proportionately more requests.
If two backend servers have the same weights, they receive the same number of requests.
- Weighted least connections
Requests are not routed to a backend server if its weight is set to 0.
If none of the servers have a weight of 0, the load balancer calculates the load of each backend server using the formula (Overhead = Number of current connections/Backend server weight) and routes requests to the backend server with the smallest overhead.
- Source IP hash:
Requests are not routed to a backend server if its weight is set to 0.
Weights do not take effect even if they are not 0, and requests from the same IP address are routed to the same backend server.
Procedure
- Log in to the management console.
- In the upper left corner of the page, click and select the desired region and project.
- Hover on in the upper left corner to display Service List and choose Networking > Elastic Load Balance.
- Locate the load balancer and click its name.
- Click Backend Server Groups, locate the backend server group and then the server, and click the number in the Weight column to set the server weight.
- Click OK.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.