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

David Smiley commented on SOLR-8238:
------------------------------------

Further suggestions:
 * Do leader switch algorithm upon the replica becoming ACTIVE.  Previously I 
suggested linking to node startup but other scenarios could benefit as well 
like creating a replica.
 * We needn't tie this to preferredLeader.  If a replica becomes ACTIVE and it 
sees that the current node would be a better balanced choice for the leader.  
"Better balanced" could simply count same-collection leaders on each node the 
collection has replicas on).  Of course, it would need to "join at head" to 
become next-in-line.  The preferredLeader property and REBALANCELEADERS command 
would then be more niche and users would automatically get leader balancing 
without doing anything!  

> Make Solr respect preferredLeader at startup
> --------------------------------------------
>
>                 Key: SOLR-8238
>                 URL: https://issues.apache.org/jira/browse/SOLR-8238
>             Project: Solr
>          Issue Type: Improvement
>          Components: SolrCloud
>    Affects Versions: 5.2.1
>            Reporter: Peter Morgan
>            Priority: Major
>
> After setting preferredLeader property, noticed that upon restarting leaders 
> revert to wherever they were previously running before REBALANCE was called.  
>  I would expect the preferredLeader to influence the startup election, but it 
> appears it is not observed.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

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

Reply via email to