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 StephaneAlnet
Date Tue, 21 Jun 2011 22:31:41 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 StephaneAlnet:
http://wiki.apache.org/couchdb/Replication?action=diff&rev1=30&rev2=31

Comment:
Additional _replicator information based on the source code (especially couch_replicator_utils.erl)

  The following fields are available:
  
  {{{
+ {
+   _id: ...
+ 
+   /* These are the same as the regular replication parameters */
- source: "source-uri"
+   source: "source-uri"
- target: "target-uri"
+   target: "target-uri"
- create_target: true|false
- filter: "document-name/filter-name"
+   filter: "document-name/filter-name"
- query_params: {"name":"value",..}
+   query_params: {"name":"value",..}
- continuous: true|false
+   continuous: true|false
- doc_ids: ["id","id",...]
+   doc_ids: ["id","id",...]
- user_ctx: {"name":"user's name","roles":[...]}
+ 
+   /* These are handled by the replicator process to perform additional tasks. */
+   cancel: true|false
+   create_target: true|false
+ 
+   /* Used to authenticate who can modify the record. */
+   user_ctx: {
+     "name":"user's name",
+     "roles":[...]
+   }
+ 
+   /* These parameters control the behavior of the replicator process.
+      They may also be set in the configuration file under the `replicator` section. */
+   worker_processes: integer
+   worker_batch_size: integer
+   http_connections: integer
+   http_pipeline_size: integer
+   connection_timeout: integer
+   socket_options: [{keepalive, true}, {nodelay, false}]
+ }
  }}}
  
+ Additionally the replicator uses configuration parameters:
+ {{{
+ [replicator]
+ ssl_certificate_max_depth = 3
+ verify_ssl_certificates = true|false
+ ssl_trusted_certificates_file = ...
+ 
+ # Default values for the field of the same name in a _replicator document.
+ worker_processes: integer
+ worker_batch_size: integer
+ http_connections: integer
+ http_pipeline_size: integer
+ connection_timeout: integer
+ socket_options: [{keepalive, true}, {nodelay, false}]
+ }}}
+ 
+ Also, as of CouchDB 1.1.0, the replicator process will only connect to a _replicator database
located on a non-SSL (plain http) CouchDB server. In other words if you plan to use the _replicator
database it must be hosted on a server that offers at least a non-SSL interface; the replicator
process however knows how to replicate databases which use SSL.
+ 

Mime
View raw message