Skip to main content

Install an HA pair

This page explains how to install a ThreatVIS Unified Security Operations Platform HA pair: the witness, then both processing nodes, then the pair itself. At the end, node A is active in manual failover mode, node B is a current passive copy, and the console answers on the floating service address.

Role needed: a person with root access to all three hosts. Installation is done from a shell on each host, not from the console.

Before you begin​

  • You have completed Plan an HA deployment, including the deployment profile, copied to all three hosts.
  • You have the release bundle and the release public key on all three hosts, and you have extracted the bundle.
  • You have the licence server address, and the activation codes you were given for the processing nodes.
  • You have a TLS certificate for the console name that resolves to the floating service address, or you accept a temporary self-signed certificate for now.
  • You can copy files securely between the hosts.

The HA tools​

The release includes HA tools that you run as root: one to set up a node or the witness from the deployment profile, one for node identity and licence enrolment, one for day-to-day operation, and one for upgrades. Run each with --help to list its actions and options for your release.

Every tool checks before it changes anything:

  • It validates the deployment profile and runs the pre-installation check first.
  • It can show what it would change without changing anything. Use this before each step.
  • It names any file it still needs from another host, such as a key or certificate.
  • Any step that erases a replication disk needs your explicit confirmation of that disk's path.
  • If anything is refused, it names the reason and changes nothing.

Order of installation​

Seven steps in order: install the witness; install node A and node B with the HA profile; exchange keys and establish the pair; node A becomes active and node B receives a full copy; complete setup at the floating service address; enrol node B's licence; verify the pair.Seven steps in order: install the witness; install node A and node B with the HA profile; exchange keys and establish the pair; node A becomes active and node B receives a full copy; complete setup at the floating service address; enrol node B's licence; verify the pair.

In these steps, node A is the first active node named in the deployment profile. Its data becomes the deployment's data.

1. Install the witness​

  1. On the witness host, run the HA setup tool's pre-installation check for the witness with the deployment profile. It checks the operating system, that the witness address belongs to this host, that the host is not a processing node, and the clock.
  2. Run the HA setup tool for the witness. It installs the quorum service and creates the witness's certificate authority.

You should see the witness reported as set up. Running the tool again reports nothing left to change.

2. Install both processing nodes​

On node A, then on node B:

  1. Run the installer from the extracted bundle with the HA options: the path of your completed deployment profile and the node's name in it. Use the console name of the floating service address as the public URL.

    sudo ./install.sh \
    --profile production \
    --public-url https://console.example.com \
    --license-server-url https://licensing.example.com \
    --release-public-key release-public-key.pem \
    --tls-cert console-fullchain.pem \
    --tls-key console-key.pem \
    --ha-profile PROFILE_FILE \
    --ha-node node-a

    Replace PROFILE_FILE with the path of your deployment profile. On node B, use --ha-node node-b. The other options are those of a Standalone installation.

  2. The installer validates the profile and runs the pre-installation check before it changes the host. It gives the node its own permanent identity and the deployment identity from the profile.

You should see the installer finish with the node installed as passive, and the next step named. Neither node serves the console yet.

3. Establish the pair​

The pair needs keys and certificates that are created on one host and copied to another. At any time, ask the HA setup tool on a host what it would change: it names each file the next step still needs.

  1. Exchange public keys. On each node, export the node's public replication details with the HA setup tool, and copy them to the other node. Only public keys leave a node; each node's private key stays on it.
  2. Node A, first run. Copy the witness's certificate authority certificate to both nodes. Run the HA setup tool on node A as the first active node, with node B's public details and the witness certificate. It creates the shared keys of the pair and a certificate request for the quorum vote.
  3. Witness. Copy node A's certificate request to the witness and sign it there with the HA setup tool. Copy the signed certificate back to node A.
  4. Node A, confirm the replication disk. Ask the tool on node A what it would change: it shows that the replication disk will be erased. Run it again with the confirmation of the disk's exact persistent path and with the signed certificate. Node A initialises its replication disk, puts its data on it, and starts the HA services.
  5. Copy the shared keys to node B. Copy the shared keys and the quorum certificates the tool names from node A to node B, into files readable only by root.
  6. Node B. Run the HA setup tool on node B with node A's public details, the witness certificate, the copied files and the confirmation of node B's replication disk path. Node B initialises its disk and joins.
  7. Node A, start the service. Run the HA setup tool on node A as the first active node again. Once both nodes are online and the pair has its majority, it starts the service in manual failover mode on node A.
warning

Confirming the replication disk erases it. The installer refuses any disk that is not blank, and checks again immediately before it writes, but confirm the path carefully. Never give the path of a disk that holds data.

Independent data sets are never merged. The tool refuses a joining node that already holds its own deployment data, a second first active node, and a running configuration that differs from the profile.

You should see node A start the service and then take the floating service address. Node B begins receiving a full copy of the replicated data. The full copy takes time that depends on the size of the replication disk and the throughput of the link. The pair has no usable standby until it finishes.

4. Complete setup​

  1. Open the console name in a browser. The setup wizard appears, served by node A.
  2. Complete the setup wizard. The wizard activates the licence of the node serving the console, which is node A.

If node A already has a valid licence, for example because you enrolled it from its shell, the wizard does not accept the activation code again. Instead, generate a setup authorisation code as root on node A with the setup authorisation tool from the release, and enter it in the wizard's Activation code field. The code is valid for 15 minutes, works once, and works only on node A while it is active.

Setup is shared by the deployment: you complete it once, not per node.

5. Enrol the licence of node B​

The passive node serves no console, so you enrol its licence from its shell.

  1. On node B, run the licence enrolment of the HA node tool as root.
  2. Enter node B's activation code when asked. The code is not shown as you type.

You should see the licence enrolled for node B. A failure names its cause: the licence server cannot be reached, the enrolment was rejected, or the licence could not be stored. Each node's licence is its own; a switchover never needs a new enrolment.

6. Verify the pair​

  1. On node A, check the status with the HA operations tool. Check that:
    • node A is active, and holds the service, the data and the floating address;
    • the pair has its majority, with the witness voting;
    • replication is connected, and both copies are up to date once the full copy has finished;
    • the failover mode is manual;
    • the licence is valid.
  2. On node B, check the status in the same way. Node B is standby and ready, with nothing blocking a takeover: both nodes run the same release, node B's licence and clock are valid, and node B runs no service.
  3. Open the console name in a browser and sign in. Confirm that the address of node B on its own serves no console.
  4. Optionally, test a planned switchover to node B and back.

If something fails​

  • The pre-installation check or the installer stops. It names what is wrong, such as the operating system, the host name, the clock, a port to the witness, or a replication disk that is not blank or not the right size. Correct it and run the command again. Nothing was changed.
  • A step stops part-way. Run the same step again. The tool detects what is already done, continues from there, and never erases a disk twice.
  • You need to undo a configuration change. The HA setup tool can restore the configuration it replaced, and names what to do next. Erasing a disk cannot be undone.
  • The full copy does not progress, or the pair has no majority. See HA and Cluster problems.

Next steps​