Create a load balancer
Creating a load balancer gives your VMs one public IP address. In the portal it is one form. In the API it is one POST, which starts an operation; the load balancer is ready when that operation succeeds, usually within half a minute.
If you’re new to load balancers, read the Load Balancers overview first.
When to use each type
You pick the location and type once, at creation. To change them later, create a new load balancer.
HTTPS with the certificate on the load balancer isn’t available yet. See SSL and TLS termination.
How it works
- You choose a location, type, nodes, forwarding rules, targets, a health check and an algorithm.
- IBEE checks every target first. If the location can’t reach a target, the request is refused before anything is reserved.
- IBEE accepts the request and starts a create operation. The load balancer shows Creating while its nodes start and its public IP address is assigned.
- When the operation succeeds, the status is Active and the address appears. Traffic goes only to targets that pass the health check.
Before you begin
- A verified organization. Until it is verified, the portal shows “Complete account verification to create resources”. See Verify your identity.
- A first wallet top-up of at least ₹500. See Add billing.
- One or more running VMs in the location, each with its own public IP address, and your app listening on the same port on every VM. See Attach VMs.
- That port open in each VM’s firewall group. See Create firewall rules.
- For the API: an API token with
load-balancer.write(andload-balancer.readto poll), and your workspace ID: the number after/workspaces/in the portal’s address bar.
Create a load balancer in the portal
Open Load Balancers
In the sidebar, under Network & Security, click Load Balancer. Then click Create Load Balancer. If you have none yet, the page says “No load balancers. Spread HTTP, TCP or UDP traffic across your VMs from one IP address.” with the same button.
Add forwarding rules
Under Routing, the Preview shows how traffic will flow. Each Forwarding rule sends traffic from an incoming port to a backend port on every target. At least one rule is required. Click Add rule for more.
Add targets
Under Targets, click Add VMs and select the VMs that serve the traffic. You can search by name. The list shows the workspace’s VMs in the chosen location. Every rule forwards to all of the selected VMs.
Check the health check
Under Health check, the check is on and set to Port is open, with “Every 10s · 3s timeout · unhealthy after 3 fails · healthy after 1 pass”. You can switch to HTTP response and enter a path, or click Edit timing. See Health checks.
Choose the algorithm and options
Under Algorithm and options, keep Least request (the default) or choose Round robin. See Algorithms.
Options shows Sticky sessions (“Keep a visitor on the same target with a cookie.”) for an Application load balancer, or Proxy Protocol (“Sends the client’s original address to your targets. Turn on only if they’re set up to accept it.”) for a Network load balancer. Both are off by default. Proxy Protocol is proxy_protocol (v1 or v2) on a TCP target group in the API. Sticky sessions aren’t available yet: the current gateway refuses them.
Add firewall rules (optional)
Under Firewall, Firewall rules let you “Allow or block source IPs on each incoming port. Without rules, anyone can connect.” Click Add rule, choose Allow or Block, enter a Source IP or CIDR such as 203.0.113.0/24, and pick the Incoming port. Then set Everyone else to Allowed or Blocked. A block wins over an allow. Firewall rules for UDP ports are available only in locations that support them.
In the API this is firewall: {"mode": "restricted", "rules": [{"address_family": "IPv4", "protocol": "TCP", "source": "203.0.113.0/24", "port": 443, "action": "allow"}]}. mode public (the default) accepts everyone; up to 100 rules.
Create a load balancer with the API
Choose a region
Each region has an id (send it as region_id), a name, a site_id, max_nodes (the most nodes one load balancer can have there) and capabilities:
Send the create request
Send the full specification. Every write needs an Idempotency-Key header: 8–128 printable characters, unique for this change. If the call times out, send it again with the same key and body to get the same operation back.
The second example forwards port 2222 on the load balancer to SSH on the VM, which is an easy way to test a Network load balancer.
A successful call answers 202 with the create operation:
lb_id is the new load balancer’s ID.
Request body
Listener (one per incoming port):
Target group (the VMs behind one or more listeners):
Verify
-
If you just created the VMs, wait a little. A new VM reports
runningabout 20 seconds before its SSH or web server answers. -
Check that the status is Active (
observed_stateactive) and copy the address. -
Send traffic to the address:
For the Network example, connect to the incoming port:
ssh -p 2222 USER@103.149.10.86. -
To use your own domain, add an
Arecord at your DNS provider that points to the address. -
In the portal, the Metrics tab shows Connections and Throughput, plus Requests and 5xx errors for an Application load balancer. With the API, use
GET /networking/load-balancers/LB_ID/metricsandGET /networking/load-balancers/LB_ID/metrics/history?window=1h(1h,24hor7d).
Change a load balancer
You can’t change the location or type. Everything else can change.
In the portal: open the load balancer and click Settings (or Actions → Edit settings). Each part (Nodes, Firewall rules, Forwarding rules, Targets, Health check, Algorithm and options) has its own Edit and Save. To change the node count, click Actions → Resize. If someone else changed the load balancer in the meantime, you see “This load balancer was changed elsewhere. Review the latest version and try again.”
With the API: PUT /networking/load-balancers/LB_ID replaces the whole specification. Read the load balancer first, then send its version and the complete new specification. Anything you leave out of the specification is removed or reset to its default. This request switches the algorithm to round robin:
The call answers 202 with an update operation; wait for it as for a create (about 12 seconds in our tests). If the load balancer changed since you read it, the call answers 409 with "error": "version_conflict" and “Load balancer changed; reload before updating”: read it again and send the new version.
Load balancers made by a Kubernetes cluster (managed_by ccm) can’t be changed or deleted here.
Delete a load balancer
Deleting a load balancer stops its traffic and releases its IP address. Move your DNS records first. Your target VMs are not affected.
In the portal:
- On the Load Balancers list, click the delete icon on the load balancer’s row, or open it and click Actions → Delete.
- In the Delete load balancer? dialog, type the load balancer’s name.
- Click Delete load balancer. You see
Deleting load balancer "orders-web".
With the API:
The call answers 202 with a delete operation, which took 34–42 seconds in our tests. After that, GET /networking/load-balancers no longer lists it. Add include_deleted=true to see deleted load balancers, with observed_state deleted.
List load balancers
GET /networking/load-balancers?workspace_id=710995 returns items, newest first, and a next_cursor. Send cursor with that value for the next page, and limit (1–100, default 50) for the page size. The portal’s Load Balancers list shows Name, Status, Type, Ports, IP address, Location, Nodes and Created, with a Refresh button.
Limits and timing
Times are from tests on 24 November 2026 and can vary.
