You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Arcadius Ahouansou <ar...@menelic.com> on 2015/10/22 11:44:43 UTC

Re: Zookeeper Quorum leader election

The leader election issue we were having was solved by passing

-Djava.net.preferIPv4Stack=true

to zookeeper startup script

It seems our Linux servers have IPv6 enabled but we have no IPv6 network.

Hope this helps others.

Arcadius.


On 4 September 2015 at 04:57, Arcadius Ahouansou <ar...@menelic.com>
wrote:

>
> We have a quorum of 3 ZK nodes zk1, zk2 and zk3.
> All nodes are identicals.
>
> After multiple restart of the ZK nodes, always keeping the majority of 2,
> we have noticed that the node zk1 has never become the leader.
> Only zk2 and zk3 become leader.
>
> 1) Is there any know reason or possible misconfiguration that may cause
> zk1 to never become a leader? (note that we do not have any zk group
> set-up)
>
> 2) Is there any command or way to force zk1 to become leader of the quorum?
>
> Note that all connected SolrJ clients have zkhost set to
> zk1:port,zk2:port,zk3:port
>
> Thanks.
>
>
> --
> Arcadius Ahouansou
> Menelic Ltd | Information is Power
> M: 07908761999
> W: www.menelic.com
> ---
>



-- 
Arcadius Ahouansou
Menelic Ltd | Information is Power
M: 07908761999
W: www.menelic.com
---

Re: Zookeeper Quorum leader election

Posted by Erick Erickson <er...@gmail.com>.
Thanks for adding that to our collective knowledge store!

On Thu, Oct 22, 2015 at 2:44 AM, Arcadius Ahouansou
<ar...@menelic.com> wrote:
> The leader election issue we were having was solved by passing
>
> -Djava.net.preferIPv4Stack=true
>
> to zookeeper startup script
>
> It seems our Linux servers have IPv6 enabled but we have no IPv6 network.
>
> Hope this helps others.
>
> Arcadius.
>
>
> On 4 September 2015 at 04:57, Arcadius Ahouansou <ar...@menelic.com>
> wrote:
>
>>
>> We have a quorum of 3 ZK nodes zk1, zk2 and zk3.
>> All nodes are identicals.
>>
>> After multiple restart of the ZK nodes, always keeping the majority of 2,
>> we have noticed that the node zk1 has never become the leader.
>> Only zk2 and zk3 become leader.
>>
>> 1) Is there any know reason or possible misconfiguration that may cause
>> zk1 to never become a leader? (note that we do not have any zk group
>> set-up)
>>
>> 2) Is there any command or way to force zk1 to become leader of the quorum?
>>
>> Note that all connected SolrJ clients have zkhost set to
>> zk1:port,zk2:port,zk3:port
>>
>> Thanks.
>>
>>
>> --
>> Arcadius Ahouansou
>> Menelic Ltd | Information is Power
>> M: 07908761999
>> W: www.menelic.com
>> ---
>>
>
>
>
> --
> Arcadius Ahouansou
> Menelic Ltd | Information is Power
> M: 07908761999
> W: www.menelic.com
> ---