当前位置:网站首页>Ribbon load balancing strategy

Ribbon load balancing strategy

2022-04-23 22:10:00 Leon_ Jinhai_ Sun

# 1.ribbon Load balancing algorithm
- RoundRobinRule                  Rotation strategy      Cycle through the choices Server
- RandomRule                      Random strategy      Random selection Server
- AvailabilityFilteringRule Filter strategy available
     ` Services that are in the breaker trip state due to multiple access failures are filtered first , There are also services with concurrent connections exceeding the threshold , Then access the remaining service list according to the polling strategy

 

- WeightedResponseTimeRule   Response time weighting strategy   
    ` The weight of all services is calculated based on the average response time , The faster the response time, the higher the service weight, the higher the probability of being selected , If you don't have enough statistics at startup , Then use         
        RoundRobinRule Strategy , When the statistics are enough, it will switch to

- RetryRule                 Retrying strategy          
    ` First according to RoundRobinRule The strategy to get services , If the acquisition fails, try again within the specified time , Get available services .
    
- BestAviableRule           Minimum concurrency strategy     
    ` Services in the breaker trip state due to multiple access failures will be filtered out first , Then choose a service with the least amount of concurrency  

版权声明
本文为[Leon_ Jinhai_ Sun]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/113/202204232157393774.html