Appearance
Switchover and maintenance Since v0.1
A switchover hands the active role to the standby without waiting for a failure. Maintenance takes a node out of the election for upgrades and hardware work.
Before you begin
- Role:
admin. - For a switchover the standby must be healthy, not in maintenance, and run the same configuration.
Switch over
The active node releases the virtual addresses, and the standby takes and announces them, typically in well under a second. Only connections open at that moment are affected. The active node refuses changes for a moment, waits until the standby has applied everything, and hands over. After a switchover the old active node copies the new active node's data first (a few seconds) before another switchover is possible.
text
1. Open System > High availability.
2. On the active node, select Switch over.
3. Confirm with Switch over now.sh
waap ha switchoversh
curl -sk -H "Authorization: Bearer $TOKEN" -X POST https://node:9443/v1/ha/switchoverEnter and end maintenance
A node in maintenance stays standby and keeps replicating, also across reboots. On the active node, maintenance switches over first, and fails if it cannot.
text
1. Open System > High availability.
2. On the node, select Enter maintenance (or Switch over and enter maintenance).
3. When the work is done, select End maintenance.sh
waap ha maintenance on
waap ha maintenance offUpgrade a pair without downtime
- Put the standby in maintenance and upgrade it. A newer standby follows an older active node.
- Run
waap ha switchover. - Upgrade the other node.
After the switchover the older node does not follow the newer one (status peer_newer) until it is upgraded. Upgrade it promptly and avoid configuration changes in between.
Format 1 to 2 upgrade
The new active node keeps storing format 1 edits until its peer reports config_format: 2 or higher. waap ha status shows ha.format_behind while that report is missing or below 2. Traffic uses the upgraded configuration in memory. Migration resumes automatically within a second of a capable heartbeat, and only the active node writes the migration version. Every format 2 write is refused while the peer is behind, including config apply, the YAML editor, settings edits and copying applications.
For details, see Upgrade and roll back.
SIEM export in a pair
Only the active node exports. After a switchover or failover the new active node continues from the replicated positions, starting a few seconds before the last saved one. Delivery is at least once: de-duplicate by transaction_id for security events, and by node and seq for audit records. Only the active node fetches address lists.
Review diverged versions
If configuration versions were made on both nodes during a network split, the versions replaced when the nodes met again are kept for review.
text
1. Open System > High availability, Diverged versions.
2. Select a version to read its document.
3. To use it again, select Apply as a new version.sh
waap config diverged
waap config diverged 7
waap config diverged -apply -m "keep the site B change" 7Applying one makes it a new version with its own files.
Audit
Every switchover, takeover, step-down, maintenance change and alarm is an audit record (waap audit list -action ha.) and goes to the SIEM audit stream.
Two nodes on one host
For tests and labs, bind each node's listeners to its own address with -listener-address NAME=HOST:PORT on the standby, because both nodes run the same configuration.
Limits
| Limit | Value |
|---|---|
| Switchover needs | healthy standby, not in maintenance, same configuration |
| Maintenance | stays until switched off, also across reboots |
Troubleshooting
ha switchover is refused
- Cause: the standby is unhealthy, in maintenance, or not in sync.
- Check:
waap ha status. - Fix: repair the standby, end its maintenance, or wait until it is in sync.
The upgraded node does not follow the active node
- Cause: the older node never follows a newer one (
peer_newer). - Fix: upgrade the older node.