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.

<br />

0<br />

9<br />

<br />

<br />

Examining the clusterstate after issuing this call should show exactly one replica in each shard that has this<br />

property.<br />

Rebalance Leaders<br />

Reassign leaders in a collection according to the preferredLeader property across active nodes.<br />

/admin/collections?action=REBALANCELEADERS&collection=collectionName<br />

Assigns leaders in a collection according to the preferredLeader property on active nodes. This command should<br />

be run after the preferredLeader property has been assigned via the BALANCESHARDUNIQUE or<br />

ADDREPLICAPROP commands. NOTE: it is not required that all shards in a collection have a preferredLeader<br />

property. Rebalancing will only attempt to reassign leadership to those replicas that have the preferredLeader<br />

property set to "true" and are not currently the shard leader and are currently active.<br />

Input<br />

Query Parameters<br />

Key Type Required Description<br />

collection string Yes The name of the collection to rebalance preferredLeaders on.<br />

maxAtOnce string No The maximum number of reassignments to have queue up at once.<br />

Values

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

Saved successfully!

Ooh no, something went wrong!