Thanks Shawn, but don't want to build something in front of Solr cloud to help 
Solr assign leader role to distribute load of indexing.

Instead of doing this manual step (rebalance leaders) maybe one host should not 
take the leader role of multiple shards for same collection if the number of 
live nodes are equal to number of shards.

But assuming that when you say it will happen "over time", Maybe I'll continue 
indexing and see that leaders will be rebalanced soon.

Regards

> On 16 Jul 2015, at 14:57, Shawn Heisey <apa...@elyograg.org> wrote:
> 
>> On 7/16/2015 5:51 AM, SolrUser2015 wrote:
>> Hi, I'm new to solr!
>> 
>> So downloaded version 5.2 and modified the solr file so it allows me to 
>> create a 5 node cluster:
>> 
>>> 5 shards and replication factor 3 <
>> 
>> Now I see that one node is marked as leader for 3 shards.
>> 
>> So my question is, how can 1 node serve requests for 3 shards, wouldn't that 
>> be uneven distribution of load?  
> 
> SolrCloud will distribute individual queries to different replicas, so
> over time the entire cloud will be used.  The leader role shouldn't
> affect queries, that role is mostly there for indexing and fault handling.
> 
> If you are really concerned about this, you can assign preferred leaders
> and then ask Solr to reshuffle them.  I have never used this
> functionality.  Here's the documentation on it:
> 
> https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-RebalanceLeaders
> 
> Thanks,
> Shawn
> 

Reply via email to