Sorry for not making it more clear, but the external load balancing refers to a specific solution defined by this proto <https://github.com/grpc/grpc/blob/master/src/proto/grpc/lb/v1/load_balancer.proto>, won't work with AWS ELB, and is still work-in-progress. It sounds to me that you are using AWS ELB for L4 load-balancing, which is discussed in this issue thread <https://github.com/grpc/grpc/issues/7957>.
On Friday, April 7, 2017 at 7:06:44 AM UTC-7, [email protected] wrote: > > I was reading the docs for load balancing and naming, and I'm trying to > understand how exactly to set this (from > https://github.com/grpc/grpc/blob/master/doc/naming.md): > > - A boolean indicating whether the address is a backend address (i.e., > the address to use to contact the server directly) or a balancer address > (for cases where external load balancing > <https://github.com/grpc/grpc/blob/master/doc/load-balancing.md> is in > use). > > In Java, the ResolveServerInfo class has SocketAddress and Attributes, but > I don't see any special property in Attributes that sets the boolean flag > mentioned above. I have exactly a DNS entry that points to a load balancer > (AWS ELB), but connections seem to persist to the same host behind that ELB > (not sure if this is this issue, or a separate issue of GRPC holding on the > connection for a long time). > > Also, I think it would be nice to have some convenience function for this > instead of having to define a NameResolver to do this. Something like > "ManagedChannelBuilder.forTarget(dns)*.useExternalLoadBalancer(true)* > .usePlaintext(true).build())". > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/2f93c8e9-8495-46ae-aecb-85f7cf3f408c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
