Anyone know how the least_conn upstream option works in nginx plus?

highclass99 nginx-forum at nginx.us
Fri Oct 2 00:35:51 UTC 2015


Hello,

Anyone know how the least_conn upstream option works in nginx plus?

http://nginx.org/en/docs/http/ngx_http_upstream_module.html#least_conn
says
"Specifies that a group should use a load balancing method where a request
is passed to the server with the least average response time and least
number of active connections, taking into account weights of servers"

How does nginx plus use the three variable to determine which server to
use?
Is the "total" weight dynamically determined as: weight * 1/response time *
active connections or some other formula?

Thanks.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261971,261971#msg-261971



More information about the nginx mailing list