zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neo Qing <neoq...@gmail.com>
Subject Re: Use zookeeper as Load Blancer
Date Thu, 16 May 2013 01:25:01 GMT
Hi,Bahman:
 Yes, you are absolutely right, that's I'm looking for :)

Neo


On Thu, May 16, 2013 at 12:26 AM, Bahman Kalali <bahman.kalali@gmail.com>wrote:

> I think what Neo Qing is looking is to build soem protoclos on top of
> ZooKeeper services to handle load balancing and fail over of other systems
> not an quorum in the cluster of ZooKeeper services itself.
>
>
> On Wed, May 15, 2013 at 11:09 AM, German Blanco <
> german.blanco.blanco@gmail.com> wrote:
>
> > Hello Neo Qing,
> >
> > I am not the best expert, but I will try to help.
> > I understand that you want to have a ZooKeeper client connected to a
> > cluster and you wonder if there will be fail over and load balancing for
> > the requests coming from that client. If I didn't get the question right,
> > please correct me.
> > If I am not wrong, if the ZooKeeper client loses its connection it will
> try
> > to reconnect to any of the servers that are indicated when you create the
> > ZooKeeper object, so there will be fail over. Of course, that will mean a
> > new connection. Some failures in the servers can be handled without the
> > client losing its connection, e.g. when a server other than the one you
> are
> > connected to goes down but there is still a quorum in the cluster.
> > Load Balancing for ZooKeeper write requests coming from clients wouldn't
> > help because all request need to go through the leader. Load Balancing of
> > read request could be achieved if the ZooKeeper clients connections are
> > balanced between the servers of the cluster, but not for a single client
> > connection.
> >
> > I hope that helps. Anybody, please correct me if I got anything wrong.
> > Cheers,
> >
> > Germán Blanco.
> >
> >
> >
> > On Wed, May 15, 2013 at 7:26 AM, Neo Qing <neoqing@gmail.com> wrote:
> >
> > > Hi,There
> > >   I'm new to zookeeper, currently I'm working on a project, I have a
> > > cluster of server, client need to connection server (TCP/IP), and we
> need
> > > to keep the connection long live.
> > >   To do the fail over and load balance , I was wondering whether
> > zookeeper
> > > can handle this case, especially for long live connection.
> > >   thanks in advance.
> > >
> > > Neo
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message