Appearance
Replication Since v0.1
The active node copies its data to the standby over the peer link. Security events and audit records flow both ways, so each node keeps what it stored itself.
What is replicated
| Data | Direction |
|---|---|
| Configuration versions and activations, with the certificate, key and CA files they refer to | active to standby |
| Accounts and API tokens (hashes) | active to standby |
| Bans, fetched address lists, SIEM positions, request counts | active to standby |
| Security events | both ways |
| Audit records | both ways: each node keeps its own audit hash chain, and waap audit verify checks both |
| Diverged versions | both ways |
What is not replicated
Each node's pair settings and identity, its management certificate, login sessions (sign in again on the other node), login lockout counters, rate-limit counters, and the country database file. The country database is compared, so update it on both nodes.
How the standby behaves
- Warm: the standby applies every replicated configuration version to its own inspection service and Envoy, within a fraction of a second.
- Read-only: on the standby, the management API, the console and administration commands refuse changes with
409and the active node's management address. Reading, signing in, backups andwaap hacommands work. - New standby: it takes a snapshot first, then follows the change log. A standby whose position was pruned (7 days or 1,000,000 entries) does the same.
Check that the pair is in sync
Each heartbeat compares the configuration version and hash, the files, the country database and the replication position. A difference that lasts more than 10 seconds raises "not in sync": an audit record ha.drift, a line in waap ha status, and GET /v1/ha, with what differs. ha.in_sync is recorded when it clears.
text
1. Open System > High availability.
2. Read the sync state on each node. A difference is listed under it.sh
waap ha statussh
curl -sk -H "Authorization: Bearer $TOKEN" https://node:9443/v1/haWhen the network splits
Configuration versions made on both sides while the nodes could not reach each other are not merged. When the standby copies the active node's data again, its own versions are kept as diverged versions for review. Events and audit records from both sides are merged. For details, see Switchover and maintenance.
Limits
| Limit | Value |
|---|---|
| Drift alarm | after 10 seconds |
| Change log kept for a returning standby | 7 days or 1,000,000 entries |
Troubleshooting
Changes on the standby fail with 409
- Cause: the standby is read-only.
- Fix: make the change on the active node, at the address in the error.
The user has to sign in again after a failover
- Cause: sessions are not replicated.
- Fix: sign in on the new active node.