Welcome! Log In Create A New Profile

Advanced

Re: nginx reverse proxy causing TCP queuing spikes

Grant
September 28, 2016 03:16PM
>> I've been struggling with http response time slowdowns and
>> corresponding spikes in my TCP Queuing graph in munin. I'm using
>> nginx as a reverse proxy to apache which then hands off to my backend,
>> and I think the proxy_read_timeout line in my nginx config is at least
>> contributing to the issue. Here is all of my proxy config:
>>
>> proxy_read_timeout 60m;
>> proxy_pass http://127.0.0.1:8080;
>>
>> I think this means I'm leaving connections open for 60 minutes after
>> the last server response which sounds like a bad thing. However, some
>> of my admin pages need to run for a long time while they wait for the
>> server-side stuff to execute. I only use the proxy_read_timeout
>> directive on my admin locations and I'm experiencing the TCP spikes
>> and http slowdowns during the exact hours that the admin stuff is in
>> use.
>
>
> It turns out this issue was due to Odoo which also runs behind nginx
> in a reverse proxy configuration on my machine. Has anyone else had
> that kind of trouble with Odoo?


I do think this is related to 'proxy_read_timeout 60m;' leaving too
many connections open. Can I somehow allow pages to load for up to
60m but not bog my server down with too many connections?

- Grant

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx reverse proxy causing TCP queuing spikes

Grant September 21, 2016 11:36AM

Re: nginx reverse proxy causing TCP queuing spikes

Grant September 24, 2016 08:52PM

Re: nginx reverse proxy causing TCP queuing spikes

B.R. September 25, 2016 10:00AM

Re: nginx reverse proxy causing TCP queuing spikes

Grant September 28, 2016 03:16PM

Re: nginx reverse proxy causing TCP queuing spikes

Robert Paprocki September 28, 2016 03:18PM

Re: nginx reverse proxy causing TCP queuing spikes

Grant September 28, 2016 07:50PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 223
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready