What are a Hetzner load balancer's real limits, and how does multi-LB balancing work?
The Hetzner load balancer limits that matter are concurrent connections, targets and services. All of them depend on the load balancer type:
| Type | Concurrent connections | Targets | Services |
|---|---|---|---|
lb11 (default) | 10,000 | 25 | 5 |
lb21 | 20,000 | 75 | 15 |
lb31 | 40,000 | 150 | 30 |
Each node behind the Service uses one target, and each port of the Service uses one service. Workloads with WebSockets or long polling keep connections open, so they reach the connection limit first. Choose the type with the load-balancer.hetzner.cloud/type annotation on the Service. Hetzner sets these numbers, so check the Hetzner Load Balancer FAQ for the current connection limits.
A Hetzner Load Balancer forwards TCP only, which includes HTTP and HTTPS. It does not forward UDP.
A Hetzner Load Balancer runs on a physical node with 2x10G networking. It is a single HAProxy-based instance with a failover. Load balancers are stateful, so Hetzner designed the failover to be fast when hardware fails or the network has an outage. For what you can add on your side, see How do we make the cluster resilient to a Hetzner LB failure?
Each Service of type LoadBalancer gets its own Hetzner Load Balancer. For more capacity than one lb31 carries, create several Services for the same pods, for example for your ingress controller, and publish all their IPs under one DNS name. DNS round robin then spreads the clients across the load balancers.
All annotations are listed in Configure a Hetzner load balancer. To share one load balancer between many applications, or to expose a UDP service, see Choose how to expose an application.
Related questions
