← All notes

CouchDB replication copies active documents from a source to a destination

Answer: Replication uses a source database and a destination database, on the same instance or on different CouchDB instances. When the process finishes, every active document from the source is also in the destination, and documents deleted on the source are deleted on the destination if they were present there.

Transient and persistent

You can set up a replication in two ways. The first one introduced into CouchDB leads to a transient replication, with no documents backing it up.

Scheduler jobs

The main API function is add_job. It takes a rep record, which may come from a document update in a _replicator db, or from a POST to the _replicate endpoint. The scheduler will try to stop some jobs, start some new ones, and keep the running job count less than max_jobs (default 500). History length is limited based on the max_history configuration value. The default is 20 entries. History event types include added, started, stopped, and crashed. Failed replication jobs are penalized using an exponential backoff.

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Apache CouchDB, Introduction to Replication; Apache CouchDB, couch_replicator README. Apache-2.0; Apache-2.0. Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Apache CouchDB, Introduction to Replication; Apache CouchDB, couch_replicator README. Apache-2.0; Apache-2.0.

Cite this

Permanent ID: iil:note:6n5ta4yc

iinventedlight. 2026. "CouchDB replication copies active documents from a source to a destination." iinventedlight Library, iil:note:6n5ta4yc, version of 2026-11-20. https://iinventedlight.com/library/notes/couchdb-replication/. License: CC-BY-4.0.

@misc{iil_note_6n5ta4yc,
  author = {{iinventedlight}},
  title = {{CouchDB replication copies active documents from a source to a destination}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-20},
  url = {https://iinventedlight.com/library/notes/couchdb-replication/},
  note = {Permanent ID iil:note:6n5ta4yc. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

Extra files beside this note

These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.

All artifact files (JSON index)

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/couchdb-replication.md.