11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

http://localhost:898<br />

<br />

<br />

${TargetZk}<br />

${SourceCollection}<br />

${TargetCollection}<br />

<br />

<br />

8<br />

10<br />

2000<br />

<br />

<br />

1000<br />

<br />

<br />

<br />

<br />

<br />

<br />

Upload the modified solrconfig.xml to ZooKeeper on both Source and Target<br />

Sync the index directories from the Source collection to Target collection across to the<br />

corresponding shard nodes.<br />

Tip: rsync works well for this.<br />

For example: if there are 2 shards on collection1 with 2 replicas for each shard, copy the<br />

corresponding index directories from<br />

shard1replica1Source to shard1replica1Target<br />

shard1replica2Source to shard1replica2Target<br />

shard2replica1Source to shard2replica1Target<br />

shard2replica2Source to shard2replica2Target<br />

Start the ZooKeeper on the Target (DR) side<br />

Start the <strong>Solr</strong>Cloud on the Target (DR) side<br />

Start the ZooKeeper on the Source side<br />

Start the <strong>Solr</strong>Cloud on the Source side<br />

Tip: As a general rule, the Target (DR) side of the <strong>Solr</strong>Cloud should be started before the<br />

Source side.<br />

Activate the CDCR on Source instance using the cdcr api<br />

http://host:port/solr/collection_name/cdcr?action=START<br />

http://host:port/solr/collection_name/cdcr?action=START<br />

There is no need to run the /cdcr?action=START command on the Target<br />

Disable the buffer on the Target<br />

<strong>Apache</strong> <strong>Solr</strong> <strong>Reference</strong> <strong>Guide</strong> <strong>6.0</strong><br />

623

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!