recovery

recovery

Recovers one or more servers.

Syntax

The basic syntax is:

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

Description

To re-add a server node to a cluster, use the recovery command with the --recovery-type parameter.

Options

The following are the command options:

Table 1. Recovery options
Option Description
--server-recovery=[host]:[port] Server to recover.
--recovery-type=[delta|full] Type of recovery to be performed for the node: delta or full.

Examples

To set incremental node recovery type for a server:

couchbase-cli recovery -c 192.168.0.1:8091 -u Administrator -p password \   	
--server-recovery=192.168.0.2	--recovery-type=delta	   

Example sequence: Set failover, re-add, recover, and rebalance

The following example shows a failover, readd, recovery and rebalance operations in a sequence:
  1. A node in a cluster is gracefully failed over.
  2. The node is re-added to the cluster.
  3. Delta recovery is implemented for the node.
  4. The rebalancing operation is implemented.
couchbase-cli failover -c 192.168.0.1:8091 -u Administrator -p password \   	
--server-failover=192.168.0.2
couchbase-cli server-readd -c 192.168.0.1:8091 -u Administrator -p password \    	
--server-add=192.168.0.2
couchbase-cli recovery -c 192.168.0.1:8091 -u Administrator -p password \    	
--server-recovery=192.168.0.2 --recovery-type=delta
couchbase-cli rebalance -c 192.168.0.1:8091 -u Administrator -p password