You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2013/12/14 12:39:33 UTC
git commit: updated refs/heads/master to cb90950
Updated Branches:
refs/heads/master 5e2a4278e -> cb9095053
Document use_checkpoints and checkpoint_interval config options.
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/cb909505
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/cb909505
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/cb909505
Branch: refs/heads/master
Commit: cb9095053b3f5bddaae9dae9721d4d29a01734f9
Parents: 5e2a427
Author: Alexander Shorin <kx...@apache.org>
Authored: Sat Dec 14 15:37:13 2013 +0400
Committer: Alexander Shorin <kx...@apache.org>
Committed: Sat Dec 14 15:38:19 2013 +0400
----------------------------------------------------------------------
share/doc/src/config/replicator.rst | 37 +++++++++++++++++++++++++++
share/doc/src/json-structure.rst | 2 ++
share/doc/src/replication/replicator.rst | 4 +--
3 files changed, 41 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/cb909505/share/doc/src/config/replicator.rst
----------------------------------------------------------------------
diff --git a/share/doc/src/config/replicator.rst b/share/doc/src/config/replicator.rst
index 45451c1..515c679 100644
--- a/share/doc/src/config/replicator.rst
+++ b/share/doc/src/config/replicator.rst
@@ -111,6 +111,43 @@ Replicator Database Configuration
.. _inet: http://www.erlang.org/doc/man/inet.html#setopts-2
+ .. config:option:: checkpoint_interval
+
+ .. versionadded:: 1.6
+
+ Defines replication checkpoint interval in milliseconds. :ref:`Replicator
+ <replication/replicator>` will :get:`requests </{db}>` Source database
+ each time after a specified amount of interval::
+
+ [replicator]
+ checkpoint_interval = 5000
+
+ Keeping this value lower raises polling rate to Source database, which
+ may be useful for frequently changing data, while higher value saves
+ traffic usage that is important for mobile clients.
+
+
+ .. config:option:: use_checkpoints
+
+ .. versionadded:: 1.6
+
+ If set as ``true`` CouchDB makes intermediate checkpoints during
+ replication from those it may continue it in case of failure or restart::
+
+ [replicator]
+ use_checkpoints = true
+
+ .. warning:: It's **not recommended** to switch this option off
+ (by setting value ``false`` to it) since without checkpoints there would
+ not be stored any replication history logs both on Source and Target,
+ forcing replication to start from the very beginning.
+
+ .. note:: Checkpoints (aka Replication Log) are stored as :ref:`local
+ documents <api/local>` both on Source and Target endpoints. In case,
+ when client has no write permission on Source database you may disable
+ them, but locally for specific replication process.
+ See :ref:`replication-settings` for more info.
+
.. config:option:: cert_file
http://git-wip-us.apache.org/repos/asf/couchdb/blob/cb909505/share/doc/src/json-structure.rst
----------------------------------------------------------------------
diff --git a/share/doc/src/json-structure.rst b/share/doc/src/json-structure.rst
index 042df59..7d22f1e 100644
--- a/share/doc/src/json-structure.rst
+++ b/share/doc/src/json-structure.rst
@@ -274,6 +274,8 @@ Replication Settings
| use_checkpoints (optional) | Whether to use replication checkpoints |
| | or not |
+--------------------------------+---------------------------------------------+
+| checkpoint_interval (optional) | Specifies checkpoint interval in ms. |
++--------------------------------+---------------------------------------------+
.. _replication-status:
http://git-wip-us.apache.org/repos/asf/couchdb/blob/cb909505/share/doc/src/replication/replicator.rst
----------------------------------------------------------------------
diff --git a/share/doc/src/replication/replicator.rst b/share/doc/src/replication/replicator.rst
index e93c579..5117752 100644
--- a/share/doc/src/replication/replicator.rst
+++ b/share/doc/src/replication/replicator.rst
@@ -22,8 +22,8 @@ cancel an ongoing replication.
These documents have exactly the same content as the JSON objects we use to
``POST`` to ``_replicate`` (fields ``source``, ``target``, ``create_target``,
-``continuous``, ``doc_ids``, ``filter``, ``query_params``,
-``use_checkpoints``).
+``continuous``, ``doc_ids``, ``filter``, ``query_params``, ``use_checkpoints``,
+``checkpoint_interval``).
Replication documents can have a user defined ``_id`` (handy for finding a
specific replication request later). Design Documents