Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Zookeeper >> mail # user >> Client host selection?


Copy link to this message
-
Re: Client host selection?
At my company we are using some kind of a credential system. If client asks
the credential system for ZK nodes it returns the ZK nodes which are
located in same DC unless told otherwise.
2013/5/2 Owen Kim <[EMAIL PROTECTED]>

> So, what I've been doing is using haproxy to set the local nodes as
> primary. Though, this created a problem with Cassandra when I did the same
> because it obfuscated application errors and created failover problems that
> the client would normally handle because the client only saw a single host.
> The Cass client has a configurable load balancing policy. I was hoping ZK
> had the same so I could get rid of haproxy.
>
>
>
>
> On Wed, May 1, 2013 at 6:22 PM, Jordan Zimmerman <
> [EMAIL PROTECTED]
> > wrote:
>
> > If you can determine local clients, just limit your connection string to
> > those local clients. Of course, this limits failover to local servers,
> but
> > would be a decent workaround until there's better support in ZK.
> >
> > -JZ
> >
> > On May 1, 2013, at 6:05 PM, Owen Kim <[EMAIL PROTECTED]> wrote:
> >
> > > Thanks for the info.
> > >
> > > That feature would be useful. I can determine local nodes myself and
> feed
> > > them into the client.
> > > https://issues.apache.org/jira/browse/ZOOKEEPER-1698
> > >
> > >
> > > On Wed, May 1, 2013 at 5:48 PM, Michi Mutsuzaki <[EMAIL PROTECTED]
> > >wrote:
> > >
> > >> C client has zoo_deterministic_conn_order() to make the connection
> > >> order deterministic. We can add a similar feature to Java client.
> > >> Owen, do you want to open a JIRA for this?
> > >>
> > >> --Michi
> > >>
> > >> On Wed, May 1, 2013 at 5:40 PM, Benjamin Reed <[EMAIL PROTECTED]>
> wrote:
> > >>> no it will connect randomly. we don't really have a way to specify
> > >>> preference or weight. it would be a nice feature to add though.
> > >>>
> > >>> ben
> > >>>
> > >>>
> > >>> On Wed, May 1, 2013 at 5:26 PM, Owen Kim <[EMAIL PROTECTED]> wrote:
> > >>>
> > >>>> Is the client configurable on which host it tries to connect to
> when I
> > >> give
> > >>>> it the host list? Will it perhaps try deterministically in order?
> > >>>> Specifically, I'd like it to favor ZK hosts in the same DC.
> > >>>>
> > >>
> >
> >
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB