Active-Active Controller HA
Configure two active SSLNexus controllers with a shared PostgreSQL database and three-host replicated storage to keep certificate operations available during a server failure.
How The Three Hosts Work Together
Active-active HA enables two SSLNexus controllers to manage one certificate estate. Both controllers use the same database and coordinate certificate operations, so administrators can access the same certificates, deployment targets, policies and history from either controller.
- Controller: the first SSLNexus installation, from which you configure the cluster.
- Partner: the second active SSLNexus controller, managing the same certificate estate.
- Witness: a third server that contributes a storage replica and participates in quorum without running a full SSLNexus controller.
All three servers provide storage to Ceph. The shared database is stored on the replicated storage rather than on a separate database server. Ceph maintains three copies of the data and requires two for writes. When one host fails, the remaining healthy hosts can maintain quorum and the surviving controller can continue certificate operations.
SSLNexus uses fencing to prevent two isolated hosts from writing to the database independently. If the cluster cannot safely maintain quorum, database writes are suspended until safe operation can resume. High availability does not protect against the simultaneous loss of multiple hosts or replace regular backups.
Prepare The Servers And Disks
Before installation, prepare three supported x86-64 Linux servers with unique hostnames, static cluster IPv4 addresses and synchronised clocks. Refer to the system requirements for the base controller requirements and allow additional capacity for Ceph and the shared database.
- Run the two controllers as KVM virtual machines on separate fixed libvirt hypervisors for automatic hypervisor fencing. The witness can be physical or virtual. Place it in a third independent failure domain wherever possible.
- Ensure the three hosts can communicate over the cluster network. Provide SSH access for enrollment, Ceph network connectivity between the three hosts and separate management access to the two hypervisors.
- Ensure the required operating system repositories, SSLNexus packages and Ceph image are accessible. Both controllers must run the same SSLNexus release.
- If converting an existing controller, create a protected backup before configuring HA.
Disk Requirements
Each of the three servers must have a minimum of two disks. One is used by the operating system and the other is reserved for Ceph.
| Disk | Purpose | Preparation |
|---|---|---|
| First disk | Operating system and installed software | Normal Linux installation |
| Second disk | Replicated Ceph storage | Empty, unused, unpartitioned and unformatted |
Do not format the second disk. It must be a writable whole disk with no partitions, mounted filesystem, LVM volumes or existing storage signatures. SSLNexus prepares it when creating the Ceph cluster.
Each data disk must have a unique persistent identifier under /dev/disk/by-id/. For virtual machines, assign a unique serial number to each additional disk. Choose disks of suitable capacity on all three hosts. Three-way replication means usable capacity is approximately the capacity of one equally sized disk, before storage overhead, not the combined capacity of all three.
You can check the available disks on each server before installing:
lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINT,SERIAL,WWN
ls -l /dev/disk/by-id/
Never select a disk that contains an operating system or data you wish to retain.
Select Active-Active HA And Enroll The Hosts
New Installation
Start the normal interactive SSLNexus installation on the first controller. SSLNexus checks for an eligible storage disk before offering active-active HA. If no suitable disk is detected, you can install in standalone or standby mode and configure active-active HA later.
- Answer yes when asked whether to configure high availability, then choose
active-active. - Enter the cluster IPv4 addresses for the controller, partner and witness.
- Run the partner enrollment script supplied by SSLNexus as root on the designated partner. Copy its SSH host public key back to the installer when requested.
- Run the separate witness enrollment script on the witness and return its SSH host public key to the installer.
- Allow SSLNexus to verify both hosts and continue installation on the controller.
Run each script only on its designated host. Verify the public keys against the respective server consoles before accepting them. SSLNexus uses the verified identities to manage the enrolled servers securely.
Existing Installation
You do not need to start with an empty SSLNexus installation to configure active-active HA. Prepare the partner and witness, confirm that all three hosts have eligible storage, and take a backup of the existing controller.
Open Settings → Controller HA and follow the configuration instructions. Run the setup command from the existing controller's terminal:
sudo /usr/libexec/ssl-nexus/ha-setup
Choose active-active and follow the enrollment process above. Your existing certificate estate is retained when the database is moved onto shared storage. Complete the HA configuration before using the partner to manage certificates.
Prepare The Hosts And Create Replicated Storage
After enrollment, SSLNexus checks that the controller, partner and witness have eligible data disks. Correct any reported disk or connectivity problems before continuing.
When asked whether to prepare the three HA hosts and the controller partner, enter y or yes. SSLNexus prepares the required services, installs the matching Client Server software on the partner and prepares the witness.
Review the disk choices displayed for each host. Select the dedicated storage disk on the controller, partner and witness. Confirm your choices by typing CREATE when prompted. Ceph prepares the selected disks and creates the replicated storage cluster.
Wait for storage preparation to finish. Review the host preparation and storage health in Settings → Controller HA. During initial setup, all three hosts should be available and all three storage replicas should be healthy.
If preparation is interrupted, correct the reported issue and resume from the controller terminal:
sudo /usr/libexec/ssl-nexus/ha-setup --after-install
To inspect the available storage on the enrolled hosts, run:
sudo /usr/libexec/ssl-nexus/ha-setup --inspect-storage
Do not remove or clear disks already assigned to the cluster when resuming setup.
Configure Fencing And Activate Both Controllers
Fencing allows SSLNexus to isolate a failed controller safely before another host takes ownership of the database. Configure access to the separate libvirt hypervisors hosting the controller and partner. From the initiating controller, run:
sudo /usr/libexec/ssl-nexus/ha-setup --configure-fencing
Enter the management IP address and verified SSH host public key of each hypervisor. Copy the corresponding script generated by SSLNexus to each hypervisor and run it as root there. These scripts grant the restricted access needed to identify and fence the individual controller virtual machines.
Verify fencing from the initiating controller:
sudo /usr/libexec/ssl-nexus/ha-setup --check-fencing
Complete the database configuration as directed by the HA setup process. For a new installation, SSLNexus initialises the shared database. For an existing installation, SSLNexus transfers the existing database to replicated storage, preserving the certificate estate. Both controllers then use the same database and coordinate certificate management operations. Database ownership is protected through quorum and fencing, including storage fencing when a hypervisor is unavailable.
Open Settings → Controller HA and confirm that both controllers are active, the witness is available, the shared database is healthy and fencing is configured. Sign in to each controller and confirm that the same certificate estate is visible. Install the UI certificates as required and confirm that your chosen administrative access arrangements reach the controllers.
Before relying on HA for critical certificate operations, carry out a controlled single-host failure exercise during a maintenance window. Verify that the surviving controller is accessible, certificate operations can continue, and the cluster returns to a healthy state when the failed host is recovered.
Monitor, Back Up And Recover The Cluster
Open Settings → Controller HA to review the controller, partner and witness, host availability, replicated storage health and database status. Use this page to monitor the cluster during routine operation and maintenance. The separate High availability settings page relates to licensing and standby recovery.
When A Host Becomes Unavailable
If a controller fails, use the surviving controller to manage the shared certificate estate. SSLNexus protects database ownership through fencing before transferring it to the surviving host when necessary. Ceph continues serving data while a healthy quorum and sufficient replicas remain. Do not force both controllers to operate independently or override quorum protection.
Restore the failed host as soon as possible. Confirm that storage has recovered and all replicas are healthy before carrying out further host maintenance. If a host cannot be recovered, use the HA member replacement process to enroll a replacement and restore the cluster's redundancy.
Back Up The Shared Estate
Continue to schedule protected backups of the cluster. SSLNexus collects one shared database backup together with the recovery material for the two controllers and the witness information. This avoids backing up the same database independently on both controllers.
To create a cluster recovery set, run on the initiating controller:
sudo /usr/libexec/ssl-nexus/ha-setup --backup-cluster /secure/ha-recovery/cluster-01
Keep the recovery set outside the cluster and protect any backup decryption keys separately. See Backup And Disaster Recovery for guidance on protecting backups and recovering your installation. Practise recovery in an isolated environment before an outage occurs.
Troubleshoot Your HA Installation
| Condition | What to check |
|---|---|
| Active-active is not offered | Confirm that the initiating controller has an eligible second disk with a persistent identifier. |
| No eligible disk on a peer | Attach an empty, unpartitioned, unformatted whole disk with a unique persistent ID to the named host. Inspect storage and resume setup. |
| Peer verification fails | Check network and SSH connectivity and verify the host public key directly at the peer console. |
| Partner version differs | Ensure both controllers use the same SSLNexus release. |
| Storage health is degraded | Review host availability, network connectivity, quorum, storage replicas and time synchronisation. |
| Fencing verification fails | Check that the correct controller VM is on the enrolled hypervisor and that its management network is reachable. |
| Database configuration fails | Check the reported database compatibility, storage availability and available capacity before resuming. |
Read Active-Active HA For Certificate Operations for more about the three-host architecture.