Hi,

I have two Solr nodes, each managing two cores -- a master core and a slave 
core.
The slaves are setup to replicate from the other node's masters
That is, node1.master -> node2.slave, node2.master -> node1.slave.

The replication is configured in each core's solrconfig.xml, eg

Master's solrconfig.xml on both nodes:

<requestHandler name="/replication" class="solr.ReplicationHandler" >
  <lst name="master">
    <str name="replicateAfter">commit</str>
    <str name="replicateAfter">startup</str>
  </lst>
</requestHandler>

node1.Slave's solrconfig.xml:

<requestHandler name="/replication" class="solr.ReplicationHandler" >
  <lst name="slave">
    <str name="masterUrl">http://node2:8983/solr/master/replication</str>
    <str name="pollInterval">01:00:00</str>
  </lst>
</requestHandler>

node2.Slave's solrconfig.xml:

<requestHandler name="/replication" class="solr.ReplicationHandler" >
  <lst name="slave">
    <str name="masterUrl">http://node1:8983/solr/master/replication</str>
    <str name="pollInterval">01:00:00</str>
  </lst>
</requestHandler>

This is all working great with "regular" Solr. I am now trying to move
to SolrCloud/ZK and can't figure out how to keep my replication settings.

The SolrCloud/ZK seems to be managing one configuration for all cores/nodes
in the cluster, yet I need to keep 3 different soltconfig.xml apart -- one
for the masters and one for each of the slaves. The rest of the configuration
(schema.xml etc) is identical to all cores and can be shared.

I found a reference to master/slave setup with Zk in the wiki [1].
Has it been implemented or is this a proposal? If it is implemented,
it's not quite clear to me how to setup the ReplicationHandler
to have 2 different slave cores to pull from two different masters.

Any help/idea would be appreciated!

Thanks,
Yury

[1] http://wiki.apache.org/solr/ZooKeeperIntegration#Master.2BAC8-Slave

Reply via email to