11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

Renable indexing<br />

Monitoring<br />

1.<br />

2.<br />

Network and disk space monitoring are essential. Ensure that the system has plenty of available storage<br />

to queue up changes if there is a disconnect between the Source and Target. A network outage between<br />

the two data centers can cause your disk usage to grow.<br />

a.<br />

Tip: Set a monitor for your disks to send alerts when the disk gets over a certain percentage (eg.<br />

70%)<br />

b. Tip: Run a test. With moderate indexing, how long can the system queue changes before you run<br />

out of disk space?<br />

Create a simple way to check the counts between the Source and the Target.<br />

a.<br />

Keep in mind that if indexing is running, the Source and Target may not match document for<br />

document. Set an alert to fire if the difference is greater than some percentage of the overall cloud<br />

size.<br />

ZooKeeper settings<br />

1.<br />

With CDCR, the Target ZooKeepers will have connections from the Target clouds and the Source clouds.<br />

You may need to increase the maxClientCnxns setting in the zoo.cfg.<br />

## set numbers of connection to 200 from client<br />

## is maxClientCnxns=0 that means no limit<br />

maxClientCnxns=800<br />

Upgrading and Patching Production<br />

1.<br />

When rolling in upgrades to your indexer or application, you should shutdown the Source (production) and<br />

the Target (DR). Depending on your setup, you may want to pause/stop indexing. Deploy the release or<br />

patch and renable indexing. Then start the Target (DR).<br />

a. Tip: There is no need to reissue the DISABLEBUFFERS or START commands. These are<br />

persisted.<br />

b. Tip: After starting the Target, run a simple test. Add a test document to each of the Source clouds.<br />

Then check for it on the Target.<br />

#send to the Source<br />

curl http:///solr/cloud1/update -H 'Content-type:application/json' -d<br />

'[{"SKU":"ABC"}]'<br />

#check the Target<br />

curl "http://:8983/solr/cloud1/select?q=SKU:ABC&wt=json&indent=true"<br />

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

624

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

Saved successfully!

Ooh no, something went wrong!