Welcome! Log In Create A New Profile


Nginx (I assume) sometimes adds 5000ms to response time

Posted by sacrificechild 
Nginx (I assume) sometimes adds 5000ms to response time
October 17, 2018 12:12PM
Hello everyone!

There is a weird thing I noticed on one of the servers that act as proxy that's bugging me for hours and I can't figure it out. Some requests get served to client exactly 5000ms after the content is fetched from upstream

For example - request_time vs upstream_response_time:

5.791 0.791
5.202 0.202
6.125 1.125
5.360 0.360
5.106 0.105
5.329 0.329
5.293 0.293

It happens for a small percentage of requests and it usually comes in tiny "bursts" - it means I can see 5 such requests being served in a few seconds (its also higher possibility of higher delay but not exactly 5s in that timeframe) then everything is OK for a few minutes. I searched everywhere if there is some timeout configured in configs to 5 seconds or if there is some default nginx value set to 5 seconds but can't find anything. It happens on different cleints/networks.

Anyone has an idea how could I figure out what's going on?

Sorry, only registered users may post in this forum.

Click here to login

Online Users

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