Back to DocumentationReverse Proxy

Load Balancing

Distribute traffic across multiple backend servers.

April 12, 202634 views

Load Balancing

Overview

Load balancing distributes incoming traffic across multiple backend servers, improving reliability and performance.

Configuration

To set up load balancing:

  1. Create a proxy configuration
  2. Add multiple backend targets
  3. Choose a load balancing strategy:

- Round Robin - Distributes requests evenly

- Least Connections - Sends to the server with fewest active connections

- IP Hash - Routes the same client to the same backend

Health Checks

The proxy monitors backend health and automatically removes unhealthy servers from the pool. When a server recovers, it's automatically added back.

Sticky Sessions

If your application requires session persistence, enable sticky sessions. This routes returning users to the same backend server.

load-balancingproxyperformance