After digging around in core, I've found that this is the solution:
chan = grpc.insecure_channel("other-server.example.com", ("
grpc.lb_policy_name", "round_robin"))
As a side note: it would be nice if ChannelArgKey contained lb_policy_name
as a constant.
Thanks
On Wednesday, September 20, 2017 at 11:07:52 AM UTC+1, pj2 wrote:
>
> Hi
>
> I've looked around the GitHub project and I notice that round-robin is
> supported as a load balancing policy in gRPC core. Is there an option to
> set the policy in Python? Is there any documentation / parts of the code I
> can refer to?
>
> Thanks
>
--
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/e10916c7-d86a-4c37-97f1-d0bb00473622%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.