[
https://issues.apache.org/jira/browse/SOLR-2880?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sami Siren updated SOLR-2880:
-----------------------------
Attachment: SOLR-2880.patch
This patch implements a simple overseer (cluster leader). Currently it does not
do more than assign shard ids to cores so there is no added functionality. I
wanted to post what I currently have here to get some feedback and improvement
ideas.
Two new top level zkNodes are created:
/node_assignments
/node_states
Basically the integration point is the ZKController:
When a core is registered its state is registered locally and nodes current
state is published under /node_states
When overseer assigns a shard id the state is stored locally (to overseer) and
the assignments for the node are published under /node_assignments.
Overseer gets the number of shards required for a collection from the
collections properties in ZK. So if you wanted to add a new collection you'd
create a new collection node and record the required number of shards (among
other things like the used configuration) into its properties.
Even if a node hosts multiple cores it only creates single node
(/node_states/<id>) and reads a single node (/node_assignments/<id>). It might
be simpler to have multiple subnodes (one for each core)
> Investigate adding an overseer that can assign shards, later do re-balancing,
> etc
> ---------------------------------------------------------------------------------
>
> Key: SOLR-2880
> URL: https://issues.apache.org/jira/browse/SOLR-2880
> Project: Solr
> Issue Type: Sub-task
> Components: SolrCloud
> Reporter: Mark Miller
> Assignee: Mark Miller
> Fix For: 4.0
>
> Attachments: SOLR-2880.patch
>
>
--
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]