How High Availability Cluster Works
After you enable the High Availability option and assemble the HA cluster, Veeam Backup & Replication prepares the nodes to enable the data replication:
- Starts the veeamhasvc.service service.
- Assigns a virtual IP address of an HA cluster to the primary node.
- Opens the necessary ports for the PostgreSQL database to communicate with the backup server.
- Configures the secondary node:
- Removes data from the PostgreSQL database of the secondary node.
- Sets the PostgreSQL database to read-only mode.
- Stops all jobs and services except those necessary for the database replication and communication with the primary node.
- Veeam Backup & Replication creates a local cache that contains information about the cluster configuration.
- Veeam Backup & Replication initiates the data synchronization of the configuration databases between the primary and secondary nodes.
Data Replication Algorithm
To synchronize data between the HA cluster nodes, Veeam Backup & Replication utilizes PostgreSQL database capabilities and leverages the database service that provides information on which node is primary and which node is secondary. Veeam Backup & Replication applies the streaming replication to synchronize the HA nodes: data is always written to the primary node, while the secondary node serves as a replica. The database service takes control of the primary and secondary node and initiates data synchronization between their databases.
- PostgreSQL database service starts and constantly checks the PostgreSQL configuration.
- PostgreSQL database service checks the HA cluster state and verifies that HA both nodes are available.
- The High Availability maintenance job saves WAL logs on the primary node.
- The High Availability maintenance job sends the following files to the secondary node.
- Snapshot of the Veeam Backup & Replication configuration database.
- WAL files of the PostgreSQL database.
- Client certificates.
- Configuration files used for registry-based settings.
- Configuration files used by the HA cluster to specify which data should be included or excluded from synchronization.
- The High Availability maintenance job overwrites existing WAL logs in the secondary node with new WAL logs.
HA Cluster Alert Notifications
If the secondary node in the HA cluster becomes unavailable for more than 10 minutes, Veeam Backup & Replication utilizes the following notification mechanisms:
- Veeam Backup & Replication displays a notification in the notification bar.
- Veeam Backup & Replication sends an email alert to the email address that you specify in the global email notification settings.
Once the secondary node is restored and operational, Veeam Backup & Replication sends a follow-up email notification to confirm that the cluster status is healthy.
High Availability Cluster Upgrade
To upgrade an HA cluster, Veeam Backup & Replication utilizes the functionality of the Veeam Updater service. The Veeam Updater service runs on both nodes. It uses the cluster IP address to communicate with the Veeam Identity Service and authorize against the Veeam Updater service on the secondary node. Veeam Backup & Replication starts upgrading the nodes from the primary node, and then synchronizes the updates with the secondary node. Automatic updates on the secondary node are disabled.
Important |
Consider the following:
|
To upgrade an HA cluster, Veeam Backup & Replication does the following:
- Veeam Backup & Replication updates the primary node.
- Veeam Backup & Replication gets updates installed on the primary node.
- Veeam Backup & Replication gets all available updates from the secondary node and compares them with the updates installed on the primary node.
- Veeam Backup & Replication creates a list of the updates that should be installed on the secondary node.
- Veeam Backup & Replication sends a command to the secondary node to install the necessary updates.
