Revision #(IDs) keep track of the number of mutations to a key
REGEXP_CONTAINS(META().id, "^rep*")
REGEXP_CONTAINS(META().id, "^rep*")
Add Remote Cluster – CLI & REST API :
CLI:
couchbase-cli xdcr-setup \
-c 192.168.0.100 \
-u Administrator -p password --create \
--xdcr-cluster-name 192.168.1.101 \
--xdcr-hostname 192.168.1.101 \
--xdcr-username Administrator \
--xdcr-password password
REST API:
curl -X POST -u Administrator:password \
http://192.168.0.100:8091/pools/default/remoteClusters \
-d username=Administrator \
-d password=password \
-d hostname= 192.168.1.101 \
-d name=192.168.1.101 \
-d demandEncryption=0
Add Replication – CLI & REST API :
CLI:
couchbase-cli xdcr-replicate \
-c 192.168.0.100 \
-u Administrator -p password --create \
--xdcr-cluster-name 192.168.1.101 \
--xdcr-from-bucket travel-sample \
--xdcr-to-bucket travel-sample \
--xdcr-replication-mode xmem
REST API:
curl -v -X POST -u Administrator:password \
http://192.168.0.100:8091/controller/createReplication \
-d fromBucket=travel-sample \
-d toCluster= 192.168.1.101 \
-d toBucket=travel-sample \
-d replicationType=continuous \
-d enableCompression=1
Note: Above are the commands used/mentioned in Module 5 of the Couchbase Database Administration Course.
DISCLAIMER
The purpose of sharing the content on this website is to Educate. The author/owner of the content do not warrant that the information provided on this website is fully complete and shall not be responsible for any errors or omissions.The author/owner shall have neither liability nor responsibility to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the contents of this website. So, use the content of this website at your own risk.
This content has been shared under Educational And Non-Profit Purposes Only. No Copyright Infringement Intended, All Rights Reserved to the Actual Owner.
For Copyright Content Removal Please Contact us by Email at besttechreads[at]gmail.com