zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Flavio Junqueira <...@apache.org>
Subject Re: how to make a server be leader permanently
Date Tue, 03 May 2016 17:55:08 GMT
+1

> On 02 May 2016, at 23:00, Alexander Shraer <shralex@gmail.com> wrote:
> 
> If you're interested to work on something like that, a good starting point
> could be
> implementing a leader handoff API: ZOOKEEPER-2076
> 
> On Mon, May 2, 2016 at 4:19 AM, Flavio P JUNQUEIRA <fpj@apache.org> wrote:
> 
>> We don't have this kind of behavior enabled because it'd affect
>> availability. If your single leader fails, then the zookeeper ensemble
>> becomes unavailable until the server comes back and might require manual
>> intervention if the server is permanently down.
>> 
>> Also, upon recovery, the configured leader might not have the most recent
>> committed state,  which could cause you to lose data.
>> 
>> The bottom line is that you can't really force this kind of behavior
>> currently with zookeeper.
>> 
>> -Flavio
>> On 2 May 2016 11:53, "WangYQ" <wangyongqiang0617@163.com> wrote:
>> 
>> i want to make a server with lower load be the zookeeper leader
>> permanently. is there any method or configuration?
>> 


Mime
View raw message