upstream keepalive connections for all servers or each server?
Maxim Dounin
mdounin at mdounin.ru
Thu May 11 00:57:24 UTC 2017
Hello!
On Wed, May 10, 2017 at 05:40:55PM -0700, Robert Paprocki wrote:
> > It is the number of keepalive connections to be cached for the
> > whole upstream{} block, that is, all servers.
>
> Can we clarify the behavior for upstreams with duplicate server directives?
> Consider the following
>
> upstream foo {
> server 1.2.3.4:80;
> server 5.6.7.8:80;
>
> keepalive 32;
> }
>
> upstream bar {
> server 1.2.3.4:80;
> server 5.6.7.8:80;
>
> keepalive 32;
> }
>
> A max of 64 TCP connections will be kept open?
Yes, in such a configuration each upstream block will cache up to
32 connections (per worker process).
--
Maxim Dounin
http://nginx.org/
More information about the nginx
mailing list