zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h...@apache.org
Subject zookeeper git commit: ZOOKEEPER-2349: Update documentation for snapCount
Date Mon, 11 Sep 2017 20:44:48 GMT
Repository: zookeeper
Updated Branches:
  refs/heads/branch-3.4 70797397f -> 574a94daf

ZOOKEEPER-2349: Update documentation for snapCount

Origin patch can not apply now and it has something inaccurate.so I give it a new PR.
more details in [JIRA](https://issues.apache.org/jira/browse/ZOOKEEPER-2349)

Author: maoling <maoling199210191@sina.com>

Reviewers: Abe Fine <afine@apache.org>, Michael Han <hanm@apache.org>

Closes #349 from maoling/ZOOKEEPER-2349

Project: http://git-wip-us.apache.org/repos/asf/zookeeper/repo
Commit: http://git-wip-us.apache.org/repos/asf/zookeeper/commit/574a94da
Tree: http://git-wip-us.apache.org/repos/asf/zookeeper/tree/574a94da
Diff: http://git-wip-us.apache.org/repos/asf/zookeeper/diff/574a94da

Branch: refs/heads/branch-3.4
Commit: 574a94dafd9238e74d36d41c8b37388717d32d28
Parents: 7079739
Author: maoling <maoling199210191@sina.com>
Authored: Mon Sep 11 13:43:11 2017 -0700
Committer: Michael Han <hanm@apache.org>
Committed: Mon Sep 11 13:44:37 2017 -0700

 .../documentation/content/xdocs/zookeeperAdmin.xml    | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/src/docs/src/documentation/content/xdocs/zookeeperAdmin.xml b/src/docs/src/documentation/content/xdocs/zookeeperAdmin.xml
index cc5da13..3f9051a 100644
--- a/src/docs/src/documentation/content/xdocs/zookeeperAdmin.xml
+++ b/src/docs/src/documentation/content/xdocs/zookeeperAdmin.xml
@@ -764,11 +764,15 @@ server.3=zoo3:2888:3888</programlisting>
               <para>(Java system property: <emphasis
-              <para>ZooKeeper logs transactions to a transaction
-              log. After snapCount transactions are written to a log
-              file a snapshot is started and a new transaction log
-              file is created. The default snapCount is
-              100,000.</para>
+              <para>ZooKeeper records its transactions using snapshots and
+              a transaction log (think write-ahead log).The number of
+              transactions recorded in the transaction log before a snapshot
+              can be taken (and the transaction log rolled) is determined
+              by snapCount. In order to prevent all of the machines in the quorum
+              from taking a snapshot at the same time, each ZooKeeper server
+              will take a snapshot when the number of transactions in the transaction log
+              reaches a runtime generated random value in the [snapCount/2+1, snapCount]

+              range.The default snapCount is 100,000.</para>

View raw message