Failing over Nodes
Nodes are failed over via hard failover via the
POST /controller/failOverHTTP method and URI.
Failing over a node indicates that the node is no longer available in a cluster and replicated data on another node should be made available to clients.
This endpoint along with the
otpNode parameter (internal node name) fails over a specific node.
HTTP request syntax:
POST /controller/failOver HTTP/1.1 Authorization: Basic
Curl request syntax:
curl -v -X POST -u admin:password http://localhost:port/controller/failOver -d otpNode=[node@hostname]
The following examples fails over server node
10.3.3.63 from a cluster with the local host, 10.5.2.54.
curl -v -X POST \ -u Administrator:password http://10.5.2.54:8091/controller/failOver \ -d 'otpNodefirstname.lastname@example.org'
Bad Request JSON: The RAM Quota value is too small.
The following example is a successful response:
HTTP/1.1 200 OK
The following example is an unsuccessful response, for example, if the node does not exist in the cluster.