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 bramsreddy <br...@gmail.com> on 2011/09/05 07:52:07 UTC

Multiple Solr replicaton threads

Hi,

I have one master-slave setup.slave pulls index from master after every x
seconds.The problem is for one single replication slot two threads are
getting created and trying to work parallely on same index.this is causing
lock obtain time exception

2011-09-05 07:40:00,014 INFO  [org.apache.solr.handler.SnapPuller]
(pool-15-thread-1) Master's version: 1310981586400, generation: 10188
2011-09-05 07:40:00,014 INFO  [org.apache.solr.handler.SnapPuller]
(pool-15-thread-1) Slave's version: 1310981586382, generation: 10170
2011-09-05 07:40:00,014 INFO  [org.apache.solr.handler.SnapPuller]
(pool-15-thread-1) Starting replication process
2011-09-05 07:40:00,016 INFO  [org.apache.solr.handler.SnapPuller]
(pool-19-thread-1) Master's version: 1310981586400, generation: 10188
2011-09-05 07:40:00,016 INFO  [org.apache.solr.handler.SnapPuller]
(pool-19-thread-1) Slave's version: 1310981586393, generation: 10181
2011-09-05 07:40:00,017 INFO  [org.apache.solr.handler.SnapPuller]
(pool-19-thread-1) Starting replication process

How can i make it to create a single thread per replication.

Regards
Ram


--
View this message in context: http://lucene.472066.n3.nabble.com/Multiple-Solr-replicaton-threads-tp3310002p3310002.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Multiple Solr replicaton threads

Posted by bramsreddy <br...@gmail.com>.
I am using solr 1.4 and solrj.I am sorry that i mentioned 'x seconds',in fact
its x minutes.

I found the root cause for the problem.I am using EmbededSolrServer to serve
all search requests from my applications.So when the web application starts
one snap puller will be created.And to create EmbededSolrServer i need to
initialize the corecontainer,this initialization is creating one more snap
puller.Thats why it is creating multiple threads.

For time being i solved this issue by replacing EmbededSolrServer with
CommonHttpServer.Everything working fine now.

But is their any other solution that i can use EmbededSolrServer again?

--
View this message in context: http://lucene.472066.n3.nabble.com/Multiple-Solr-replicaton-threads-tp3310002p3311033.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Multiple Solr replicaton threads

Posted by Erick Erickson <er...@gmail.com>.
What version of Solr are you using? And it also sounds like you're
polling too often and/or committing too often for good performance.

But the replication is read-only, so I'm surprised you're getting this,
more details please.... Where is the exception occurring?

Best
Erick

On Mon, Sep 5, 2011 at 1:52 AM, bramsreddy <br...@gmail.com> wrote:
> Hi,
>
> I have one master-slave setup.slave pulls index from master after every x
> seconds.The problem is for one single replication slot two threads are
> getting created and trying to work parallely on same index.this is causing
> lock obtain time exception
>
> 2011-09-05 07:40:00,014 INFO  [org.apache.solr.handler.SnapPuller]
> (pool-15-thread-1) Master's version: 1310981586400, generation: 10188
> 2011-09-05 07:40:00,014 INFO  [org.apache.solr.handler.SnapPuller]
> (pool-15-thread-1) Slave's version: 1310981586382, generation: 10170
> 2011-09-05 07:40:00,014 INFO  [org.apache.solr.handler.SnapPuller]
> (pool-15-thread-1) Starting replication process
> 2011-09-05 07:40:00,016 INFO  [org.apache.solr.handler.SnapPuller]
> (pool-19-thread-1) Master's version: 1310981586400, generation: 10188
> 2011-09-05 07:40:00,016 INFO  [org.apache.solr.handler.SnapPuller]
> (pool-19-thread-1) Slave's version: 1310981586393, generation: 10181
> 2011-09-05 07:40:00,017 INFO  [org.apache.solr.handler.SnapPuller]
> (pool-19-thread-1) Starting replication process
>
> How can i make it to create a single thread per replication.
>
> Regards
> Ram
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Multiple-Solr-replicaton-threads-tp3310002p3310002.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>