[grpc-io] How to use SetSocketMutator

2020-11-08 Thread Liping Zhang
Hi, We need to implement an endpoint with a custom socket... with a quick
search, found "Socket_Mutator" seems a starting point, wonder anyone has
experience in this respect ?  how to use "SetSocketMutator" during runtime
to specify the custom endpoint?

Thanks
Liping

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CALJ7Y_vX%2BP_1%2B6s9uOjnEi6PsersAwQ%2BLT%2B%3DYeYprTNzSJKF2Q%40mail.gmail.com.


[grpc-io] Is there have "Resolver" and "Balancer" interface in Python ?

2020-11-08 Thread stefan lei
Hello guys.

I found "Resolver" and "Balancer" in Java and Go,  Is there have in  Python 
?
If not , How can I do ?  I am plan to use them with zookeeper , as  Service 
Found 

Can I build custom c-core version  for Python ?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/55ef0d61-cbad-4e47-8f32-3617b7a2e301n%40googlegroups.com.


[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, this is the 
only built-in load balancing gRPC client supports

On Sunday, November 1, 2020 at 6:28:53 PM UTC-8 stef...@gmail.com wrote:

> 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 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 many backends are present since it only talk to the LB in the 
>> middle. 
>>
>>
>> On Wednesday, February 6, 2019 at 2:50:06 PM UTC-8, ankitpa...@gmail.com 
>> wrote:
>>>
>>> Hello 
>>>
>>> I am exploring Load balancing  while using gRPC . So far i have gone 
>>> through python quick start guide (hello world example); and it was easy to 
>>> follow example. I have the same example running on two of my servers. 
>>>
>>> Now I am in search for similar quick start with load balancing.  I went 
>>> over https://grpc.io/blog/loadbalancing and similar pages which made 
>>> sense to me but  at the same time i felt overwhelmed and cant figure out 
>>> how and where to start. 
>>>
>>> I want to start exercising simple code just like python hello world with 
>>> load balancing enabled (when client say "hello"; load balancer decides 
>>> which server to forward the request and respective server responds with 
>>> "world" )
>>>
>>> if you are aware of any such tutorials or reference links please help me 
>>> out
>>>
>>> thanks
>>> Ankit 
>>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/f953089a-dd6b-4f1c-847e-272c830467abn%40googlegroups.com.