HostUpCloudHostUpCloudDocs

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

PlanMonthlyHourlyvCPURAMConnections/sec
huc.lb.small$5.00/mo$0.007/hr1512 MB10,000
huc.lb.medium$10.00/mo$0.014/hr21 GB50,000
huc.lb.large$20.00/mo$0.028/hr22 GB100,000+

All plans include unlimited backend targets, IPv4 + IPv6 dual-stack, and DDoS protection. Hourly billing with a monthly cap — no lock-in.

Region

RegionLocationStatus
in-blrBangalore, IndiaAvailable

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

AlgorithmDescriptionBest For
Round RobinDistributes requests evenly across all healthy backendsStateless, uniform workloads
Least ConnectionsRoutes to the server with fewest active connectionsLong-lived sessions, WebSocket
IP HashPins clients to backends based on source IPSession persistence without cookies
URI HashRoutes based on request URI for cache-friendly distributionCDN 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

TypeDescription
ActiveHAProxy sends probes at configurable intervals to each backend
PassiveMonitors 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

Featurehuc.lb.smallhuc.lb.mediumhuc.lb.large
L4 & L7 balancingYesYesYes
SSL (Let's Encrypt)YesYesYes
Custom SSL certsYesYes
Health checksActive + PassiveActive + PassiveActive + Passive
AlgorithmsRR, LCRR, LC, IP hash, URI hashAll
Sticky sessionsYesYesYes
HTTP/2 & WebSocketYesYesYes
Proxy Protocol v2YesYesYes
Rate limitingYesYes
Active-standby HAYesYes
Floating IP supportYesYes
Traffic analyticsYesYes
Dedicated KVMYes
Custom HAProxy configYes
Advanced DDoSYes
Private network peeringYes
SupportEmailChat + Ticket24/7 Dedicated
SLA99.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 CaseRecommended Plan
Dev/staging environmentshuc.lb.small
Production web appshuc.lb.medium
E-commerce & SaaShuc.lb.medium
High-traffic APIshuc.lb.large
Mission-critical infrastructurehuc.lb.large
Microservices meshhuc.lb.medium or huc.lb.large

Next Steps

On this page