Skip to main content
Servers Are Up
Virtual Datacenter
PricingFree Tools
Sign inBrowse catalog
Servers Are Up
Virtual Datacenter
PricingFree Tools
Sign inBrowse catalog

Loading…

Servers Are Up

Your apps, automation and data on hardware we own. Build a private stack with predictable capacity and access through your dashboard, API or SSH.

SLA with service creditsOwned hardwareUS-based

Make room for your next idea

Explore the capacity, apps and access options that fit your workload. Check current availability and your total before you buy.

Sign up freeView Pricing

Products

  • Linux VPS
  • Windows VPS
  • Cloud & SaaS Services
  • Cloud Storage (Azure)
  • Virtual Datacenter
  • AI & Agent Hosting
  • Containers
  • Instant Apps
  • Software Platforms
  • Network builder
  • Game Servers
  • Free Game Servers
  • Pricing

Resources

  • Free Network Tools
  • 2026 Pricing Benchmark
  • Live SVG Badges
  • Latency & Speed Test
  • Guides & Tutorials
  • Documentation
  • API Reference
  • MCP Server
  • CLI & SDKs
  • OpenAPI & llms.txt
  • Use Cases
  • Free Migration
  • Uptime & Reliability
  • Datacenter
  • System Status
  • Network
  • Provider Comparisons Hub
  • Compare Providers

Company

  • About Us
  • Enterprise
  • Security Architecture
  • Trust Center
  • Blog
  • FAQ
  • Compliance
  • Startup Program
  • Open-Source Sponsorship
  • Press & Media Kit
  • Referral Program
  • Help Center
  • Contact Us
© Servers Are Up
TermsPrivacySLARefund PolicyDPAAcceptable Use
Service information
Docs
  • Documentation Hub
  • Technical Knowledge Library
    Runbooks & 187 Blueprints
  • Choose a Product
    VMs, Containers & Cloud
  • First Linux Server
    SSH, Firewall & Apps
  • Windows Server 2025
    BYOL & Remote Desktop
  • Remote Access
  • Troubleshooting
  • FAQ
  • All Product Guides
    29 Step-by-Step Guides
  • Cloud & SaaS Catalog
    112 Cloud & SaaS Offerings
  • Azure Cloud Storage
    Hot/Cool/Archive & WORM
  • Resource Manager & RBAC
    Groups, Tags & Locks
  • Multi-Model Cloud DB
    JSONB, SQL & pgvector
  • Cloud Identity & ZTNA
    OIDC, SCIM & PIM
  • Key Vault & KMS
    Secrets & Envelope Keys
  • Cloud SIEM, SOAR & DLP
    Posture & Threat Response
  • API Gateway & Cloud DNS
    Edge WAF & DNS Zones
  • Serverless, Workflows & IoT
    Functions, Queues & DAGs
  • SaaS, Governance & Vault
    Budgets & Off-Host GRS
  • Linux Systems & Kernel
    SSH, UFW, sysctl & OOM
  • Self-Hosted Apps & Stacks
    Caddy, Nextcloud & Auth
  • Build Web Apps with AI
  • Next.js and React
  • TypeScript and Node.js
  • npm and Tooling
  • Data and APIs
  • Deploy and Operate
  • Tutorials
  • Infrastructure
  • Automation & Regions
  • API Overview
  • API v1 Reference
    Endpoints & 23 Scopes
  • MCP Server
    129 AI Agent Tools
  • Swagger / OpenAPI 3.1
  • API Playground
  • Versioning & Sunset
  • API Token Security
    Authentication & Tokens
  • Instances API
    Compute Resources
  • Networking API
    Networks & Ports
  • Storage API Availability
    Volumes & Backups
  • Webhooks & Events
    Event Notifications
  • Rate Limits & Best Practices
    Throttling & Retries
  • sau CLI Reference
    34 Commands (v0.2)
  • Browser Web CLI
  • SDKs
  • Infrastructure as Code
    Terraform & Ansible
  • Code Examples
  • CLI & SDK Guides
  • Security Guides
  • Security at a Glance
  • Zero Trust Architecture
  • Live Trust Center
  • Compliance
Need help?

Loading documentation...

Documentation/tutorials

Configure Load Balancer

Distribute traffic across instances for reliability and scale.

Intermediate
12 min
Updated 2026-03-11

Deploy Ready-to-Run Infrastructure in Seconds

Linux VMs from $6/mo · Pooled Virtual Datacenters from $12/mo · Use code WELCOME20 for 20% off your first order.

Browse ServersView Pricing

Self-managed setup. A native managed load balancer product is planned and not yet available. This guide sets up HAProxy yourself across Linux VPS instances you check out.

Distribute incoming traffic across multiple instances using HAProxy for high availability and horizontal scaling.

Architecture

                    ┌─────────────┐
  Internet ───▶    │  HAProxy LB │
                    └─────┬───────┘
                          │
              ┌─────────┴─────────┐
              │                       │
        ┌─────┴─────┐     ┌─────┴─────┐
        │  Web App 1  │     │  Web App 2  │
        └────────────┘     └────────────┘

All instances should share the same private network so the load balancer can reach the backends over private IPs.

Step 1: Deploy Your Instances

What you can create today: Buy any product marked Available in checkout and it is set up automatically; products marked Coming soon have no checkout yet. The sau CLI does not create instances.

Servers in one environment already share its private network. To reach the load balancer from the internet, add a port forward to it on Network > Public access, or give it its own Public IPv4 Address from the store. See Private Networking for details.

Step 2: Deploy Your Application

Deploy your application on both web-1 and web-2, listening on port 3000.

Step 3: Install HAProxy

SSH into the load balancer instance:

apt update && apt install -y haproxy

Step 4: Configure HAProxy

cat > /etc/haproxy/haproxy.cfg <<'EOF'
global
    log /dev/log local0
    maxconn 4096
    daemon

defaults
    log     global
    mode    http
    option  httplog
    option  dontlognull
    option  forwardfor
    timeout connect 5s
    timeout client  30s
    timeout server  30s
    retries 3

frontend http_front
    bind *:80
    bind *:443 ssl crt /etc/ssl/certs/combined.pem
    redirect scheme https code 301 if !{ ssl_fc }
    default_backend web_servers

backend web_servers
    balance roundrobin
    option httpchk GET /health
    http-check expect status 200

    server web1 WEB1_PRIVATE_IP:3000 check inter 5s fall 3 rise 2
    server web2 WEB2_PRIVATE_IP:3000 check inter 5s fall 3 rise 2

listen stats
    bind *:8404
    stats enable
    stats uri /stats
    stats refresh 10s
    stats admin if LOCALHOST
EOF

Replace WEB1_PRIVATE_IP and WEB2_PRIVATE_IP with the actual private IPs from your VPC.

Step 5: Obtain TLS Certificate

apt install -y certbot
certbot certonly --standalone -d your-domain.com

# Combine for HAProxy
cat /etc/letsencrypt/live/your-domain.com/fullchain.pem \
    /etc/letsencrypt/live/your-domain.com/privkey.pem \
    > /etc/ssl/certs/combined.pem

Step 6: Start HAProxy

haproxy -c -f /etc/haproxy/haproxy.cfg   # Validate config
systemctl enable haproxy
systemctl restart haproxy

Step 7: Health Checks

Ensure your application exposes a /health endpoint:

// Express example
app.get('/health', (req, res) => res.status(200).json({ status: 'ok' }));

HAProxy will automatically remove unhealthy backends and re-add them when they recover.

Load Balancing Algorithms

Algorithm Best For
roundrobin Equal-capacity servers (default)
leastconn Varying request durations
source Session stickiness by client IP

Monitoring

Access the HAProxy stats dashboard at http://LB_IP:8404/stats (restrict to your IP via firewall).

Next Steps

  • Auto-Scaling
  • Monitoring
  • Private Networking

Related Articles

Auto-Scaling

Read more

Monitoring

Read more

Private Networking

Read more

Frequently Asked Questions

What does the Configure Load Balancer documentation guide cover?
Distribute traffic across instances for reliability and scale. It is rated intermediate difficulty (12 min) and applies to Servers Are Up infrastructure and workflows.
Can I manage or automate these steps through the Servers Are Up dashboard, REST API v1, or MCP server?
Yes. Every Servers Are Up server includes browser-based SSH, WebRDP, and VNC console access in the dashboard, plus programmatic control via the REST API v1 (/api/v1) and hosted Model Context Protocol server (/api/mcp/v1) using a scoped Personal Access Token.

Need hands-on help with Configure Load Balancer?

Every Servers Are Up virtual machine and container includes an integrated HTML5 browser-based SSH, RDP, and VNC console in your dashboard, default-off inbound firewall rules with per-IP allow-lists, and full programmatic control via REST API v1 and Model Context Protocol (MCP). Explore our Virtual Datacenter Plans or reach out to Servers Are Up Support.

Was this article helpful?

On this page

ArchitectureStep 1: Deploy Your InstancesStep 2: Deploy Your ApplicationStep 3: Install HAProxyStep 4: Configure HAProxyStep 5: Obtain TLS CertificateStep 6: Start HAProxyStep 7: Health ChecksLoad Balancing AlgorithmsMonitoringNext Steps
Need Live Commands?

Open Aria in Wide Engineering Mode for distro-specific commands, compose tweaks, and isolated environment troubleshooting.

Knowledge Library