KB-4422175

High-availability installation

Install a fresh two-node RadiusStack HA pair.

10 views

Before you begin

Prepare two new Linux servers with Docker Engine, Docker Compose v2, Bash, and network reachability between them. Each node has its own database and persistent Docker volumes. Choose the nodes' reachable IPv4 addresses before starting.

1. Prepare both nodes

Download the same RadiusStack release onto each node and enter the extracted directory. Run the guided setup on the primary first:

bash setup_env.sh

Answer Y to enable HA, choose primary on the first node, and enter the other node's reachable IPv4 address. Keep the primary's generated JWT_SECRET, RADSEC_PASSPHRASE_ENCRYPTION_KEY, and HA_API_TOKEN available only for the second node's setup.

2. Configure the secondary

Run bash setup_env.sh on the second node, enable HA, choose secondary, and enter the primary's reachable IPv4 address. Supply the exact shared values from the primary for JWT_SECRET, RADSEC_PASSPHRASE_ENCRYPTION_KEY, and HA_API_TOKEN. Do not generate replacements on the secondary.

3. Verify the required HA settings

  • HA_ENABLED=true on both nodes.
  • HA_ROLE=primary on one and HA_ROLE=secondary on the other.
  • HA_DB_OFFSET=1 on the first server and HA_DB_OFFSET=2 on the second. Keep each offset with its server even if roles change.
  • HA_PEER_IP points to the other node on each server.
  • HA_API_TOKEN is the same unique value of at least 32 characters on both nodes.
  • API_PORT is the same on both nodes (default 3000) and both servers can reach that port.

4. Start both nodes and check status

docker compose up -d --build
docker compose ps

Start both stacks, then open Settings → High Availability Status in the Global context. Confirm the primary-to-secondary configuration sync and review HA health before configuring production NAS clients. Never place the shared secrets in tickets, screenshots, or documentation.