nginx & upstream_response_time
marcin.deranek at booking.com
Tue Oct 2 14:59:16 UTC 2012
On Tue, 2 Oct 2012 18:30:07 +0400
Maxim Dounin <mdounin at mdounin.ru> wrote:
> You asked nginx to work in unbuffered mode, and in this mode
> doesn't pay much attention to what happens with backend connection
> if it isn't able to write data it already has to a client. In
> particular it won't detect connection close by the backend (and
> stop counting $upstream_response_time).
> This is probably could be somewhat enhanced, but if you care about
> $upstream_response_time it most likely means you don't need
> "uwsgi_buffering off" and vice versa.
Well, I don't completely agree. As it was explained at
http://forum.nginx.org/read.php?2,193347,193446#msg-193446 some sort of
buffering still takes place even though we work in unbuffered mode. The
only reason why we went for unbuffered mode is latency.
More information about the nginx