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.

<br />

<br />

Add Role<br />

/admin/collections?action=ADDROLE&role= roleName&node=<br />

nodeName<br />

Assign a role to a given node in the cluster. The only supported role as of 4.7 is 'overseer' . Use this API to<br />

dedicate a particular node as Overseer. Invoke it multiple times to add more nodes. This is useful in large<br />

clusters where an Overseer is likely to get overloaded . If available, one among the list of nodes which are<br />

assigned the 'overseer' role would become the overseer. The system would assign the role to any other node if<br />

none of the designated nodes are up and running<br />

Input<br />

Query Parameters<br />

Key Type Required Description<br />

role string Yes The name of the role. The only supported role as of now is overseer.<br />

node string Yes The name of the node. It is possible to assign a role even before that node is<br />

started.<br />

Output<br />

Output Content<br />

The response will include the status of the request and the properties that were updated or removed. If the status<br />

is anything other than "0", an error message will explain why the request failed.<br />

Examples<br />

Input<br />

http://localhost:8983/solr/admin/collections?action=ADDROLE&role=overseer&node=192.1<br />

67.1.2:8983_solr<br />

Output<br />

<br />

<br />

0<br />

0<br />

<br />

<br />

Remove Role<br />

/admin/collections?action=REMOVEROLE&role= roleName&node=<br />

nodeName<br />

Remove an assigned role. This API is used to undo the roles assigned using ADDROLE operation<br />

Input<br />

Query Parameters<br />

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

584

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

Saved successfully!

Ooh no, something went wrong!