Blog

Load balancing: one hostname across public servers, with health checks

How a load balancing pool gives one hostname up to 8 public servers, takes a server out of DNS after two failed checks, and what the hostname and the servers must be for it to work.

Load balancing: one hostname across public servers, with health checks

2026-11-22

A load balancing pool gives one hostname several public servers that serve the same site. The panel writes the DNS records for the hostname, checks each server on its own, and leaves a server out of DNS when it stops answering. When that server answers again, it comes back.

What a pool needs

Two or more servers, up to 8, each with a public IP address. A private address such as 10.0.0.5 is refused. Each server must answer HTTP on port 80 when the panel asks for the health path with the hostname in the Host header. Any answer from 200 to 399 counts as up. The hostname must not have an A or AAAA record yet, because the pool manages those records.

Create a pool

  1. Open AI in the sidebar, then Load balancing.
  2. Type a Pool name, for example Shop front.
  3. Type the Hostname, for example shop.example.com, and choose its DNS zone in Zone.
  4. Type the Health path. The default is /.
  5. Type the origins, one IP address per line, up to 8.
  6. Press Create pool. The panel checks each origin at once and publishes the healthy ones.
Load balancing page with no pools yet and the New pool form: name, hostname, zone, health path and origins
The New pool form. The hostname must have no A or AAAA records yet.

What happens when a server fails

An origin leaves DNS after two failed checks in a row, and comes back after one successful check. The DNS answers use a time to live of 60 seconds, so a change reaches visitors quickly.

Check it before you trust it

Create the pool on a test hostname first, then stop one origin and watch it leave DNS. The check uses port 80. A server that answers only on port 443 fails the check and is taken out of DNS.

All posts