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.

core/cdcr?action=QUEUES: Fetches statistics about the queue for each replica and about the update logs.<br />

core/cdcr?action=OPS: Fetches statistics about the replication performance (operations per second) for<br />

each replica<br />

core/cdcr?action=ERRORS: Fetches statistics and other information about replication errors for each replica.<br />

Control Commands<br />

/collection/cdcr?action=STATUS<br />

Input<br />

Query Parameters: There are no parameters to this command.<br />

Output<br />

Output Content<br />

The current state of the CDCR, which includes the state of the replication process and the state of the buffer.<br />

Examples<br />

Input: There are no parameters to this command.<br />

http://localhost:8983/solr/collection/cdcr?action=STATUS<br />

Output<br />

{<br />

}<br />

"responseHeader": {<br />

"status": 0,<br />

"QTime": 0<br />

},<br />

"status": {<br />

"process": "stopped",<br />

"buffer": "enabled"<br />

}<br />

/collection/cdcr?action=ENABLEBUFFER<br />

Input<br />

Query Parameters: There are no parameters to this command.<br />

Output<br />

Output Content<br />

The status of the process and an indication of whether the buffer is enabled<br />

Examples<br />

Input This command enables the buffer, there are no parameters.<br />

http://localhost:8983/solr/collection/cdcr?action=ENABLEBUFFER<br />

Output<br />

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

617

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

Saved successfully!

Ooh no, something went wrong!