How to disable request pipelining on nginx upstream

Maxim Dounin mdounin at
Mon Aug 29 18:33:01 UTC 2016


On Mon, Aug 29, 2016 at 12:23:34PM -0400, hkahlouche wrote:

> > Yes, nginx will process requests one-by-one and won't pipeline 
> > requests to upstream.
> So, you confirm that the current implementation of nginx doesn't pipeline
> towards upstream, and there is no way to enable that functionality?


> > No, it's not something currently implemented. It's not considered 
> > needed as upstream servers can be easily configured to do this 
> > instead.
> Which configuration parameter of upstream server can be used for that?
> According to the documentation, we have max_fails. Is that what you were
> referring to? max_conns is for connections (not for the requests) and it is
> present only on nginx plus.

I'm talking about upstream server, not the "server" directive in 
the "upstream" block.  Assuming you are using nginx as an upstream 
server you should use keepalive_requests.

Maxim Dounin

More information about the nginx mailing list