Skip to content
This repository has been archived by the owner on Nov 5, 2018. It is now read-only.

Adding replication using the "_replicator" database #350

Closed
wants to merge 1 commit into from

Conversation

carlosduclos
Copy link

@carlosduclos carlosduclos commented Feb 8, 2017

Starting with 1.2.0 CouchDB added a new system database called
"_replicator" to handle replications jobs.

Replications are now created as entries on that database and
the server will schedule and perform the replication
accordingly. Entries in the "_replicator" db will be updated.

This means that replication now is a completely asynchronous job
that is not guaranteed to run right after the replication was started.

This commit adds three new object with three object to handle this new
type of replication:

  • replication.enable: To enable the replication of a database.
  • replication.query: To query the status of a replication job.
  • replication.disable: To disable the replication of a database.

More information on this type of replication can be found:

Refers to issue #349.

Starting with 1.2.0 CouchDB added a new system database called
"_replicator" to handle replications jobs.

Replications are now created as entries on that database and
the server will schedule and perform the replication
accordingly. Entries in the "_replicator" db will be updated.

This means that replication now is a completely asynchronous job
that is not guaranteed to run right after the replication was started.

This commit adds three new object with three object to handle this new
type of replication:

- replication.enable: To enable the replication of a database.
- replication.query: To query the status of a replication job.
- replication.disable: To disable the replication of a database.

More information on this type of replication can be found:
- https://wiki.apache.org/couchdb/Replication#from_1.2.0_onward
- http://guide.couchdb.org/draft/replication.html
- https://gist.github.com/fdmanana/832610
@carlosduclos
Copy link
Author

Merged on apache/couchdb-nano

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant