You might consider using the Service-Discovery component of Curator: https://github.com/Netflix/curator/wiki/Service-Discovery - it uses ZooKeeper to manage services coming and going. It has policies for even distribution among the instances as well.
On Jan 29, 2013, at 1:32 PM, Saurabh Dutta <[EMAIL PROTECTED]> wrote:
> I've a tcp based service which i want to run on three nodes.
> I want incoming requests to be distributed among these three nodes
> uniformly. Can zookeeper help me achieve this?
> I've gone through leader election and believe it is a very good recipe to
> make the services fail safe but at this point i want to solve the load
> balancing problem using zookeeper.
> Any help will be greatly appreciated.