lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shalin Shekhar Mangar <shalinman...@gmail.com>
Subject Re: Does CloudSolrServer hit zookeeper for every request?
Date Wed, 08 Oct 2014 04:57:53 GMT
CloudSolrServer doesn't hit ZooKeeper for every request. I am guessing that
you are creating a new CloudSolrServer object per request. Don't do that.
Create just one CloudSolrServer and re-use it for all requests. It is a
thread-safe object.

On Mon, Oct 6, 2014 at 8:58 PM, Jonnakuti, Vijayalatha <
Vijayalatha.Jonnakuti@disney.com> wrote:

> Hi
> We have too many zookeeper connections and had to increase max client
> connection on zookeeper(3.4.6)
>
> The underlaying problem looks like,
> CloudSolrServer makes a connect call to zookeeper for every request  but
> never disconnects.
>  Am I supposed to call getZkStateReader().close() for every request? Or am
> I missing something?
>
> Solr Configuration is
>
> <autoCommit>
>   <maxDocs>10000</maxDocs>
>   <maxTime>900000</maxTime>
>   <openSearcher>false</openSearcher>
> </autoCommit>
> <commitWithin>
>   <softCommit>true</softCommit>
> </commitWithin>
> <autoSoftCommit>
>        <maxTime>10000</maxTime>
> </autoSoftCommit>
>
> Thanks.,
> Vijaya
>



-- 
Regards,
Shalin Shekhar Mangar.

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