[ 
https://issues.apache.org/jira/browse/SOLR-10935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16059503#comment-16059503
 ] 

Erick Erickson commented on SOLR-10935:
---------------------------------------

First: BALANCESHARDUNIQUE will probably be going away so it's unlikely this 
will be addressed. 

Second: the small added burden of a particular node being leader is not a 
problem unless you start having 100s of leaders on the same node. Small 
discrepancies aren't much concern. the use-case this was built for was having 
several hundred shards each with a replica on each machine (very special 
circumstances). So when that the cluster was coming up, _all_ the leaders would 
be on the same node. Unless you're in that situation it's a waste of time 
worrying about it.

Third: If you really _must_ get them perfectly balanced, you can use 
ADDREPLICAPROP to move the offending property arounc.

> BALANCESHARDUNIQUE does not distribute properties correctly
> -----------------------------------------------------------
>
>                 Key: SOLR-10935
>                 URL: https://issues.apache.org/jira/browse/SOLR-10935
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrCloud
>    Affects Versions: 6.2
>            Reporter: Daisy.Yuan
>
> Create a collection of 8 slices on 4 nodes, 2 replicas of each slice.
> Node IP is:
> 192.168.182.246:21101
> 192.168.182.247:21104
> 192.168.182.248:21101
> 192.168.182.149:21104
> After executing the BALANCESHARDUNIQUE command, the leader node is balanced 
> as follows:
> Shard1 192.168.182.248:21101
> Shard2 192.168.182.249:21104
> Shard3 192.168.182.246:21101
> Shard4 192.168.182.249:21104
> Shard5 192.168.182.246:21101
> Shard6 192.168.182.248:21101
> Shard7 192.168.182.249:21104
> Shard8 192.168.182.247:21104
> The correct expected result should be that there are two leader on each node.
> But the actual result is..
>   there are 3 leaders on 192.168.182.249:21104,
>   and only one Leader on 192.168.182.247:21104
>   the others are distributed correctly.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to