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 grpc-io+unsubscr...@googlegroups.com.
To post to this group, send email to grpc-io@googlegroups.com.
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/3a367106-8922-4b97-8bce-d7f740ee08b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to