Troex Nevelin <[email protected]> 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: http://raindrops.bogomips.org/examples/linux-tcp-listener-stats.rb -- Eric Wong _______________________________________________ Unicorn mailing list - [email protected] http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying
