Skip to main content
Servers Are Up
Virtual Datacenter
Pricing
Sign inCreate VDC
Servers Are Up
Virtual Datacenter
Pricing
Sign inCreate VDC

Loading…

Servers Are UpEncrypted Multi-Provider VDC

Connect your cloud and on-site servers in one encrypted Virtual Datacenter. Open a browser console, recover a backup or automate a deployment from your workspace.

Customer Portal & Services

Client DashboardMulti-Provider VDCMy ServersBYOC & HybridBrowser ConsoleBillingAPI Keys & MCPSupport
SLA with service creditsVirtual datacenterWorkspace pricingRegional placement

Create your virtual datacenter

Connect your first machine or check regional availability in your workspace. Review the monthly price before you order.

Sign up freeView Pricing

Products

  • Linux servers
  • Windows servers
  • Cloud & SaaS Services
  • Cloud Storage (Azure)
  • Virtual Datacenter
  • AI workloads
  • Containers
  • Self-hosted applications
  • Software Platforms
  • Network builder
  • Game Servers
  • Game sponsorship
  • 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
  • Migration guide
  • 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
    33 Step-by-Step Guides
  • Cloud & SaaS Catalog
    139 Cloud & SaaS Offerings
  • Azure Cloud Storage
    Hot/Cool/Archive & WORM
  • Resource Manager & RBAC
    Groups, Tags & Locks
  • ARM/TF & Cloud Blueprints
    42-Type IaC & State
  • OCI Container Registry
    SBOM, CVE & Signing
  • Multi-Model Cloud DB
    JSONB, SQL & pgvector
  • Cloud Identity & ZTNA
    OIDC, SCIM & PIM
  • Per-Environment Tenant Suite
    Isolated Auth, SIEM & MCP
  • Secrets & KMS
    Secrets & Envelope Keys
  • Cloud SIEM, SOAR & DLP
    Posture & Threat Response
  • Data Lineage & DSPM
    Classification, EASM & DKE
  • 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 & 26 Scopes
  • MCP Server
    202 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
    202 Commands (v0.3)
  • 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
Browse runbooks

Connect your first machine

Manage one cloud or on-site machine free. Team covers up to 10 machines and Business covers up to 50.

Open your VDCView 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

Create a Virtual Datacenter first. Enroll a machine in your cloud account or at your site, or choose a currently qualified external region in the VDC. Check the displayed provider, configuration and price before placing an order.

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?

Open the workspace to check your machine’s connection and available controls. For automation, consult the REST API or MCP guide. Include the resource and region when you contact 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