Skip to content

Missing implementation for tolerance logic in leastLoad balancer #6154

Closed

Description

@GaladionGuard

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions