This is a global setting you apply to all clusters. You need to be authenticated to change this value. An example of this request:
shell> curl "http://localhost:8091/settings/autoFailover" \ -i -u Administrator:letmein -d 'enabled=true&timeout=600'
Possible parameters are:
enabled (true|false) (required):
Indicates whether Couchbase Server will perform auto-failover
for the cluster or not.
timeout (integer that is greater than
or equal to 30) (required; optional when enabled=false): The
number of seconds a node must be down before Couchbase Server
performs auto-failover on the node.
POST /settings/autoFailover HTTP/1.1 Host: node.in.your.cluster:8091 Content-Type: application/x-www-form-urlencoded Authorization: Basic YWRtaW46YWRtaW4= Content-Length: 14 enabled=true&timeout=60
200 OKThe possible errors include:
400 Bad Request, The value of "enabled" must be true or false. 400 Bad Request, The value of "timeout" must be a positive integer bigger or equal to 30. 401 Unauthorized This endpoint isn't available yet.