Thanks a lot for the clarification On Friday, August 17, 2018 at 12:29:15 PM UTC-7, Carl Mastrangelo wrote: > > Yes, that is correct. Load Balancing is done on a per-call basis. Once > an RPC has been assigned to a backend, it will continue on that backend. > > On Friday, August 17, 2018 at 9:20:02 AM UTC-7, eleano...@gmail.com wrote: >> >> Hi, >> >> I just wonder how does gRPC LB handles the bi-directional stream? Once it >> picks which server instance to serve the streaming request, then it will >> continue the streaming request only with that particular server? >> >> On Tuesday, July 31, 2018 at 11:30:41 AM UTC-7, Carl Mastrangelo wrote: >>> >>> In release 1.14, it is now possible to use gPRC LB, gRPC's full featured >>> load balancer client. This is an experimental feature that contacts a gRPC >>> LB server to get load balancing data. >>> >>> To get started, you will need to set the JVM flag >>> "-Dio.grpc.internal.DnsNameResolverProvider.enable_grpclb=true", and >>> include the grpc-grpclb artifact on your class path. This enables using >>> DNS SRV records to point to gRPCLB servers when doing load balancing. >>> >>> The DNS entries need to be in a specific format to be usable. For a >>> service called "api.service.com", It should look something like this: >>> >>> A api.service.com - 127.0.0.1 >>> AAAA api.service.com - ::1 >>> SRV _grpclb._tcp.api.service.com - lb.service.com >>> A lb.service.com - 192.168.0.1 >>> >>> >>> gRPC will check for an SRV record with the prefix "_grpclb._tcp" on >>> the target you provide to the channel. If present, gRPC will use the >>> addresses of THAT domain as balancer addresses. In LB parlance, >>> lb.service.com is a *balancer* address, while api.service.com is a >>> *backend* address. Balanacer addresses must speak the gRPCLB protocol (as >>> defined in the proto). >>> >>> There will be upcoming documentation on the exact way to configure this, >>> but this is being announced here for interested parties to try it out and >>> answer any questions. >>> >>
-- 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/38bf8f7e-55d7-49af-94f1-4c7ee9131d50%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.