-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
wrr: add EDF implementation of weighted round robin. #2957
Conversation
I have a pending PR #2950 to refactor the current xds code in grpc/balancer/xds to grpc/xds/balancer. Do you plan to use the EDF implementation in this PR from outside of xds code? Please let me know. |
@easwars Yes, I'm going to use EDF implementation from balancer/weightedroundrobin/weightedroundrobin.go |
Thanks @alazarev for your reply. |
There is a pending PR (grpc#2957) which wants to use the wrr package from balancer/weightedroundrobin/weightedroundrobin.go. Moving the package to internal/wrr would make it accessible to both xds and balancer code.
EDF is strictly better than current random based wrr (balancer/internal/wrr/random.go). It can be used to load balance both between balancer groups (balancer/xds/edsbalancer/balancergroup.go) and within balancer group using weighted round robin balancer implementation (comming in the next pull request for grpc#2827).
Picked up #2950 changes. |
It looks like CI failure on go1.11 is in internal/transport and not related to PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes. LGTM.
EDF is strictly better than current random based wrr (balancer/internal/wrr/random.go).
It can be used to load balance between balancer groups (balancer/xds/edsbalancer/balancergroup.go) and
within balancer group using weighted round robin balancer implementation (coming in the next pull request for #2827).