Welcome! Log In Create A New Profile

Advanced

Re: Sporadic long response times with upstream server

Peter Booth via nginx
February 21, 2019 03:52AM
Jon,

You need to find out what is “true”. From the perspective of nginx,
this post request took 3.02 secs - but where was the time actually spent?
Do you have root access on both your nginx host and your upstream host
that is behind your elastic load balancer? If so, you can run a filtered tcpdump
on both to see what is occurring at the tcp level as you drive traffic through your
web application. Then try to find out

“whats different about the 3 second scenario and the < 100ms scenario?”
“are there any persistent connections?”
Is it this issue?
https://labs.ripe.net/Members/gih/the-curious-case-of-the-crooked-tcp-handshake https://labs.ripe.net/Members/gih/the-curious-case-of-the-crooked-tcp-handshake
You can adjust the net.inet.tcp.finwait2_timeout
and similar and see if that changes the length of your three second effect to something else.

Hope this helps,

Peter



If


> On 21 Feb 2019, at 11:51 AM, joncard <nginx-forum@forum.nginx.org> wrote:
>
> That's meant to read, "I think this indicates a delay in Nginx," which was
> the whole point. Sorry.
>
> Posted at Nginx Forum: https://forum.nginx.org/read.php?2,283099,283101#msg-283101
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

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

Sporadic long response times with upstream server

joncard February 20, 2019 07:57PM

Re: Sporadic long response times with upstream server

joncard February 21, 2019 02:51AM

Re: Sporadic long response times with upstream server

Peter Booth via nginx February 21, 2019 03:52AM

Re: Sporadic long response times with upstream server

joncard February 22, 2019 04:08PM

Re: Sporadic long response times with upstream server

Igor A. Ippolitov February 21, 2019 05:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 294
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