unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Eric Wong <normalperson@yhbt.net>
To: unicorn list <mongrel-unicorn@rubyforge.org>
Cc: Troex Nevelin <list@mrtech.ru>
Subject: Re: Request queue length
Date: Sun, 6 Feb 2011 19:02:35 +0000	[thread overview]
Message-ID: <20110206190235.GA8794@dcvr.yhbt.net> (raw)
In-Reply-To: <4D4EAA23.2050802@mrtech.ru>

Troex Nevelin <list@mrtech.ru> wrote:
> Is there a way to get the number of requests that are currently awaiting  
> to be executed by my rails app by unicorn?
> Or there is no queue in unicorn and I should look for this information  
> somewhere in nginx or other front-end server?

The queue is in the kernel and controlled by the listen(2) syscall.
If you're in Linux, you can inspect this with Raindrops[1] or just
read the output of ss(8) or /proc/net/tcp.  I don't know how to do
this in non-Linux kernels.

All TCP servers actually have this queue, so you can use ss(8),
/proc/net/tcp or raindrops to inspect this queue in nginx, too.

[1] http://raindrops.bogomips.org/
    I've found this example surprisingly useful, too:

Eric Wong
Unicorn mailing list - mongrel-unicorn@rubyforge.org
Do not quote signatures (like this one) or top post when replying

  reply	other threads:[~2011-02-06 19:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-06 14:03 Request queue length Troex Nevelin
2011-02-06 19:02 ` Eric Wong [this message]
2011-02-11 19:52   ` Troex Nevelin
2011-02-11 21:20     ` Eric Wong
2011-02-12 15:58       ` Troex Nevelin
2011-02-26 13:12         ` Troex Nevelin
2011-02-26 20:40           ` Eric Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://yhbt.net/unicorn/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110206190235.GA8794@dcvr.yhbt.net \
    --to=normalperson@yhbt.net \
    --cc=list@mrtech.ru \
    --cc=mongrel-unicorn@rubyforge.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).