Repository: zookeeper
Updated Branches:
refs/heads/branch-3.5 071bf1afc -> 4051b38bd
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/4051b38b
Tree: http://git-wip-us.apache.org/repos/asf/zookeeper/tree/4051b38b
Diff: http://git-wip-us.apache.org/repos/asf/zookeeper/diff/4051b38b
Branch: refs/heads/branch-3.5
Commit: 4051b38bd691c105b6e2b29463d2c5ef4420e4dc
Parents: 071bf1a
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:08 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/4051b38b/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 c4eaf87..bfed8c4 100644
--- a/src/docs/src/documentation/content/xdocs/zookeeperAdmin.xml
+++ b/src/docs/src/documentation/content/xdocs/zookeeperAdmin.xml
@@ -812,11 +812,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>
|