zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <ted.dunn...@gmail.com>
Subject Re: question about server reconfig
Date Wed, 15 Dec 2010 07:14:25 GMT
So if we change those assignments and restart all servers, we will have a
new leader election and all new sessions, right?

Obviously, we probably can't expect that a rolling restart would work in
this case because the new assignments may conflict with the old assignments
temporarily which would cause some havoc with session id's.  If the new id's
come from a completely different range, I would expect that this would work
reasonably well.

On Tue, Dec 14, 2010 at 6:30 PM, Mahadev Konar <mahadev@yahoo-inc.com>wrote:

> Hi Yuliya,
>  The masted id is used to resolve conflicts when 2 servers have the latest
> transaction id during leader election. Also, its used as the first N  bits
> for the session id to make it unique across zookeeper servers.
> Thanks
> mahadev
> On 12/14/10 5:25 PM, "Ted Dunning" <ted.dunning@gmail.com> wrote:
> Yuliya just asked me this:
> > If "myid" in ZK datadir gets overwritten with different from existing
> number (still unique within ensemble) will it create an issue while ZK is
> running?
> My suggested answer is that it won't hurt anything, but it may cause that
> node to discard any snapshots or logs created under the old id.
> Anybody have corrections or amplifications to this?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message