zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Kelly <iv...@apache.org>
Subject Re: Changing leader to follower?
Date Fri, 10 Oct 2014 14:16:19 GMT
Or just pause the process until someone else takes over.

1. kill -STOP <zookeeper_pid>
2. // wait for election to happen
3. kill -CONT <zookeeper_pid>

This wont top it from becoming leader again. Also, client may migrate to
other servers.

-Ivan

Alexander Shraer writes:

> Hi,
>
> I don't think there's a direct way, although this seems a useful thing to
> add.
>
> One think you could do is to issue a reconfig changing the leader's
> leading/quorum port (through which
> it talks with the followers). This will cause it to give up leadership
> while keeping it in the cluster.
>
> Cheers,
> Alex
>
> On Fri, Oct 10, 2014 at 5:57 AM, Jeff Potter <
> jpotter-zookeeper@codepuppy.com> wrote:
>
>>
>> Hi,
>>
>> Is there a way to “retire” a leader while keeping it in the cluster?
>>
>> Thanks,
>> Jeff


Mime
View raw message