Choose manual or automatic failover
This page helps you choose the failover mode of a ThreatVIS Unified Security Operations Platform HA pair, and explains how to commission a fencing method and turn automatic failover on or off. For what each mode does, see Failover modes.
Role needed: a person with root access to both processing nodes.
How to choose
| Choose | When |
|---|---|
| Manual failover | Someone can be reached at any hour to confirm a failed node is off and run the recovery; or your platform has no supported fencing method; or the nodes are on two sites without an independent fencing path and a witness on a third site. |
| Automatic failover | The service must come back without waiting for an operator, and your platform has a supported fencing method that you can commission on your own hosts. |
Both modes keep the same rule: two nodes never write at the same time. Manual failover gets that guarantee from the operator; automatic failover gets it from the fencing method. If the fencing method cannot confirm that a failed node is safe, automatic failover does not take over, and recovery becomes manual.
What changes in automatic mode
- The passive node takes over by itself after an unplanned failure of the active node, once the failed node is fenced.
- A healthy active node is never moved, and the service never moves back by itself. Use a planned switchover to move it.
- When the passive node fails, writes on the active node pause while the pair waits for the passive node to be confirmed fenced. The service then continues on the active node.
- The status reports whether the pair is eligible for automatic failover, and if not, why.
Before you begin
- The pair is established and healthy: both nodes online, the pair has its majority, both copies up to date. See Check the status.
- Both nodes have valid licences.
- You have chosen a fencing method for your platform, as in Choose a fencing method, and recorded it in the failover settings of the deployment profile on both nodes. For power control through VMware vCenter, keep the credentials in a file readable only by root on each node, never in the deployment profile.
- You have a maintenance window. Commissioning restarts each node once.
Install and commission the fencing method
- Run the HA setup tool on each node with the updated profile. For a watchdog method, this selects the watchdog device that the hardware or hypervisor provides and enables it at every start.
- Commission the fencing method on each node in turn, starting with the passive node. Commissioning proves that
the method really resets the node. It runs on a node that holds no service:
- On the node, prepare the commissioning test.
- On the other node, start watching the node.
- On the node, start the test. The node is reset.
- After the node restarts, complete the test on the node.
- On the other node, confirm the result. It checks that the node really restarted and that the same fencing device is present after the restart.
- Make a planned switchover, then commission the other node the same way.
You should see both nodes reported as commissioned in the status. If the test node does not reset, or the device is missing after the restart, the confirmation fails: the method cannot be used for automatic failover on that node.
Turn on automatic failover
- Run the automatic failover check of the HA operations tool with the deployment profile. It changes nothing and checks both nodes: both online with the majority, the witness voting, both copies up to date and connected, the fencing method running and commissioned on both nodes, valid licences, the same release, and one node only holding the data, the floating address and the service.
- If the check passes, turn on automatic failover with the HA operations tool. If any step fails part-way, the pair returns to manual failover before the error is reported.
You should see the status report automatic failover mode, and the pair eligible for automatic failover.
If the check fails: it lists each failed check. Correct them and run it again. The pair is not eligible when the fencing device is a software-only watchdog or is not commissioned.
Turn off automatic failover
- Turn off automatic failover with the HA operations tool. The node that is active stays active, and the pair returns to manual failover before fencing is turned off.
- To remove the fencing method from the nodes as well, do it on both nodes, the passive node first, moving the service with a planned switchover before the second node. Contact ThreatVIS USOP support for the steps for your fencing method.
You should see the status report manual failover mode, with the same active node as before.