First of all, for a cluster this size the additional work a leader
does is so small I suspect you'd have a hard time measuring any
performance difference. Personally I wouldn't worry about it. If you
insist, you can look at the collections API call REBALANCELEADERS (you
have to assigned the preferredLeader property). HOWEVER, that
functionality was put in for situations in which 100s of leaders could
be on a single box. At your scale it's highly unlikely to make any
difference so I'd imagine you'd get a lot greater return for effort by
concentrating your efforts somewhere else...

But step back and think about "manually assign leadership". There's no
way to absolutely fix leadership, and you wouldn't want to. Without a
leader, you cannot index documents. So fixing leadership on a
particular node would mean you'd take all the HA/DR away from
SolrCloud, A Very Bad Thing.


bq:  ...if possible distribute the traffic only between Physical Box 1
and Physical Box 2...

I have no idea what this means. Solr will randomly distribute queries
across all nodes in the collection. If you don't want to use some box,
don't put Solr instances on it.

Best,
Erick

On Thu, Mar 24, 2016 at 11:53 AM, ram <sriram.narayan...@gmail.com> wrote:
> Hello,
>   We have a setup where we have a 5 server cluster of which 3 are cloud
> boxes and 2 are physical boxes. We have external zookeeper setup for the
> same.The physical boxes have more capacity and in the past,we have seen
> whenever the one of the boxes is leader in solrcloud,the performance seems
> to be really good. However the leader election changes from time to time and
> most of the time the cloud boxes seem to process most of the traffic
>   Currently our solrcloud looks something like this
>                              ---- Physical Box 1
>     XXXXX ->shard 1 ---- Cloud 1
>                              ----- Cloud 2(Leader)
>                              ----- Physical Box 2
>                              ------ Cloud 3
>
>                               ---- Physical Box 1
>     YYYY ->shard 1     ---- Cloud 1
>                              ----- Cloud 2(Leader)
>                              ----- Physical Box 2
>                              ------ Cloud 3
>
>                                 ---- Physical Box 1
>     ZZZZ ->shard 1     ---- Cloud 1
>                              ----- Cloud 2(Leader)
>                              ----- Physical Box 2
>                              ------ Cloud 3
>
>
> We are looking for a way to assign leadership to one of the physical box
> always and if possible distribute the traffic only between Physical Box 1
> and Physical Box 2.
>
> Is it possible to manually assign leadership? Would appreciate your inputs
>
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Overriding-SolrCloud-Leader-Election-and-manually-assign-leadership-Is-it-possible-tp4265932.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to