Add cluster nodes and a witness¶
This page explains how to turn a single QubeSight server into a high-availability cluster: preparing the other servers, enrolling them with Add cluster node, making the first node, joining full nodes and a witness, the virtual IP for log intake, the SSH account the product uses, the Keeper votes, and the TLS that protects cluster traffic.
Enterprise
The cluster requires an Enterprise licence with the high-availability capability. The Cluster tab is in Platform → System and Cluster → Cluster and is visible to administrators and auditors; enrolling, joining and removing nodes is for administrators. For the architecture, see High availability and disaster recovery; for day-2 tasks, see Cluster operations and the cluster map.
Plan the cluster¶
Automatic failover is decided by majority vote. A cluster therefore needs at least three votes:
| Members | Result |
|---|---|
| 1 server | No cluster. Protection is backup and restore. |
| 2 full nodes only | Not allowed: when one fails the other has no majority, ClickHouse and Kafka cannot write and logs are lost. |
| 2 full nodes + 1 witness, or 3 full nodes | Automatic failover: any one server can fail. |
| 5 votes | Survives the loss of two servers. Use an odd number. |
| Role | Runs | Recommended resources |
|---|---|---|
| Full node | Receives logs, answers queries, raises alerts: ClickHouse replica, PostgreSQL (Patroni) member, Redpanda broker, Keeper vote, etcd member, and the applications | 4 or more cores, 8 GB or more memory, 100 GB or more disk (size it like the first node for your load) |
| Witness (vote) | Only a Keeper vote, an etcd member and a queue (Redpanda) replica; no applications | Few resources suffice |
All members should be in the same subnet when you use a virtual IP (VRRP), with low latency between them.
Prepare the servers¶
First node. Install QubeSight on it as a normal single node with the web installer or install.sh. Recommended: set a virtual IP for log intake at installation, so that log sources already send to the address that will move between nodes. At the end of the installation, install.sh adds the product's cluster SSH public key to the root account and enrols the server itself as a cluster node candidate (node-1). If that step fails (for example root SSH is disabled), the installation still completes with a warning; re-run with --cluster-ssh-user <account> or enrol it later with Add cluster node.
Other nodes and the witness. Do not install QubeSight on them. Each needs:
- a supported Linux (Ubuntu, Oracle Linux, RHEL, AlmaLinux and similar) with Docker or Podman installed;
- SSH reachable from the first node, with an account that is
rootor has password-lesssudo; - the ports below open between all members;
- its clock synchronized (the preflight checks the time difference).
The cluster installs the components on them over SSH and copies the images from the first node over the local network, so they need no internet access.
| Traffic | Port | Protection |
|---|---|---|
| etcd client | 12383/tcp | HTTPS and password |
| etcd peers | 12384/tcp | Mutual TLS |
| Keeper client | 9281/tcp | Mutual TLS |
| Keeper raft | 9234/tcp | Mutual TLS |
| ClickHouse replication | 9010/tcp | HTTPS and inter-server password |
| PostgreSQL (applications, replication) | 5432/tcp (15432/tcp when 5432 or 8008 is taken on the server) | TLS (verified against the cluster CA) and SCRAM password |
| Patroni REST | 8008/tcp (18008/tcp together with 15432) | Mutual TLS |
| Redpanda RPC | 33145/tcp | Mutual TLS |
| Redpanda internal Kafka | 29093/tcp | TLS and SASL/SCRAM |
| Virtual IP | VRRP (unicast) between members | VRRP password |
The full port list is in Ports.
Step 1: enrol each server (Add cluster node)¶
Open Platform → System and Cluster → Cluster and choose Add cluster node. The wizard has three steps. While the cluster has fewer than three votes, the wizard asks for two servers at once (Server 1 and Server 2: a full node and a witness, or two full nodes), so that the cluster never runs with only two votes.
Server
| Field | Meaning |
|---|---|
| Node name | Name shown in the cluster, for example node-2. Each server needs its own name and address. |
| Role | Full node or Witness (vote) |
| IP address or name | The server's address |
| SSH port | Default 22 |
| SSH user | root, or an account with password-less sudo |

Host key and password
- Read host key: the server's SSH host key is read before any authentication, and its fingerprint is shown with the command to check it on the server's console.
- Tick I verified the fingerprint on the server; pin this key after comparing. The fingerprint is pinned; if it ever changes, the product refuses to connect and no password is sent.
- Password for {user}: used once, only to install the product's SSH key. It is not stored and not logged. Alternatively tick Instead of a password, I added the product's SSH key to the server myself and run the shown command on the server as that user; the connection is then verified with the key only.
- Connect and install key.

Preflight
A read-only check of the operating system, CPU, memory, free disk, Docker or Podman, the required ports, the clock difference and reachability of the existing members. Thresholds depend on the role. Results are ready, warnings or not ready. Fix any problem and use Re-check on the node row. Warnings (below the recommended size) do not block a join; not ready does.

The product connects to enrolled servers only with its own SSH key and the pinned host key. The product's SSH identity is stored encrypted in PostgreSQL and is the same for every control plane in the cluster.

Step 2: make the first node¶
When there is no cluster yet, the Cluster tab says so and offers Make this server the first node on the row of the server running the interface. Confirm the dialog. This:
- generates the cluster definition, the cluster certificate authority and the node certificates;
- starts Keeper and etcd with one vote;
- stops the writers for a few minutes, moves PostgreSQL to Patroni on the same data, converts the ClickHouse tables into replicated tables, starts Redpanda on the LAN address and restarts the applications in cluster mode.
Logs wait in the queue during the switch and are not lost. The interface may not respond for a short while; the job resumes where it left off if the control plane restarts.
You can also skip this step: choosing Join cluster for another server while no cluster exists makes the current server the first node first and queues the join (shown as queued: first node being prepared).
Step 3: join the other servers¶
On a node row choose Join cluster (or Join the cluster now at the end of Add cluster node). This is a critical operation, so you confirm it with Your administrator password (blocked after 5 wrong attempts in 15 minutes).
Cluster operations need a local password
Critical cluster operations are confirmed with the signed-in administrator's own local password: making the first node, joining and removing nodes, changing the log ingest virtual IP and the outbound source IP, changing the web interface port on the cluster, and cluster updates. Accounts that sign in through SSO or LDAP have no local password, so they cannot run these operations; the request is refused. Sign in with a local administrator account, such as admin, for cluster work.
While the cluster has fewer than three members, the dialog asks you to select the servers that join together (Server joining together): a witness or another full node. They join one after another automatically. If one fails, the rest of the queue is cancelled.

A join runs these steps, shown live on the node row: connect, plan, images (copied from the source node), files (compose, settings, certificates), etcd membership, Keeper membership, ClickHouse replica, PostgreSQL replica, Redpanda broker, applications, virtual IP, registration. The joining server's settings database is replaced by the cluster's: users, passwords and settings come from the first node. Duration depends on the network and the data size.
If a join fails, its changes are rolled back (broker removed, etcd member and Keeper vote removed, services on the node removed; the data directory stays), and the error ends with the rollback summary. Earlier jobs of each node are kept under Earlier jobs.

For a witness the ClickHouse, PostgreSQL and application steps are skipped: it only runs a Keeper vote, an etcd member and a Redpanda broker. With two full nodes and a witness, the whole sequence (first node, node-2, witness) took about 10 minutes in our test.
When the last join is done, the top of the Cluster tab shows Cluster healthy and Cluster mode on: two log database replicas, three Keeper votes with a leader, the PostgreSQL leader and its synchronous standby, and three queue brokers with replication 3.

Keeper votes¶
The Keeper vote list starts with one vote on the first node; each join adds a vote and each removal deletes one. The new Keeper starts before the existing members' configuration changes, so the majority is never lost during a change. etcd membership and Redpanda brokers grow the same way. Redpanda's replication factor is 1 until three brokers are alive, then 3 for all topics.
Virtual IP for log intake¶
The virtual IP is the address that Guardium (syslog and SNMP traps), Filebeat and other sources send to. It is held by one healthy full node through keepalived (VRRP unicast; no multicast needed) and moves to another node when that node fails or its log port stops answering. A returning node does not take the address back, which avoids a second interruption.
- Set at installation (
--vipor the web installer's Network step), it is reused by the cluster. - If the cluster has no virtual IP, the first join asks for one (Virtual IP address and Prefix, default 24); it can also be left empty and set later.
- Manage it in Platform → System and Cluster → Cluster under Log ingest virtual IP: Change or Set, Virtual IP address, Prefix, Check that it is free, Apply. Applying restarts keepalived on every node (ingest may pause for a few seconds); repoint log sources if the address changed.
- The web interface is also reachable at
https://<virtual IP>:3000on whichever node holds the address; sessions survive a move because they live in the shared PostgreSQL. - Optional Outbound source IP: outbound connections of the cluster (Guardium, mail, LDAP, archive server, cloud sources) leave from the virtual IP, so external firewalls need only one source address.
On AWS a virtual IP does not work (VRRP is not delivered inside an Amazon VPC). For high availability on AWS, deploy the HA template from the AWS Marketplace listing, which uses an internal Network Load Balancer instead: see High availability from the AWS console.
Send logs only to the virtual IP. Logs sent directly to a node's own address are lost while that node is down.
SSH account¶
The product uses its own SSH key for every cluster job. By default the key is added to root. On images where root SSH is disabled (PermitRootLogin no, for example cloud images), use an account with password-less sudo:
- for the first node:
./install.sh --cluster-ssh-user <account>(or the variableQUBESIGHT_CLUSTER_SSH_USER); - for other nodes: that account as SSH user in Add cluster node.
Remove appears on rows of servers that are not cluster members. It only removes the server from the list; services on the server are not stopped. The option Also remove the product's SSH key from the server's authorized_keys is ticked by default and deletes only the product's key line (other lines are not touched); if the key cannot be deleted, the node is still removed and the error is shown. A member leaves the cluster with Remove from cluster instead, which is offered when the cluster has more than one member.
TLS inside the cluster¶
A new cluster is created with TLS for all internal traffic from the start. The cluster certificate authority (ECDSA P-256, 10 years) is stored in the cluster definition, its key encrypted. Each node gets server and client certificates (5 years) for its IP, name, 127.0.0.1 and localhost. The protection of each port is listed under Prepare the servers.
TLS for external log intake (syslog on 6514/tcp, Filebeat Kafka on 9093/tcp, or <virtual IP>:19190 and up) is switched on separately for a running cluster with docker compose exec control-plane ./control-plane -cluster-ingest-tls on a full node (--plan first). Plain 5140 and 9092 stay open until all senders have moved; --only then closes them. SNMP traps (162/udp) have no TLS. See Syslog and Kafka TLS.
The web certificate is shared by all nodes and managed in Platform → Settings → Web certificate (HTTPS). Include the virtual IP and any DNS name for it in your own certificate.
Verification¶
- The Cluster tab shows Cluster healthy, every node as member, Keeper votes with a leader, the PostgreSQL leader and synchronous replica, all brokers, and no tables missing a replica.
- Platform → System and Cluster → Map shows the live cluster map.
- A syslog line sent to the virtual IP arrives in Activity Overview.
Limitations¶
- At least three votes are required: while the cluster has fewer than three members, the join dialog requires selecting enough servers to reach three.
- Vector configuration changes made by a policy change are written only on the node that received the request; check other nodes after such changes.
- A join updates the connection lists of existing nodes for new addresses only; it does not propagate port changes to nodes that were built by hand.
- Ingest TLS is not available on a single server.
- Removing a node stops its cluster services but leaves software and data on the server.
- SSO and LDAP accounts cannot run critical cluster operations; they need a local administrator password.
- Fixed in 2.0.109: in 2.0.107, on a first node installed from the AWS or Azure image, the first join failed at Transfer images with
docker.io/qubesight/keepalived:2 … unrecognized image format, because the image did not contain the virtual-IP container image. The 2.0.109 images contain every image a join transfers (Keeper, Patroni, etcd and keepalived), and the join completes without a manual step. On a 2.0.107 first node, build the image there (docker build -t qubesight/keepalived:2 deploy/cluster/keepalivedin the installation directory, which needs internet access for the Alpine base image) and choose Join cluster again, or upgrade to 2.0.109 first. On AWS use the HA template (see the virtual IP note above).
Related pages¶
- Cluster operations and the cluster map
- Restore from a backup (cluster-aware restore)
- Deployment architectures