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
Replace use of grpc.Picker with grpc.Balancer #875
Comments
Moving this to 1.13, WDYT? @stevvooe @LK4D4 @aaronlehmann |
Definitely 1.13. Note that we are moving away from pickers anyway in recent PRs due to problems with |
@stevvooe @LK4D4 @aaronlehmann: Should we fix the issue with worker reconnection here? Should we log an issue? |
@aluzzardi Let's log another issue. |
@stevvooe @LK4D4 @aaronlehmann Can one of you formulate the problem in a separate issue? You have more context than I do regarding the reconnection problem. |
The reconnection issue is tracked in moby/moby#25017 and nine out of ten related PRs have already been marged. |
@aaronlehmann Didn't we toy with the idea of re-designing the peer selection part? |
@aluzzardi we slightly changed it. It seems to fit our needs for 1.12.1. More sophisticated refactoring should be done as part of moving to grpc.Balancer. |
Considering this a P1 because it's blocking our ability to upgrade the GRPC version, which is preventing us from fixing other bugs. |
@aaronlehmann @dperny I propose to not use Balancer for now. Balancer is supposed to create multiple connections, using it for choosing only one connection would bring only pain and confusing. Also, it's still experimental API according to grpc godoc. I propose to just replace CA picker with same code as in agent: Select + recreate on any error, it's actually almost same what it does now. |
I'm glad you said this, because I still wasn't sure what the right course of action was. |
Here is the documentation for
The assertion that this can't be used to manage a multi-homed connection is incorrect. We really shouldn't be passing around pickers and remotes. We should be passing around client objects. |
@stevvooe I'd really prefer not to use another experimental grpc stuff instead of previous. There is a risk that we'll end with rewriting again. |
@LK4D4 I think we just pass a |
@stevvooe Still both Resolver and Balancer are experimental. Also, |
@LK4D4 your PR successfully purged all Picker from our base, right? |
@dperny yes, there is no more picker. |
We knew this change was coming, just not quite when. We need to replace use of
Picker
withBalancer
.The text was updated successfully, but these errors were encountered: