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.

Found 2 <strong>Solr</strong> nodes:<br />

<strong>Solr</strong> process 39920 running on port 7574<br />

{<br />

"solr_home":"/Applications/<strong>Solr</strong>/example/cloud/node2/solr/",<br />

"version":"X.Y.0",<br />

"startTime":"2015-02-10T17:19:54.739Z",<br />

"uptime":"1 days, 23 hours, 55 minutes, 48 seconds",<br />

"memory":"77.2 MB (%15.7) of 490.7 MB",<br />

"cloud":{<br />

"ZooKeeper":"localhost:9865",<br />

"liveNodes":"2",<br />

"collections":"2"}}<br />

<strong>Solr</strong> process 39827 running on port 8865<br />

{<br />

"solr_home":"/Applications/<strong>Solr</strong>/example/cloud/node1/solr/",<br />

"version":"X.Y.0",<br />

"startTime":"2015-02-10T17:19:49.057Z",<br />

"uptime":"1 days, 23 hours, 55 minutes, 54 seconds",<br />

"memory":"94.2 MB (%19.2) of 490.7 MB",<br />

"cloud":{<br />

"ZooKeeper":"localhost:9865",<br />

"liveNodes":"2",<br />

"collections":"2"}}<br />

Healthcheck<br />

The healthcheck command generates a JSON-formatted health report for a collection when running in <strong>Solr</strong>Cloud<br />

mode. The health report provides information about the state of every replica for all shards in a collection,<br />

including the number of committed documents and its current state.<br />

bin/solr healthcheck [options]<br />

bin/solr healthcheck -help<br />

Available Parameters<br />

Parameter Description Example<br />

-c<br />

<br />

Name of the collection to run a healthcheck against (required).<br />

bin/solr<br />

healthcheck<br />

-c<br />

gettingstarted<br />

-z ZooKeeper connection string, defaults to localhost:9983. If you are running<br />

<strong>Solr</strong> on a port other than 8983, you will have to specify the ZooKeeper<br />

connection string. By default, this will be the <strong>Solr</strong> port + 1000.<br />

bin/solr<br />

healthcheck<br />

-z<br />

localhost:2181<br />

Below is an example healthcheck request and response using a non-standard ZooKeeper connect string, with 2<br />

nodes running:<br />

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

20

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

Saved successfully!

Ooh no, something went wrong!