Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

Upstream least_conn behavior irregularity (5 replies)

$
0
0
Was investigating some issues today when we noticed that least_conn wasn't
behaving as expected.

upstream backend {
least_conn;
server unix:/tmp/sock-1.sock;
server unix:/tmp/sock-2.sock;
server unix:/tmp/sock-3.sock;
}

The expected behavior for 4 simultaneous requests it should distribute them:
sock-1: 2
sock-2: 1
sock-3: 1

However, what we're seeing is:
sock-1: 3
sock-2: 1
sock-3: 0

Which coincidentally lines up with the number of requests a socket can
service simultaneously.

This is using 1.2.7
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Viewing all articles
Browse latest Browse all 7229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>