[
https://issues.apache.org/jira/browse/SOLR-2765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13122185#comment-13122185
]
Jamie Johnson commented on SOLR-2765:
-------------------------------------
Yonik,
I had a need to have this role capability so I could dynamically
add/remove/discover solr instances and their responsibility as the state of the
cloud changed. To do this I added the following snippet to ZKController.java,
CoreContainer.java and CloudDescriptor.java to incorporate this information.
Now in solr.xml you define the following:
<core name="coreName" instanceDir="." shard="shard1"
collection="collection" roles="searcher,indexer"/>
I've attached the patch for comment (wasn't done against trunk but I can try to
pull that down and do it there if necessary).
> Shard/Node states
> -----------------
>
> Key: SOLR-2765
> URL: https://issues.apache.org/jira/browse/SOLR-2765
> Project: Solr
> Issue Type: Sub-task
> Components: SolrCloud, update
> Reporter: Yonik Seeley
> Fix For: 4.0
>
> Attachments: shard-roles.patch
>
>
> Need state for shards that indicate they are recovering, active/enabled, or
> disabled.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]