Skip to navigation

Load Balancers

A load balancer gives several of your VMs one public IP address. Clients connect to that address, and the load balancer forwards each request or connection to one of your VMs (its targets). If a target fails its health check, it stops getting traffic until it recovers.

IBEE load balancers are regional. Each one runs in one location (called a region in the API), next to the VMs it serves, on one or more dedicated nodes.

When to use a load balancer

You want to…UseWhy
Run the same app on two or more VMs and keep it up when one failsLoad balancer (this page)One IP address, traffic spread across healthy VMs
Give one VM a public address that you can move to another VM laterReserved IPOne server, no health checks, no traffic splitting
Open one port on a private VM in a VPC to the internetNAT port forwardingMaps a port on the VPC’s shared public address to the VM
Serve images, CSS or downloads from storage, fast, worldwideCDNCaches files close to users; not for app servers

Types

You pick the type when you create the load balancer. You can’t change it later.

Type in the portalAPI traffic_typeIncoming protocolsUse for
Application (Layer 7)httpHTTP. HTTPS needs a TLS certificate, which you can’t add yet.”Routes HTTP and HTTPS requests by hostname and path. For websites and APIs.”
Network (Layer 4)networkTCP and UDP”Forwards TCP connections and UDP datagrams. For databases, game servers and other protocols.”

A Network load balancer forwards TCP connections unchanged, so it can also pass encrypted traffic straight to your VMs (TLS passthrough). See SSL and TLS termination.

Locations and nodes

  • Location. A load balancer runs in one location, for example Amaravati. Its targets must be VMs in the same location. You can’t move it later. The API lists locations with GET /networking/load-balancers/regions.
  • Nodes. Each node is a dedicated proxy on its own host. With 1 node there is no redundancy. With 2 or more, traffic keeps flowing if a host fails. Each location sets the most nodes one load balancer can have (max_nodes), and you can resize later.
  • Address. The load balancer gets one public IP address, for example 103.149.10.86. There is no IBEE hostname. To use your own domain, point an A record at the address.

How it works

  1. You create the load balancer with a location, a type, a node count, one or more forwarding rules (an incoming port and the backend port it goes to) and the VMs that serve the traffic.
  2. IBEE starts a create operation. The portal opens the load balancer’s page, which shows the progress. The API answers 202 with the operation.
  3. The load balancer becomes active. When the operation succeeds (about 25 seconds in our tests), the status is Active and the public IP address appears: under Connect in the portal, and in conditions.addresses in the API.
  4. Clients connect to that address on the incoming ports. Each node checks your targets’ health and picks a healthy one for each request or connection, using the algorithm.

What a load balancer can do

FeaturePortalAPIDetails
Forwarding rules (listeners)YesYesUp to 32. Any port from 1 to 65535.
VM targetsYesYesVMs in the same location. See Attach VMs.
Private IP targetsNoYesOnly in a location whose capabilities.private_targets is true
Health checksYesYes”Port is open” (TCP) or “HTTP response”. See Health checks.
AlgorithmYesYesLeast request (default) or round robin. See Algorithms.
Several target groups and path rulesView and edit onlyYesSend a path such as /api to other VMs. The create form uses one list of targets for every rule.
HTTPS with a certificate on the load balancerNoNoComing soon. See SSL and TLS termination.
Firewall rules on incoming portsYesYesAllow or block source IP addresses per incoming port (firewall in the API)
Proxy Protocol (Network)YesYesproxy_protocol on a TCP target group
Sticky sessions (Application)Shown, not available yetNoThe current gateway refuses it (422)
Change settings and resizeYesYesPortal Settings tab, or PUT with the current version
MetricsYesYesConnections and throughput; requests and 5xx errors for Application load balancers

Statuses

Status in the portalAPI observed_stateWhat it means
CreatingpendingBeing set up. The portal shows what it is waiting for, such as “Assigning the public IP address”.
ActiveactiveServing traffic at its address
UpdatingupdatingApplying your latest change
DeletingdeletingBeing removed
Failederror”This load balancer isn’t serving traffic”
Suspendedsuspended”It was suspended for your organization’s account. Contact support to restore it.”
DeleteddeletedGone. Lists hide it unless you ask for deleted ones.

Before you begin

  • A verified organization. Until it is verified, the portal shows “Complete account verification to create resources”. See Verify your identity.
  • Money in your wallet. An organization that hasn’t made its first top-up of at least ₹500 can’t create a load balancer. See Add billing.
  • VMs in the same location that the load balancer can reach. Use VMs with their own public IP address. See Attach VMs.
  • The backend port open in each VM’s firewall group. See Create firewall rules.
  • For the API: an API token with Load Balancer permission (load-balancer.read to view, load-balancer.write to create, change or delete) and your workspace ID.

To create one now, follow Create a load balancer.

Limits

ItemLimit
Name1–80 characters
Nodes1 up to the location’s max_nodes (the API accepts at most 5)
Forwarding rules (listeners)1–32; each incoming port used once per transport (TCP or UDP)
Target groups (API)1–32
TargetsUp to 100 per target group
Ports1–65535

Billing

  • You pay per node, per hour of use. The create page shows each type’s price per node, for example ₹1.69/hr per node, and the total in the bottom bar with “Billed per hour of use”.
  • The hourly price is the price per node times the number of nodes, so 2 nodes cost twice as much per hour as 1 node.
  • Your target VMs are billed as VMs. Deleting a load balancer doesn’t affect them.
  • If Billing refuses a create, the API answers 402 with "error": "billing_denied" and a billing_reason. See Create a load balancer → Troubleshooting.

Load balancers made by Kubernetes

A Kubernetes cluster can create a load balancer for a Service. Such a load balancer has managed_by set to ccm, and the portal shows Managed by Kubernetes. You can view it, but you can’t change or delete it in the portal or the API. Change the Service in your cluster instead.

Troubleshooting

You seeWhat it meansWhat to do
”Complete account verification to create resources”Your organization isn’t verified yetComplete identity verification.
”Load balancers aren’t available in any location yet.”No location offers load balancers right nowContact support.
402 with billing_reason initial_topup_requiredYour organization hasn’t made its first top-upAdd at least ₹500 to your wallet (Billing → Purchase credits), then try again.
The status stays Creating with “Connecting to your targets”The load balancer can’t attach one or more targets yetSee Attach VMs → Troubleshooting.
The status is Active, but connections failNo target passes its health check, or a firewall blocks the portSee Health checks → Troubleshooting.
You can’t find a hostname for the load balancerRegional load balancers have an IP address onlyUse the address, or point your own domain’s A record at it.