[ https://issues.apache.org/jira/browse/SOLR-4492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Erick Erickson resolved SOLR-4492. ---------------------------------- Resolution: Fixed Fix Version/s: Trunk 5.0 Fixed with the checkins under SOLR-6491 Needs two steps: 1> either manually assign the "preferredLeader" property to nodes of your choice OR use the BALANCESLICEUNIQUE command on the "preferredLeader" property to auto-assign the preferredLeader property 2> issue the REBALANCELEADERS call to "make it so". See the reference guide. > Please add support for Collection API CREATE method to evenly distribute > leader roles among instances > ----------------------------------------------------------------------------------------------------- > > Key: SOLR-4492 > URL: https://issues.apache.org/jira/browse/SOLR-4492 > Project: Solr > Issue Type: New Feature > Components: SolrCloud > Reporter: Tim Vaillancourt > Assignee: Erick Erickson > Priority: Minor > Fix For: 5.0, Trunk > > > Currently in SolrCloud 4.1, a CREATE call to the Collection API will cause > the server receiving the CREATE call to become the leader of all shards. > I would like to ask for the ability for the CREATE call to evenly distribute > the leader role across all instances, ie: if I create 3 shards over 3 SOLR > 4.1 instances, each instance/node would only be the leader of 1 shard. > This would be logically consistent with the way replicas are randomly > distributed by this same call across instances/nodes. > Currently, this CREATE call will cause the server receiving the call to > become the leader of 3 shards. > curl -v > 'http://<HOST>:8983/solr/admin/collections?action=CREATE&name=test&numShards=3&replicationFactor=2&maxShardsPerNode=2' > PS: Thank you SOLR developers for your contributions! > Tim Vaillancourt -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org