zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raúl Gutiérrez Segalés <...@itevenworks.net>
Subject Re: Transaction timeouts
Date Tue, 17 Nov 2015 18:10:24 GMT

On 17 November 2015 at 05:10, Akmal Abbasov <akmal.abbasov@icloud.com>

> Hi, I’m seeing a lot of `Closing connection to peer due to transaction
> timeout` messages in zk logs, in all zk servers.
> Is this transaction timeout configured through syncLimit in zk config file.

That message comes from LearnerHandler#ping() [0], and the frequency of
pings from the leader to learners
is twice a tick [1]. So if your tickTime is 2000ms (the default), you are
pinging the learners every second. You could
adjust the tickTime and see if it gets better. But I suspect something else
(GC-ing? noisy network?) is going on, given that it
shouldn't be that hard for the leader and learners to keep up with 1 ping
every sec.

You can check ZAB messages (i.e.: pings, acks, commits, proposals, etc.)
between the leader and learners using zktraffic's
zk-dump [2].

> Also does zk server need to be restarted in order to update this config?



[2] https://github.com/twitter/zktraffic

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