If your snapshot size wasn't big. You can increase the snapshot frequency
(Java prop: zookeeper.snapCount)
This may help a bit in reducing the size of txnlog, so it take less time
for the server to load the data on leader election.
However, taking more frequent snapshot cause the server to use more disk
bandwidth during normal operation. It may affect request latency if both
txnlog and snapshot shares the same disk.
On 6/13/13 1:35 PM, "ankitoshniwal" <[EMAIL PROTECTED]> wrote:
>We are running into a similar issues. Is there recommended path to take in
>this scenario. We are running version 3.4.4 of zookeeper and the txlog on
>disk is close to 5 - 6 Gb. Currently the leader election sometimes takes
>to 50 seconds.
>Any help is greatly appreciated.
>View this message in context:
>Sent from the zookeeper-user mailing list archive at Nabble.com.