Description
I know this is long but please here me out.
I recently inherited a massive zookeeper ensemble. The snapshot is 3.4 GB on disk. Because of its massive size we have been running into a number of issues. There are lots of problems that we hope to fix with tuning GC etc, but the big one right now that is blocking us making a lot of progress on the rest of them is that when we lose a quorum because the leader left, for what ever reason, it can take well over 5 mins for a new quorum to be established. So we cannot tune the leader without risking downtime.
We traced down where the time was being spent and found that each server was clearing the database so it would be read back in again before leader election even started. Then as part of the sync phase each server will write out a snapshot to checkpoint the progress it made as part of the sync.
I will be putting up a patch shortly with some proposed changes in it.
Attachments
Issue Links
- breaks
-
ZOOKEEPER-2845 Data inconsistency issue due to retain database in leader election
- Resolved
- causes
-
ZOOKEEPER-3023 Flaky test: org.apache.zookeeper.server.quorum.Zab1_0Test.testNormalFollowerRunWithDiff
- Resolved
-
ZOOKEEPER-3911 Data inconsistency caused by DIFF sync uncommitted log
- Closed
- relates to
-
ZOOKEEPER-1674 There is no need to clear & load the database across leader election
- Open
- links to