Number of requests in nginx queue

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

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-nginx-worker-process-to-obtain-100k-hits-per-min

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

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 D.
http://nginx.org/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs