Load Balancer
HAProxy-powered L4/L7 load balancing with SSL termination, sticky sessions, health checks, and instant failover. Deploy in Bangalore.
Load Balancer
HostupCloud Load Balancer is powered by HAProxy — the world's fastest and most widely used open-source load balancer, trusted by GitHub, Reddit, Stack Overflow, and thousands of production environments.
Deploy a fully managed load balancer in seconds with L4/L7 balancing, SSL termination, sticky sessions, and active-standby high availability.
Pricing
| Plan | Monthly | Hourly | vCPU | RAM | Connections/sec |
|---|---|---|---|---|---|
| huc.lb.small | $5.00/mo | $0.007/hr | 1 | 512 MB | 10,000 |
| huc.lb.medium | $10.00/mo | $0.014/hr | 2 | 1 GB | 50,000 |
| huc.lb.large | $20.00/mo | $0.028/hr | 2 | 2 GB | 100,000+ |
All plans include unlimited backend targets, IPv4 + IPv6 dual-stack, and DDoS protection. Hourly billing with a monthly cap — no lock-in.
Region
| Region | Location | Status |
|---|---|---|
| in-blr | Bangalore, India | Available |
More regions coming soon. Backend targets can be any reachable IP — including cloud servers, bare-metal, or external IPs in any region.
Features
Load Balancing Algorithms
| Algorithm | Description | Best For |
|---|---|---|
| Round Robin | Distributes requests evenly across all healthy backends | Stateless, uniform workloads |
| Least Connections | Routes to the server with fewest active connections | Long-lived sessions, WebSocket |
| IP Hash | Pins clients to backends based on source IP | Session persistence without cookies |
| URI Hash | Routes based on request URI for cache-friendly distribution | CDN backends, caching layers |
Protocol Support
- Layer 4 (TCP/UDP) — Network-level balancing for any protocol
- Layer 7 (HTTP/HTTPS) — Application-level balancing with header/path/cookie routing
- HTTP/2 — Full multiplexing support
- WebSocket — Native passthrough for real-time applications
- Proxy Protocol v2 — Preserves original client IP through the load balancer
SSL/TLS Termination
- Auto Let's Encrypt — Free SSL certificates, auto-renewed (all plans)
- Custom certificates — Upload your own SSL/TLS certs (huc.lb.medium and above)
- Wildcard domains — Supported
- HTTP/2 — Enabled by default on HTTPS listeners
Sticky Sessions
Cookie-based session persistence powered by HAProxy. Routes the same client to the same backend server throughout their session.
- Essential for stateful applications (shopping carts, login sessions)
- Configurable cookie name and TTL
- Works with both HTTP and HTTPS
Health Checks
| Type | Description |
|---|---|
| Active | HAProxy sends probes at configurable intervals to each backend |
| Passive | Monitors real traffic for errors and marks backends unhealthy |
Unhealthy backends are automatically removed from rotation and re-added on recovery.
High Availability
- Active-standby architecture — Primary and standby on separate physical hosts
- Zero-downtime failover — Automatic failover in milliseconds
- Floating IP — Same IP moves to standby transparently
- No single point of failure — The LB itself is HA
Rate Limiting & Connection Limits
Protect your backends with per-IP rate limiting and connection caps (huc.lb.medium and above):
- Per-IP connection limits
- Request rate limiting
- Slow-start for new backends
- Connection queue management
Security
- DDoS protection — Built-in network-level DDoS mitigation on all plans
- Advanced DDoS mitigation — Enhanced protection on huc.lb.large
- Private network peering — Available on huc.lb.large
- Dedicated KVM isolation — huc.lb.large runs on isolated KVM instances
Monitoring
- HAProxy stats dashboard — Real-time requests/sec, latency, connection counts, backend health
- Traffic analytics — Historical data and error rates (huc.lb.medium and above)
- API access — Query stats programmatically
Plan Comparison
| Feature | huc.lb.small | huc.lb.medium | huc.lb.large |
|---|---|---|---|
| L4 & L7 balancing | Yes | Yes | Yes |
| SSL (Let's Encrypt) | Yes | Yes | Yes |
| Custom SSL certs | — | Yes | Yes |
| Health checks | Active + Passive | Active + Passive | Active + Passive |
| Algorithms | RR, LC | RR, LC, IP hash, URI hash | All |
| Sticky sessions | Yes | Yes | Yes |
| HTTP/2 & WebSocket | Yes | Yes | Yes |
| Proxy Protocol v2 | Yes | Yes | Yes |
| Rate limiting | — | Yes | Yes |
| Active-standby HA | — | Yes | Yes |
| Floating IP support | — | Yes | Yes |
| Traffic analytics | — | Yes | Yes |
| Dedicated KVM | — | — | Yes |
| Custom HAProxy config | — | — | Yes |
| Advanced DDoS | — | — | Yes |
| Private network peering | — | — | Yes |
| Support | Chat + Ticket | 24/7 Dedicated | |
| SLA | 99.9% | 99.95% | Up to 99.99% |
API Reference
Create a Load Balancer
curl -X POST https://api.hostupcloud.com/v1/load-balancers \
-H "Authorization: Bearer $API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "my-lb",
"plan": "huc.lb.medium",
"region": "in-blr",
"algorithm": "roundrobin",
"protocol": "https",
"health_check": {
"protocol": "http",
"port": 80,
"path": "/health",
"interval": 10,
"threshold": 3
}
}'Add Backend Targets
curl -X POST https://api.hostupcloud.com/v1/load-balancers/{lb-id}/targets \
-H "Authorization: Bearer $API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"targets": [
{ "ip": "10.0.0.1", "port": 8080, "weight": 100 },
{ "ip": "10.0.0.2", "port": 8080, "weight": 100 }
]
}'Enable Sticky Sessions
curl -X PATCH https://api.hostupcloud.com/v1/load-balancers/{lb-id} \
-H "Authorization: Bearer $API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"sticky_sessions": {
"enabled": true,
"cookie_name": "SERVERID",
"ttl": 3600
}
}'Use Cases
| Use Case | Recommended Plan |
|---|---|
| Dev/staging environments | huc.lb.small |
| Production web apps | huc.lb.medium |
| E-commerce & SaaS | huc.lb.medium |
| High-traffic APIs | huc.lb.large |
| Mission-critical infrastructure | huc.lb.large |
| Microservices mesh | huc.lb.medium or huc.lb.large |
Next Steps
- Deploy a Cloud Compute instance as a backend target
- Configure Floating IPs for seamless failover
- Set up Block Storage for persistent volumes
- Review Network & Connectivity for private networking
- Learn about Security & Compliance for firewall rules
Floating IPs
Reserve dedicated public IPv4 and IPv6 addresses. Attach to any cloud compute instance for instant failover and portability.
Content Delivery (CDN)
India-optimised edge caching powered by Varnish and Nginx. Accelerate your website with cache purge API, DDoS protection, and S3 bucket origin support.