Skip to content

Load Balancing

Distributing incoming requests among multiple inference servers to prevent any single server from becoming overloaded.

Why

A single server with vLLM has a throughput limit. When there are many requests, multiple replicas are set up with a load balancer in front of them:

flowchart LR
    A[Clients] --> B[Load Balancer]
    B --> C[Server 1]
    B --> D[Server 2]
    B --> E[Server 3]

Strategies

Strategy How it works
Round-robin In turn
Least connections To the least loaded
Weighted Proportionally to power

Tools

  • Nginx / HAProxy — classic load balancers;
  • LiteLLM Proxy — specialized proxy for LLM with routing and failover;
  • Kubernetes — orchestration of replicas.

Bonus

The load balancer provides failover: if one server goes down, traffic is directed to the others — the system remains available.

See also

← All terms