Use this request to retrieve any auto-failover settings for a cluster. Auto-failover is a global setting for all clusters. You need to be authenticated to read this value. Example:
shell> curl -u Administrator:letmein http://localhost:8091/settings/autoFailoverIf successful Couchbase Server returns any auto-failover settings for the cluster:
{"enabled":false,"timeout":30,"count":0}The following parameters and settings appear:
enabled: either true if
auto-failover is enabled or false if it is not.
timeout: seconds that must elapse
before auto-failover executes on a cluster.
count: can be 0 or 1. Number of
times any node in a cluster can be automatically
failed-over. After one auto-failover occurs, count is set to
1 and Couchbase server will not perform auto-failure for the
cluster again again unless you reset the count to 0. If you
want to failover more than one node at a time in a cluster,
you will need to do so manually. do it manually.
Possible errors include:
HTTP/1.1 401 Unauthorized This endpoint isn't available yet.
GET /settings/autoFailover HTTP/1.1 Host: localhost:8091 Authorization: Basic YWRtaW46YWRtaW4= Accept: */*
HTTP/1.1 200 OK Content-Type: application/json Content-Length: nnn { "enabled": false, "timeout": 30, "count": 0 }