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:43:14 GMT
Repository: zookeeper
Updated Branches:
  refs/heads/master 1165794be -> 563f892da


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/563f892d
Tree: http://git-wip-us.apache.org/repos/asf/zookeeper/tree/563f892d
Diff: http://git-wip-us.apache.org/repos/asf/zookeeper/diff/563f892d

Branch: refs/heads/master
Commit: 563f892da0e03e23715bddf236b10582bd51e429
Parents: 1165794
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:43:11 2017 -0700

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


http://git-wip-us.apache.org/repos/asf/zookeeper/blob/563f892d/src/docs/src/documentation/content/xdocs/zookeeperAdmin.xml
----------------------------------------------------------------------
diff --git a/src/docs/src/documentation/content/xdocs/zookeeperAdmin.xml b/src/docs/src/documentation/content/xdocs/zookeeperAdmin.xml
index 67efc4b..19aa182 100644
--- a/src/docs/src/documentation/content/xdocs/zookeeperAdmin.xml
+++ b/src/docs/src/documentation/content/xdocs/zookeeperAdmin.xml
@@ -822,11 +822,15 @@ server.3=zoo3:2888:3888</programlisting>
               <para>(Java system property: <emphasis
               role="bold">zookeeper.snapCount</emphasis>)</para>
 
-              <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>
             </listitem>
           </varlistentry>
 


Mime
View raw message