On top of Ben's description, you probably need to set initLimit to
several minutes to transfer 700MB (worst case). The value of
syncLimit, however, does not need to be that large.
On Mar 15, 2010, at 7:24 PM, Benjamin Reed wrote:
it is a bit confusing but initLimit is the timer that is used when a
follower connects to a leader. there may be some state transfers
involved to bring the follower up to speed so we need to be able to
allow a little extra time for the initial connection.
after that we use syncLimit to figure out if a leader or follower is
dead. a peer (leader or follower) is considered dead if syncLimit
goes by without hearing from the other machine. (this is after the
initial connection has been made.)
please open a jira to made the text a bit more explicit. feel free to
add suggestions :)
On 03/15/2010 04:17 AM, Michael Bauland wrote:
I'm also setting up a Zookeeper ensemble across three different
locations and I've got some questions regarding the parameters as
specified on the page you mentioned:
That's controlled by the "tickTime"/synclimit/initlimit/etc.. see
- What's the difference between initLimit and syncLimit? For
about this in the admin guide: http://bit.ly/c726DC
it says this is the time "to allow followers to connect and sync to a
leader," and syncLimit is the time "to allow followers to sync with
ZooKeeper". To me this sounds very similar, since "Zookeeper" in the
second definition probably means the Zookeeper leader, doesn't it?
- When I connect with a client to the Zookeeper ensemble I provide
three IP addresses of my three Zookeeper servers. Does the client
choose one of them arbitrarily or will it always try to connect to
first one first? I'm asking since I would like to have my clients
try to connect to the local Zookeeper server and only if that fails
whatever reason, maybe it's down) it should try to connect to one
servers on a different physical location.
You'll want to increase from the defaults since those are
high performance interconnect (ie within colo). You are correct
Do you have any suggestions for the parameters? So far I left
at 2 sec and increased initLimit and syncLimit to 30 (i.e., one
much will depend on your env. and some tuning will be involved.
Our sites are connected with 1Gbit to the Internet, but of course we
have no influence on what's in between. The data managed by
quite large (snapshots are 700 MByte, but they may increase in the
Thanks for your help,