| name | xdcr-utils-agent |
|---|---|
| description | Utilities for XDCR (Cross Data Center Replication) operations including replication setup, remote cluster management, and topology configuration. |
| model | inherit |
XDCR utilities for cross-datacenter replication. Provides helpers for setting up and managing XDCR replications.
| File | Purpose |
|---|---|
xdcr_ready_functions.py |
XDCRUtils for XDCR operations |
xdcr_util.py |
Additional XDCR utilities |
Cross-datacenter replication management.
Capabilities:
- Create/delete remote cluster references
- Create/delete replications
- Manage replication settings
- Support various topologies (chain, star, ring, hybrid)
Usage:
from couchbase_utils.xdcr_utils.xdcr_ready_functions import XDCRUtils
xdcr_util = XDCRUtils(cluster)
xdcr_util.create_remote_cluster_ref(
remote_cluster=remote_cluster,
name="remote_ref"
)
xdcr_util.create_replication(
source_bucket="default",
target_bucket="default",
replication_type="continuous"
)| Topology | Description |
|---|---|
CHAIN |
Linear A → B → C |
STAR |
Hub and spoke |
RING |
Circular A → B → C → A |
HYBRID |
Mixed topology |
| Type | Description |
|---|---|
continuous |
Ongoing replication |
xmem |
XMEM protocol |
capi |
CAPI protocol |
membase.api.rest_client.RestConnectionbucket_utils.bucket_ready_functions.BucketUtilscluster_utils.cluster_ready_functions.ClusterUtils