Description
In the leastLoad balancer, there is a field called tolerance. Although the configuration interface for this field exists, it seems that the functionality is not fully implemented.
I would like to request completing the implementation for this part. The required changes appear to be relatively small and should not significantly affect the existing codebase.
This feature is important for users who rely on load balancing. For example, in the following situation, outbound-noisy may be preferred over outbound-stable even though it has a much higher failure rate:
Outbound: noisy
Alive: True
Delay: 73 ms
All: 10
Fail: 9
----------------------------------------
Outbound: stable
Alive: True
Delay: 76 ms
All: 10
Fail: 1
In this example, a tolerance value of 0.1 would solve the issue by allowing the balancer to prefer the more stable outbound, since the latency difference is very small while the reliability difference is significant.
Activity
leastLoad balancer: Implement missing `tolerance` (#6156)
leastLoad balancer: Implement missing `tolerance` (XTLS#6156)
Squashed commit of the following:
leastLoad balancer: Implement missing `tolerance` (#6156)