Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZoneAwareLoadBalancer why is default is 0.2d #473

Open
nantebi opened this issue Feb 22, 2021 · 0 comments
Open

ZoneAwareLoadBalancer why is default is 0.2d #473

nantebi opened this issue Feb 22, 2021 · 0 comments

Comments

@nantebi
Copy link

nantebi commented Feb 22, 2021

Hello,
We are not able to understand why the default value is 0.2d in ZoneAwareLoadBalancer
triggeringLoad = DynamicPropertyFactory.getInstance().getDoubleProperty(
"ZoneAwareNIWSDiscoveryLoadBalancer." + this.getName() + ".triggeringLoadPerServerThreshold", 0.2d);

in our environment all the servers have load of Integer 2,3 ,5
The calculation is:
loadPerServer = ((double) activeConnectionsCountOnAvailableServer) / (instanceCount - circuitBreakerTrippedCount);
assume that we have 1 instance and circuit is 1 and we have few connection at any moment it means that our loadPerServer will be much bigger than 0.2

Do we miss anything ?

We don't want to filter those zone with this low load ?

Any hint will help us.

Also we have tens of services and we don't want to change the value for each one of them.
Can the code be change that the default will be globally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant