Skip to main content

Product description Fault tolerant load balancer

A fault-tolerant load balancer is a reverse proxy that distributes internet traffic between various Selectel services located in different regions and availability zones:

The load balancer can be used to build fault-tolerant services reserved across multiple regions and hybrid infrastructures based on dedicated servers, cloud servers, and a VMware-based public cloud. The load balancer also provides DDoS protection for all incoming traffic at layers L3 and L4.

There are no limits on the number of target servers or the volume of traffic transmitted.

Operating principle

To connect the load balancer, you combine your infrastructure into a private network using the Selectel Global Router and connect the load balancer to this same network. We provide you with the external IP address of the load balancer to receive traffic; the address is protected against DDoS attacks and is announced to the internet via the BGP Anycast protocol. Traffic arriving at the load balancer is distributed across the infrastructure behind it based on specified rules—balancing algorithm, protocol, and the IP addresses and ports of the target servers.

The load balancer is reserved in two independent regions—Moscow and Saint Petersburg—with a pair of high-availability load balancers operating in both regions. If the router or load balancer in one region becomes unavailable, traffic is automatically switched to the other region.

Selectel is responsible for configuring the load balancer, ensuring fault tolerance, and monitoring.

Load balancing levels

According to the OSI model, balancing is possible at the following levels:

  • L4 over TCP (transport layer) — the load balancer redirects requests to servers according to specified algorithms;
  • L7 over HTTP (application layer) — the load balancer analyzes the request content and selects which server to send the request to.

Load balancing algorithms

Different load balancing algorithms are available at both levels (L4, L7):

  • Round Robin — a round-robin scheduling algorithm where requests are passed to each server in turn;
  • Weighted Round Robin is a weighted round-robin algorithm where each server is assigned a weight coefficient corresponding to its performance and power. More requests are sent to servers with a higher coefficient;
  • Source IP hash — an algorithm where the preferred server to receive the request is chosen based on an HTTP header or IP address;
  • Least Connections — an algorithm where the request is sent to the least loaded server.

Comparison of load balancing levels

L4L7
Traffic typeAnyHTTP
Public portsAny443 with TLS (SSL)
80 without TLS (SSL)
ProtocolTCPHTTP
SSL Offloading support
Let’s Encrypt support
Redirect from HTTP to HTTPS✓ (with active SSL Offloading)
HTTP/2 support✓ (with active SSL Offloading)
Source IP address forwarding✓ (via proxy protocol if enabled on the backend)✓ (via standard X-Real-IP header)
Active/standby support
Session support✓ (sticky sessions)

Limits

For a fault-tolerant load balancer, limits are set on the number of concurrent connections. The limit depends on the selected pricing plan:

  • Start — 1 600 connections;
  • Basic — 4 000 connections;
  • Standard — 8 000 connections;
  • Ultra — 80 000 connections.