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 <[email protected]> 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" <[email protected]> wrote: > > i want to make a server with lower load be the zookeeper leader > permanently. is there any method or configuration? >
