About grpc-java load balance release

404 views
Skip to first unread message

Hui Ding

unread,
Aug 11, 2016, 9:22:52 PM8/11/16
to grp...@googlegroups.com
Hi,

The grpc-java lb api has been under testapi for a few months. I wonder if there is a forecast date when the function is ready to release? And as for the name service resolver, if there is a plan to support zookeeper address schema?

Looking forward to your reply.

Thanks,

Hui

Kun Zhang

unread,
Aug 16, 2016, 8:21:18 PM8/16/16
to grpc.io
The LoadBalancer API will be out of experimental once we see enough usage feel confident about the API design.
Despite the experimental tag, it's fully functional and stable. The round-robin LoadBalancer has been implemented. Feel free to use it or implement your own.

We don't have a plan, nor have we seen the need, to standardize a ZooKeeper schema.
Message has been deleted

Abhinay reddy

unread,
Feb 1, 2017, 11:27:17 PM2/1/17
to grpc.io
Thanks for your reply!

I can have zookeeper address schema. Could you please let me know how can I implement this in regards to grpc client

Thanks 
Abhi

On Wed, Feb 1, 2017 at 8:23 PM, <abhinay...@gmail.com> wrote:
Trying to implement load balancer in gRPC client in JAVA, not sure how to implement. Can anyone help me out?

I have been using managedChannel.forAddress("")...If I use load balancer where should I provide multiple server addresses?

--
You received this message because you are subscribed to a topic in the Google Groups "grpc.io" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/grpc-io/CLApO9C16y0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to grpc-io+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@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/413aabc4-de93-45f9-963b-a635cfe007cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kun Zhang

unread,
Feb 2, 2017, 12:18:25 PM2/2/17
to grpc.io, abhinay...@gmail.com
You will need to write a NameResolver to talk to ZooKeeper and get the server addresses.
Then you can use either the stock RoundRobinLoadBalancer, or implement your own LoadBalancer.

Pass the NameResolver and LoadBalancer factories to ManagedChannelBuilder's nameResolverFactory() and loadBalancerFactory().

The addresses emitted from NameResolver are passed to LoadBalancer.

If you write your own LoadBalancer, be aware of the upcoming API change.


On Wednesday, February 1, 2017 at 8:27:17 PM UTC-8, Abhinay reddy wrote:
Thanks for your reply!

I can have zookeeper address schema. Could you please let me know how can I implement this in regards to grpc client

Thanks 
Abhi
On Wed, Feb 1, 2017 at 8:23 PM, <abhinay...@gmail.com> wrote:
Trying to implement load balancer in gRPC client in JAVA, not sure how to implement. Can anyone help me out?

I have been using managedChannel.forAddress("")...If I use load balancer where should I provide multiple server addresses?

On Thursday, 11 August 2016 18:22:52 UTC-7, archerhui wrote:
Hi,

The grpc-java lb api has been under testapi for a few months. I wonder if there is a forecast date when the function is ready to release? And as for the name service resolver, if there is a plan to support zookeeper address schema?

Looking forward to your reply.

Thanks,

Hui

--
You received this message because you are subscribed to a topic in the Google Groups "grpc.io" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/grpc-io/CLApO9C16y0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to grpc-io+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages