{{define "content"}} {{with .Data}} {{if .Note}}
{{.Note}}
{{end}} {{range .Services}}| Backend | Address | State | Last check | Connections | In this state |
|---|---|---|---|---|---|
| {{.Name}} | {{.Address}} | {{if .Up}}{{.Status}}{{else}}{{.Status}}{{end}} | {{.Check}} | {{.Current}} now, {{.Total}} in all | {{.Since}} s |
HAProxy has no backend for it.
{{end}}No load balancer is set up. A load balancer spreads the connections to a service over several hosts and leaves out a host
that fails its checks. Add one under router.loadBalancers in Advanced, for example:
"loadBalancers": {
"api": {
"listen": { "port": 8443, "zones": ["wan", "lan"] },
"tls": "terminate",
"hosts": ["api.example.org"],
"backends": ["hv1", "hv2"],
"backendTls": { "enable": true },
"check": { "path": "/healthz" }
}
}
The backends are names of DHCP reservations or addresses. With "tls": "passthrough" the backends keep their
certificate and the router only forwards; the client's address then reaches them with "proxyProtocol": true
(if they read it). Saved changes take effect when you apply them.