【SpringCloud】08. Client load balancer: Ribbon
•
Java
Client load balancer: Ribbon
Ribbon's core for soft load balancing:
Ribbon main components:
technological process:
1. First, get the list of all services through serverlist
2. Then filter out some addresses through serverlistfilter
3. Finally, select an instance through iRule as the final target result
Default load balancing policy
How to modify load balancing policy
PRODUCT:
ribbon:
NFLoadBalancerRuleClassName: com.netflix.loadbalancer.RandomRule
Product: application name
Random rule: the load balancing policy is random (the default policy of ribbon is round robin rule by default)
All load balancing policies can be seen in the iRule interface:
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码