Skip to main content

Operate an HA pair

This page covers the day-to-day operation of a ThreatVIS Unified Security Operations Platform HA pair: reading its status, moving the service for maintenance, recovering when the active node fails, and returning or replacing a node.

Role needed: a person with root access to the processing nodes. These tasks are done from a shell on a node with the HA tools described in Install an HA pair, not from the console.

Check the status​

Check the status with the HA operations tool on either node. A healthy pair shows:

ItemHealthy value
Role of each nodeActive on one node; standby and ready on the other
Service, data and floating addressAll held by the active node
QuorumThe pair has its majority, with the witness voting
ReplicationConnected; both copies up to date
Failover modeManual or automatic, as you chose
Anything blocking a takeoverNothing reported on the passive node
LicenceValid, or in its grace period, on each node
ReleaseThe same on both nodes

The switchover and recovery actions check the pair's safety rules themselves, and refuse to run unless they are in place.

The console's System Health page shows the health of the node that is serving the console. It does not replace the HA status.

Planned switchover​

Use a planned switchover to move the service to the other node, for example before maintenance on the active node.

Before you begin: both nodes are online, the pair has its majority, and the passive node's copy is up to date and its standby status is ready. Choose a quiet time: the console and collection pause while the service moves.

  1. On either node, run the switchover of the HA operations tool, naming the node to move to.
  2. Wait for the command to finish. The active node gives up the floating address, stops the service and releases the data. The target then takes the data, starts the service, passes its readiness checks, and only then takes the floating address.

You should see the status report the target as active and the other node as standby. Sign in to the console at the usual address to confirm. A switchover keeps all stored data. Events sent over UDP while the service moved are lost unless the sender buffers them; see Events during a switchover or failover.

If it fails: the command refuses to start when a precondition is not met, and says which. If the target cannot start the service, the pair never leaves two writers: check the status and see HA and Cluster problems.

Maintenance​

HostHow to take it out of service
Passive nodeRestart or service it directly. The active node keeps serving. When the passive node returns, it rejoins as passive and copies what changed.
Active nodeFirst make a planned switchover to the other node. Then treat it as the passive node.
WitnessRestart or service it directly. The nodes keep their majority while it is away.

Take only one host out of service at a time. If the witness and one node are down together, no side has a majority and the service stops.

warning

When a watchdog fencing method is installed, a node that loses contact with both the other node and the witness resets itself, in manual failover mode too. Plan network maintenance so that no node is cut off from both at once.

Routine operating system updates do not replace the HA components that the release supplies. Other security updates continue as usual. Update the kernel only to a version your release supports.

When the active node fails in manual failover mode​

In manual failover mode the passive node never takes over by itself. The service stays stopped until you recover it on the surviving node. This is deliberate: an unreachable node may still be running and writing.

Before you begin: establish for certain that the failed node is off. Acceptable evidence is its power state read from the hypervisor or from its management controller, or a person at the server. A node that only fails to answer on the network is not proven off.

  1. On the surviving node, check the status. Check that this side has the majority, with the witness voting. Recovery refuses without a majority.
  2. Check that the surviving node's copy is up to date.
    • If it is, continue.
    • If it is not, replication had stopped before the active node failed, and the surviving copy misses the writes made since. Prefer bringing the failed node back. Recovering the surviving node loses those writes.
  3. Run the recovery of the HA operations tool, naming the surviving node as the target and confirming the name of the failed node you established is down.
  4. Wait for the command to finish.

You should see the surviving node reported as active, holding the floating address, and the console answering at the usual address.

If it is refused: recovery refuses while the failed node is still a member of the pair, and while the surviving side has no majority. Restore the witness or the network between the surviving node and the witness, or establish that the failed node is down, then try again.

When the active node fails in automatic failover mode​

The passive node and the witness keep the majority, fence the failed node, and start the service on the passive node. You see a short outage in the console and in collection.

  1. Check the status on the surviving node to confirm it is active.
  2. Find out why the other node failed and repair it.
  3. Return it to the pair.

The service does not move back by itself. If you want it on the original node, make a planned switchover once that node is ready.

Return a node to the pair​

  1. Start the repaired node.
  2. Check the status. The node rejoins as passive and copies what changed while it was away.

You should see both copies up to date and the node's standby status ready. A returning node never takes the service back by itself.

Replace a node​

When a node's host is lost for good, replace it with a new host. Work with ThreatVIS USOP support.

  1. Retire the failed node. Its licence is revoked; a licence is never moved to another host.
  2. Prepare the new host as in Plan an HA deployment, with a blank replication disk of the same size, and update the deployment profile with the new host's details.
  3. Install it with the HA profile and join it to the pair. It receives its own new identity.
  4. Enrol its own licence.
  5. Wait for the full copy to finish. Until then the pair runs without a standby.

You should see the new node's standby status ready, with both copies up to date.

Licence changes on a node​

The licence of each node is checked on that node. If the active node's licence is revoked, expires, or passes its grace period, the active node runs in restricted mode: the console and administration stay available, and licensed collection and detection stop. If the other node's licence is valid, make a planned switchover to it. Renew the licence of the restricted node afterwards; see Licence.

Restore from a backup​

An HA pair restores from a backup with the service stopped on both nodes. Contact ThreatVIS USOP support before you restore an HA deployment.

Next steps​