Skip to content

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 ​

DataDirection
Configuration versions and activations, with the certificate, key and CA files they refer toactive to standby
Accounts and API tokens (hashes)active to standby
Bans, fetched address lists, SIEM positions, request countsactive to standby
Security eventsboth ways
Audit recordsboth ways: each node keeps its own audit hash chain, and waap audit verify checks both
Diverged versionsboth 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 409 and the active node's management address. Reading, signing in, backups and waap ha commands 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 status
sh
curl -sk -H "Authorization: Bearer $TOKEN" https://node:9443/v1/ha

When 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 ​

LimitValue
Drift alarmafter 10 seconds
Change log kept for a returning standby7 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.