Load balancer distributing traffic across three servers

How a load balancer works

The load balancer receives traffic on a single address, often associated with a public IP, then distributes it across the VMs in a pool. It regularly checks that each VM is responding (health check) and stops sending it traffic for as long as it does not respond.

The service is built on relayd, OpenBSD's load balancer. Each load balancer runs in your organization's network space: it only sees your VMs.

Protocols and certificates

The load balancer distributes TCP connections or HTTP and HTTPS requests. It can hold the certificate and decrypt the traffic (TLS termination). This certificate can be your own, or be obtained and renewed automatically from Let's Encrypt.

Your VMs see the visitor's real address through the X-Forwarded-For header (HTTP) or the PROXY protocol (TCP and TLS).

HTTP rules, persistence and failover

HTTP rules filter or route requests based on their path or headers. Session persistence sends the same visitor to the same VM, based on a cookie or a header. A backup pool takes over if all the primary VMs are out of service.

Choosing a size

Four sizes are available depending on the expected traffic, from Small 1 to Advanced 1. Prices range from 3,780.00 to 25,920.00 DZD excl. VAT per month.

Load balancer

At a glance

Health checks

A VM that stops responding is taken out of rotation, then automatically brought back in.

TLS termination

The load balancer holds your certificates and decrypts HTTPS.

Let's Encrypt

Certificates obtained and renewed automatically.

HTTP rules

Filtering and routing based on path or headers.

Session persistence

The same visitor stays on the same VM.

Public IP

A public IP on the load balancer exposes the whole pool.

Costed example

Example: a website on three servers

  • 3 × m1.medium2 vCPU · 4 GB RAM · 40 GB SSD 12,717.00 DZD
  • Public IPs (EIP)1 IP 750.00 DZD
  • 1 × Load balancer Small 15,000 max. connections 3,780.00 DZD

Total17,247.00 DZD excl. VAT/month

or 20,523.93 DZD incl. VAT/month

Three m1.medium instances behind a Small 1 load balancer exposed through a public IP: traffic is distributed across the three servers, and an instance under maintenance is automatically taken out of rotation.

Adjust in the simulator
Pricing

Sizes and prices

CPS: new connections per second. QPS: queries per second.
SizeMax. connectionsCPSQPSexcl. VAT/monthexcl. VAT/hour
Small 1 5,000 3,000 1,000 3,780.005.25
Medium 1 50,000 5,000 5,000 6,480.009.00
Medium 2 100,000 10,000 10,000 12,960.0018.00
Advanced 1 200,000 20,000 20,000 25,920.0036.00
Frequently asked questions

Good to know

A load balancer that distributes traffic across several instances to absorb the load and ensure service continuity. Four sizes are available, from Small 1 (5,000 concurrent connections, 3,780.00 DZD excl. VAT per month) to Advanced 1 (200,000 connections, 25,920.00 DZD excl. VAT per month).

It depends on the expected number of concurrent connections and requests per second: Small 1 (5,000 connections, 1,000 requests/s) suits most websites, Medium 1 and Medium 2 suit high-traffic applications, and Advanced 1 (200,000 connections, 20,000 requests/s) suits the most heavily loaded platforms.

Yes. It can hold the certificate and decrypt the traffic (TLS termination), with your own certificate or a Let's Encrypt certificate obtained and renewed automatically, or pass the encrypted stream through as is (TCP mode).

The health check detects that it is no longer responding and the load balancer stops sending it traffic. It is automatically brought back in as soon as it responds again.
PYSOFT Cloud

The other services in your VDC

How the PYSOFT cloud works

The PYSOFT cloud combines proven building blocks (OpenBSD, KVM, etcd, pf, relayd) around simple, auditable code. The goal: to offer …

Your virtual data center (VDC) in Algeria

A VDC brings your entire infrastructure together in an isolated space: servers, networks, firewall, VPN, storage and load balancers. You …

Virtual servers hosted in Algeria

Virtual servers hosted in Dellys and billed in dinars: choose a predefined configuration or build your VM by the vCPU, …

Encrypted VMs, from disk to memory

Encrypt each VM's disk with AES-256 using a key unique to that VM, and its memory with the AMD processor. …

Appstore: your applications ready in minutes

Choose an application and a VM size: the platform takes care of the rest, from installation to HTTPS, including the …

Autoscaling: your servers follow the load

An instance group adds VMs when the load goes up and removes them when it goes back down. You pay …

Routed SDN network: private networks and public IPs

Each organization has its own network, isolated from the others at the routing level. Your VMs communicate with each other …

Firewall as a Service (FWaaS) based on pf

Every VM has its own firewall, applied on its interface by pf, OpenBSD's firewall. You get the fine-grained control of …