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

Optimize least active load balance. #2540

Closed
carryxyh opened this issue Sep 20, 2018 · 1 comment
Closed

Optimize least active load balance. #2540

carryxyh opened this issue Sep 20, 2018 · 1 comment
Assignees

Comments

@carryxyh
Copy link
Member

There are two places in LeasActiveLoadBalance that need to be optimized.

  1. When calculating the total weight, we use a weight that has not been processed by warmup. When multiple invokers have the same active request and weight, we use the weight of the warmup, which is not uniform.
  2. When multiple invokers have the same active request and weight, we randomly select them by weight. There is a bug here that causes the actual randomness to not be strictly weighted.

The pr to fix this two problem:
#2172

The related issue:
#904

@carryxyh
Copy link
Member Author

closed via #2172 (comment)

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