Hi, I want to find out how many requests are queued ,that is are yet to be processed ,in nginx at any given moment. From this i wish to calculate if my server is overloaded with requests. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251143,251143#msg-251143
on 2014-06-25 09:25
on 2014-06-25 10:20
You should never let the users get into queue anyway, it is for unexpected peaks. # Total amount of users you can serve = worker_processes * worker_connections http://stackoverflow.com/questions/7325211/tuning-...
on 2014-06-25 11:56
Hi , thanks for quick reply. Actually Im running a web app under nginx which has max limit of 1000 requests / sec . So understanding queued requests number is important for me. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251143,251146#msg-251146
on 2014-06-25 12:58
Hello! On Wed, Jun 25, 2014 at 03:24:26AM -0400, ashishadhav wrote: > Hi, > I want to find out how many requests are queued ,that is are yet to be > processed ,in nginx at any given moment. > From this i wish to calculate if my server is overloaded with requests. There is no queues in nginx itself. All requests nginx knows about are being processed, and various numbers can be seen in stub_status. Note well that it's usually important to look at nginx and your backends listen socket queues. To find out listen socket queues, consider your OS docs. E.g., under FreeBSD "netstat -Lan" shows various listen queues. On recent enough versions of Linux, listen queues can be seen with "netstat -nlt" or "ss -nlt". -- Maxim Dounin http://nginx.org/