Create a Load Balancer from the Deploy Load Balancer page in my.cubepath.com. Deploy is quick: you add listeners and backend targets afterwards from the load balancer's tabs.

What it's for

A load balancer gives you one stable public address in front of several servers, and stops sending traffic to any of them that fails a health check. That buys two things at once: you can lose a backend without losing the service, and you can add or remove backends without touching DNS.

Traffic comes in through listeners (a port the load balancer accepts traffic on) and goes out to targets (the servers that answer it).

Deploy

  1. 1
    Pick region
    Choose a region. Load Balancers are available in Miami (MIA), Houston (HOU) and Barcelona (BCN).
  2. 2
    Choose a plan
    Each plan sets the maximum targets, listeners and connections per second, with monthly and hourly pricing shown.
  3. 3
    Attach a private network (optional)
    Open Advanced Settings and attach a private network so the load balancer reaches targets by their private IP. Targets must be on the same network.
  4. 4
    Name and deploy
    Set the name (and optional label), then click Deploy.

Distribution algorithm

Each listener has its own algorithm for spreading traffic across its targets. New listeners use Round Robin; to change it, use Edit Listener on the Listeners tab.

AlgorithmHow it behavesUse it when
Round RobinEach new connection goes to the next target in turnBackends are identical and requests cost roughly the same
Least ConnectionsNew connections go to the target holding the fewestRequest duration varies a lot: long-lived connections, streaming, slow queries

Round robin is the sensible default. Least connections is what you want the moment some requests take far longer than others, because round robin will happily pile new work onto a backend that's already stuck on ten slow requests.

Sticky sessions

Sticky sessions route repeat requests from the same client to the same target, using a cookie you name and a TTL you set (how many seconds the client stays on that target). You turn them on per HTTP or HTTPS listener, when you create or edit it.

Turn it on when your application keeps session state in memory on each server. Better still, build the application so it doesn't need it: an application that keeps sessions in a shared store (a managed Valkey, for example) load balances cleanly, survives a backend dying without logging everyone out, and lets you scale without reshuffling users.

Floating IP

The load balancer gets its public IPv4 and IPv6 addresses automatically when you deploy it. They're floating IPs, listed on the Network tab, and they're the addresses your DNS points at.

Deleting the load balancer releases those addresses. If you delete it and create a new one, the new one isn't guaranteed the same addresses, so be ready to update your DNS.

The load balancer tabs

Listeners, Network, Metrics, Activity and Resize.