Skip to content

Load balancers

A load balancer spreads incoming traffic across several backend servers. Open Network > Load Balancers in the Console.

Each load balancer runs in its own small VM that DiscoCloud manages for you.

Concepts

Term Meaning
Load balancer The entry point, with a virtual IP (VIP) on a subnet
Listener A protocol and port the load balancer listens on, such as HTTP on 80
Pool A group of backend servers and the algorithm used to pick one
Member One backend server (IP and port) in a pool
Health monitor A check that removes a failing member from rotation
L7 policy A rule that sends matching requests to a specific pool

Create a load balancer

  1. Open Network > Load Balancers > Create Load Balancer and choose the network and subnet for the VIP.
  2. When the load balancer is Active, open it and go to its Listeners tab. Choose Create Listener and set the protocol and port.
  3. On the listener, add a Pool with an algorithm such as ROUND_ROBIN.
  4. Open the pool. On its Members tab add your servers (their IP and port), and on its Health Monitors tab choose Create Health Monitor.

Wait for each item to become Active before adding the next one.

To reach the load balancer from outside, use Associate Floating IP in the load balancer's row menu, and allow the listener port in a security group.

Important

TLS termination is not available yet. Terminating HTTPS at the load balancer needs a certificate store that is not deployed. Use HTTP, TCP or HTTPS passthrough listeners for now, or terminate TLS on your backend servers.

Route by hostname with L7 policies

One load balancer can serve several domains from one public IP by routing on the Host header. Each backend gets its own pool, and each domain gets an L7 policy that redirects to that pool.

  1. Create one pool for each backend, with its members. Each pool can be created from the listener's Pools tab.
  2. Open the load balancer, then the listener.
  3. Open the L7 Policies tab and choose Create L7 Policy.
  4. Set the action to redirect to a pool, choose the pool, and add a rule such as Host Name EQUAL_TO app.example.com.

The tab lists each policy with its rule in plain language, for example Host Name EQUAL_TO app.example.com. Requests that match no policy go to the listener's default pool.

Inspect a pool

Click a pool's name to open its own page with Overview, Health Monitors and Members tabs. Add or remove members and the health monitor there.

Troubleshooting

Symptom What to check
Members show NO_MONITOR or OFFLINE The health monitor type and path match what the backend serves; the backend's security group allows traffic from the load balancer's subnet
Traffic never arrives A security group allows the listener port; a floating IP is associated with the load balancer
Load balancer stuck in a PENDING status Wait a few minutes; if it stays, contact the DiscoCloud team