upstream keepalive connections for all servers or each server?

Maxim Dounin mdounin at
Wed May 10 12:19:49 UTC 2017


On Mon, May 08, 2017 at 04:24:59AM -0400, fengx wrote:

> As known, the keepalive directive can activate the connections cache for
> upstream servers. I know the connection pool is in each worker process. But
> I'ms confused that the connection number is for each upstream server or is
> shared for all servers? It's documented at

It is the number of keepalive connections to be cached for the 
whole upstream{} block, that is, all servers.

Maxim Dounin

More information about the nginx mailing list