[grpc-io] Re: Load balancing while using gRPC

2020-11-08 Thread 'Srini Polavarapu' via grpc.io
You can specify client side round robin load balancing like this: opts = [("grpc.lb_policy_name", "round_robin",)] channel = grpc.insecure_channel(':' , opts) If your target address resolves to multiple addresses then requests are load balanced in a round robin fashion. Other than pick-first,

[grpc-io] Re: Load balancing while using gRPC

2020-11-01 Thread stefan lei
Hi Srini Polavarapu How can I use client side load balancing in Python ? Would you please show me some example ? Thinks ! 在2019年2月11日星期一 UTC+8 下午12:02:22 写道: > Since you want to use an in-line load balancer, take a look at NGINX proxy > that s

[grpc-io] Re: Load balancing while using gRPC

2019-02-10 Thread 'Srini Polavarapu' via grpc.io
Since you want to use an in-line load balancer, take a look at NGINX proxy that supports gRPC. In such a topology, the DNS points to your LB IP which gRPC clients connects to. LB will then load balance to backends. gRPC client is not aware of how