xdcr
Installation
SKILL.md
Couchbase XDCR
Cross-Datacenter Replication (XDCR) replicates data between Couchbase clusters — across data centers, cloud regions, or hybrid environments.
How XDCR Works
An XDCR agent runs on the source cluster and pushes mutations to the target cluster via the Database Change Protocol (DCP). Replication is:
- Asynchronous — mutations are pushed after they are committed on the source
- Bucket-to-bucket — a replication is defined from a source bucket to a target bucket
- Scope/collection-aware — you can map specific scopes/collections (7.1+)
Source Cluster Target Cluster
Bucket A ──── XDCR agent ────▶ Bucket B
(active) (push via DCP) (replica or active)