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 mcgyver83 <st...@gmail.com> on 2012/04/12 10:13:45 UTC

Solr 3.3.0 multi core - slave replication log

Hi,
I have a multi core solr 3.3.0 with 2 slave and a master with replication
config.
I want to add info to logs.
MASTER
now:   INFO [org.apache.solr.core.SolrCore] (http-0.0.0.0-13290-5) [core1]
webapp=/app path=/replication params={command=indexversion&wt=javabin}
status=0 QTime=1
wanted:  INFO [org.apache.solr.core.SolrCore] (http-0.0.0.0-13290-5)
*[remote host asking]* [core1] webapp=/app path=/replication
params={command=indexversion&wt=javabin} status=0 QTime=1

I extended SolrDispatchFilter and override execute method adding with MDC
MDC.put("remoteHost", request.getRemoteHost());

SLAVE
now: INFO [org.apache.solr.handler.SnapPuller] (pool-13-thread-1) Slave in
sync with master.
wanted: INFO [org.apache.solr.handler.SnapPuller] (pool-13-thread-1)
*[core1]* Slave in sync with master.

How can I add "core" info to slave log when replication is not needed?

--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-3-3-0-multi-core-slave-replication-log-tp3904790p3904790.html
Sent from the Solr - User mailing list archive at Nabble.com.