Load Balancing in Nginx
From the Nginx cheat sheet · Reverse Proxy · verified Jul 2026
Load Balancing
Distributing traffic across multiple servers
nginx
upstream backend {
server 10.0.0.1:8080;
server 10.0.0.2:8080;
server 10.0.0.3:8080;
}
server {
location / {
proxy_pass http://backend;
}
}⚖️ Distributes load across multiple servers
🔄 Multiple load balancing algorithms available
💔 Automatic failover with health checks
🎯 Session persistence with ip_hash