I am missing something here.

For a given hbase client (ie, inside 1 JVM), shouldn't there be only 1
connection to ZK, no matter how many htables are opened?



On Thu, Apr 28, 2011 at 7:51 PM, lohit <[email protected]> wrote:

> Thanks for the pointer. Even if we increase
> hbase.zookeeper.property.maxClientCnxns
> wouldn't the cache size still be 31?
> I was wondering if there was way to avoid cache miss so that it would not
> create new ZK connection.
>
> 2011/4/28 Ted Yu <[email protected]>
>
> > Increase value for the following parameter:
> >  <property>
> >    <name>hbase.zookeeper.property.maxClientCnxns</name>
> >    <value>30</value>
> >
> > Please read my blog for long-term fix which should be commited soon:
> >
> >
> http://zhihongyu.blogspot.com/2011/04/managing-connections-in-hbase-090-and.html
> >
> > On Thu, Apr 28, 2011 at 7:26 PM, lohit <[email protected]>
> wrote:
> >
> > > Hi,
> > >
> > > By looking at HConnectionManager it looks like from a single node a max
> > of
> > > 31 connections can be cached.
> > >
> > > >  static final int MAX_CACHED_HBASE_INSTANCES = 31;
> > >
> > > I read the comment that this is based on the assumption that max client
> > > connections to zookeeper is 30 from a single node.
> > > ZooKeeper has an option to change that value, but we seem to be doing
> lot
> > > of
> > > cache misses if we made more than 30 connections from a client.
> > > This cache miss end up making new ZK connection and if number of HTable
> > > operations are more, we see spike in ZooKeeper connections from single
> > > node.
> > >
> > > This is seen in hbase.0.90.2. Is there any work around for this apart
> > from
> > > change the code?
> > >
> > > --
> > > Thanks
> > > Lohit
> > >
> >
>
>
>
> --
> Have a Nice Day!
> Lohit
>

Reply via email to