couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Update of "Replication" by AlexeyLoshkarev
Date Tue, 19 Oct 2010 12:52:44 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "Replication" page has been changed by AlexeyLoshkarev.
The comment on this change is: Cancel ordinary replication.
http://wiki.apache.org/couchdb/Replication?action=diff&rev1=26&rev2=27

--------------------------------------------------

  The target database has to exist and is not implicitly created. Add `create_target:true`
to the JSON object to create the target database (remote or local) prior to replication. The
names of the source and target databases do not have to be the same.
  
  Specifying a local `source` database and a remote `target` database is called ''push replication''
and a remote `source` and local `target` is called ''pull replication''. As of CouchDB 0.9,
pull replication is a lot more efficient and resistant to errors, and it is suggested that
you use pull replication in most cases, especially if your documents are large or you have
large attachments.
+ 
+ === Cancel replication ===
+ {{{
+ POST /_replicate HTTP/1.1
+ {"source":"example-database","target":"http://example.org/example-database", "cancel": true}
+ }}}
+ 
+ Notice: request initiated replication will fail with error 500 (shutdown). 
+ 
  
  === Continuous replication ===
  To make replication continuous, add "continuous":true parameter to JSON, for example:

Mime
View raw message