A newer version of this documentation is available.

View Latest

setting-xdcr

Set the setting for Cross Datacenter Replication (XDCR).

Syntax

The basic syntax is:

couchbase-cli setting-xdcr -c [host]:8091 -u [admin] -p [password]
    [options]

Description

Use this command to set various options for XDCR. See Cross Datacenter Replication (XDCR).

Options

The following are the command options:

Table 1. setting-xdcr options
Options Description

--max-concurrent-reps=[32]

The maximum number of concurrent replicators per bucket, 8 to 256.

--checkpoint-interval=[1800]

The intervals between checkpoints, 60 to 14400 seconds.

--worker-batch-size=[500]

Doc batch size, 500 to 10000.

--doc-batch-size=[2048]kilobytes

Document batching size, 10 to 100000 kilobytes

--failure-restart-interval=[30]

The interval for restarting a failed XDCR, 1 to 300 seconds

--optimistic-replication-threshold=[256]

Document body size threshold (bytes) to trigger an optimistic replication.

Examples

Set the interval for restarting a failed XDCR to 30 seconds:

couchbase-cli setting-xdcr -c 192.168.0.1:8091 -u Administrator -p password \
--failure-restart-interval 30