You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2011/05/16 13:21:13 UTC
[Couchdb Wiki] Update of "Replicator_DB" by FilipeManana
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.
The "Replicator_DB" page has been changed by FilipeManana.
The comment on this change is: The mentioned gist content should be ported into this wiki.
http://wiki.apache.org/couchdb/Replicator_DB?action=diff&rev1=1&rev2=2
--------------------------------------------------
[Note: This should be integrated in the [[Replication]] page once the feature is released.]
- Replicator DB is a new, not yet released in official CouchDB, release which allows CouchDB to automatically start replication processes at startup.
+ The replicator database is a new feature, not yet in any CouchDB release.
+
+ An introduction to it can be found in the following gist: https://gist.github.com/832610
This feature was introduced by [[https://issues.apache.org/jira/browse/COUCHDB-776|COUCHDB-776]].
- The _replicator table contains one CouchDB document per replication that needs to be started. The format of the document is similar to the [[Replication#Run_Replication|Replication]] REST interface, with some additions.
-
- {{{
- {
- _id: "_replicator doc ID",
- source: "database-or-URI",
- target: "database-or-URI",
- continuous: true|false,
- create_target: true|false,
- cancel: true|false,
- filter: "name",
- query_params: { "key": "value", ... },
- doc_ids: [...],
- proxy: "URI",
- }
- }}}
-
- The following fields are added by the _replicator process:
-
- {{{
- state: "completed|error|triggered",
- replication_id: "...",
- }}}
-
- The name of the replicator database is {{{_replicator}}} by default, but might be modified as the "db" key under the "replicator" section of config.ini.
-
- The _replicator database has its own validation rules, by default in _design/_replicator.
-