KB-5401906

Provision an isolated two-node HA rehearsal

Configure matching peers on separate hosts, protect the transport, and verify topology before testing any replication behavior.

13 views

Scope and prerequisites

Start with two disposable hosts or Docker daemons, the same verified RadiusStack build, private routing, stable node addresses and synchronized clocks. This is a topology rehearsal, not a recommendation to enable HA on an unvalidated production pair. Assign one administrative writer and control test NAS traffic at the network edge before starting the secondary. Do not place HA peers behind a generic HTTP proxy: the configured peer is an IPv4 endpoint and protected sync routes that perform source checks use the socket address rather than forwarded headers.[3][6][18]

Configure each new host separately

For a lab pair, put node A at 198.51.100.70, node B at 198.51.100.71 and keep API_PORT=3000 on both. Run the fresh-install wizard on each host. Choose HA and Primary for A (offset 1), HA and Secondary for B (offset 2), and enter the other host as HA_PEER_IP. Transfer the shared JWT secret, RadSec passphrase encryption key and unique HA token through an approved secret channel; do not use sample values or copy the whole .env over the node-specific setup. Confirm both nodes’ peer destinations and restrict TCP 3000 to intended sources.[3][10][18]

bash setup_env.sh
docker compose config -q
docker compose up -d --build
docker compose ps -a

On each host, use its own verified release directory and fresh .env. Do not rerun setup against a populated node just to change a role. Allow the migrator to finish before evaluating the API. In Global → Settings → High Availability Status, read back both roles and the peer at each end. Expect the primary’s authenticated peer health to settle after startup; the secondary does not run the same primary-at-start heartbeat timer.[11][13]

Do not confuse connected with ready

Use a known test object and one controlled authentication/accounting exchange to verify expected replication separately from reachability. A connected status alone neither proves the pair has equal data nor changes NAS destinations. If status stays disconnected, check the actual port publication, source IP as seen at the destination, time and shared token through the approved configuration store. Do not expose the peer API publicly or send raw peer payloads to diagnose it.[13][17][18]

References