<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Jon,<div class=""><br class=""></div><div class="">You need to find out what is “true”. From the perspective of nginx, </div><div class="">this post request took 3.02 secs - but where was the time actually spent?</div><div class="">Do you have root access on both your nginx host and your upstream host</div><div class="">that is behind your elastic load balancer? If so, you can run a filtered tcpdump </div><div class="">on both to see what is occurring at the tcp level as you drive traffic through your</div><div class="">web application. Then try to find out</div><div class=""><br class=""></div><div class="">“whats different about the 3 second scenario and the < 100ms scenario?”</div><div class="">“are there any persistent connections?”</div><div class="">Is it this issue?</div><div class=""><a href="https://labs.ripe.net/Members/gih/the-curious-case-of-the-crooked-tcp-handshake" class="">https://labs.ripe.net/Members/gih/the-curious-case-of-the-crooked-tcp-handshake</a></div><div class="">You can adjust the <i style="orphans: 2; widows: 2;" class="">net.inet.tcp.finwait2_timeout</i></div><div class=""> and similar and see if that changes the length of your three second effect to something else.</div><div class=""><br class=""></div><div class="">Hope this helps,</div><div class=""><br class=""></div><div class="">Peter</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">If </div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 21 Feb 2019, at 11:51 AM, joncard <<a href="mailto:nginx-forum@forum.nginx.org" class="">nginx-forum@forum.nginx.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">That's meant to read, "I think this indicates a delay in Nginx," which was<br class="">the whole point. Sorry.<br class=""><br class="">Posted at Nginx Forum: <a href="https://forum.nginx.org/read.php?2,283099,283101#msg-283101" class="">https://forum.nginx.org/read.php?2,283099,283101#msg-283101</a><br class=""><br class="">_______________________________________________<br class="">nginx mailing list<br class=""><a href="mailto:nginx@nginx.org" class="">nginx@nginx.org</a><br class="">http://mailman.nginx.org/mailman/listinfo/nginx<br class=""></div></div></blockquote></div><br class=""></div></body></html>