-
Notifications
You must be signed in to change notification settings - Fork 239
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
Service Config & LoadBalancing Policy #15
Comments
The comment saying that the supported values are 'round_robin' and 'grpclb' is just meant to indicate that those are the only two non-default policies that are supported out of the box by the grpc code. The value of this field is a string, and there's no reason it can't be set to whatever value you want. If your clients are built with support for an LB policy called 'foobar', then you can use that string in the service config, and it should work. The default is indeed to use the pick_first policy. However, @a11r felt that we should not encourage users to explicitly set that, which is why it's not documented as a possible option. However, if you did explicitly set it to that value, I think it should work. |
I see. Do we want to rephrase that something like:
I think it's more clear for both readers and implementers. |
Looks like this issue is fixed by grpc/grpc#10258. Closing. |
It's not the proposal, but a comment/suggestion to an existing document which predates grpc/proposal - the service config. I thought that the issue here would be the best medium to discuss it.
I find
loadBalancingPolicy
a bit limiting. First of all, it supports onlyround_robin
andgrpclb
. Secondly, in the case when it's no present, it users the default ofpick_first
loadbalancer.This basically makes it impossible to use with custom load balancer implementations that are not based on
grpclb
.Could we relax this requirement and allow arbitrary load balancer names as well as change the default? With the default option, I'm suspecting that the documentation might be just confusing and the default won't be
pick_first
BUT what's statically set in code (eg.: in java if you setmanagedChannelBuilder.loadBalancerFactory(new Foobar())
it'll be used as a fallback if servic config doesn't specify override).@markdroth what do you think?
The text was updated successfully, but these errors were encountered: