You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Manish N <m1...@live.com> on 2010/05/24 11:33:56 UTC

Indexing stalls reads

Hey,

I'm using solr 1.4 & I've a master / slave setup, I use the slave for all my read operations & commits are scheduled every 20 mins or every 10000 docs. Now I think slave shouldn't build index but fetch ones created on Master, but I see it creating indexes, during which all read  stalls.

Now I don't think thats a common behavior or is there any other way to stop this ?

Also how do i stop slave from removing the old indexes till AutoWarming is done ? is there a way to achieve this ?

Thnx n Regards,

- Manish
 		 	   		  
_________________________________________________________________
The amazing world in sharp snaps
http://news.in.msn.com/gallery/archive.aspx

Re: Indexing stalls reads

Posted by Lance Norskog <go...@gmail.com>.
This sounds like you have the same solrconfig for the slave and the
master? You should turn off autoCommit on the slave. Only the master
should autoCommit.

You should set up the ReplicationHandler. This moves index updates
from the indexer to the query server.

http://www.lucidimagination.com/search/document/CDRG_ch10_10.3.3.5?q=replication

http://www.lucidimagination.com/search/out?u=http%3A%2F%2Fwiki.apache.org%2Fsolr%2FSolrReplication

On Mon, May 24, 2010 at 2:33 AM, Manish N <m1...@live.com> wrote:
>
> Hey,
>
> I'm using solr 1.4 & I've a master / slave setup, I use the slave for all my read operations & commits are scheduled every 20 mins or every 10000 docs. Now I think slave shouldn't build index but fetch ones created on Master, but I see it creating indexes, during which all read  stalls.
>
> Now I don't think thats a common behavior or is there any other way to stop this ?
>
> Also how do i stop slave from removing the old indexes till AutoWarming is done ? is there a way to achieve this ?
>
> Thnx n Regards,
>
> - Manish
>
> _________________________________________________________________
> The amazing world in sharp snaps
> http://news.in.msn.com/gallery/archive.aspx



-- 
Lance Norskog
goksron@gmail.com