Handling Node Failover from REST API
I'm writing a script to automatically failover when a node is down, but I can't figure out the correct HTTP call. I've read through the REST API documentation, but couldn't find anything specific to failover.
The closest method I could find is Ejecting a Node from a Cluster:
curl -i -u Administrator:password -d otpNode=10.0.1.11:8091 http://localhost:8091/controller/ejectNode
The value for
otpNode is the node's "hostname" attribute, as returned by Getting a Bucket. But I keep getting" 400: Server does not exist."
So my questions are:
/controller/failOverendpoint, but there are no details given. If this is what I need, how do I use it?
(Note: we currently can't use the automatic failover in 1.7.1 because we only have 2 nodes. Automatic failover requires at least 3 nodes).