A newer version of this documentation is available.

View Latest

setting-autofailover

Configures the auto-failover settings.

Syntax

The basic syntax is:

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

Description

Use this command to set various options for auto failovers.

Options

The following are the command options:

Table 1. setting-autofailover options
Option Description

--auto-failover-timeout=[TIMEOUT] (>=30)

Specify a timeout that expires to trigger the auto failover.

--enable-auto-failover=[0|1]

Allow the auto failover (yes=1, no=0).

Examples

Enable the auto failover with a timeout value of 60 seconds:

couchbase-cli setting-autofailover -c 192.168.0.1:8091 -u Administrator -p password \
--enable-auto-failover=1 --auto-failover-timeout=60

Response

SUCCESS: set auto failover settings