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
Types
You pick the type when you create the load balancer. You can’t change it later.
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 anArecord at the address.
How it works
- 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.
- IBEE starts a create operation. The portal opens the load balancer’s page, which shows the progress. The API answers
202with the operation. - 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.addressesin the API. - 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
Statuses
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.readto view,load-balancer.writeto create, change or delete) and your workspace ID.
To create one now, follow Create a load balancer.
Limits
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
402with"error": "billing_denied"and abilling_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.
