unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* Unicorn freezes, requests got stuck in the queue most likely
@ 2013-05-28 11:17 Alexander Dymo
  2013-05-28 17:20 ` Eric Wong
  2013-05-28 18:56 ` Troex Nevelin
  0 siblings, 2 replies; 5+ messages in thread
From: Alexander Dymo @ 2013-05-28 11:17 UTC (permalink / raw)
  To: unicorn list; +Cc: Gleb Arshinov

Hi,

I'd appreciate an advice on how to debug the following problem: unicorn sometimes freezes for 6-7 seconds and stops taking new requests, then resumes as if nothing happened. Details below.

My setup:
- nginx 0.7.67 proxying requests to unicorn
- unicorn 4.4.0
- rails 2.3.x application

Unicorn is set up as I've described in this list earlier:
http://rubyforge.org/pipermail/mongrel-unicorn/2010-November/000770.html

In short:
- we have two groups of workers:
   - one serving long-running requests that take more than 10 sec, listening to a '/tmp/long_requests_unicorn.sock' socket
   - another serving normal requests, listening to '/tmp/unicorn.sock' socket
- nginx determines which request goes to which sockets.

This worked perfectly for 2 years. Looks like after we upgraded to unicorn 4.4, the normal requests started to get stuck in the queue. That happens randomly, several times per day. When that happens, requests wait for up to 7 seconds to be served. At that time most or all of the workers are available and not doing anything. Unicorn restart fixes the problem.

Has anyone seen something freezes like that? I'd appreciate any help with debugging and understanding this problem.
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-05-30  0:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-28 11:17 Unicorn freezes, requests got stuck in the queue most likely Alexander Dymo
2013-05-28 17:20 ` Eric Wong
2013-05-28 18:13   ` Alexander Dymo
2013-05-30  0:12     ` Eric Wong
2013-05-28 18:56 ` Troex Nevelin

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/unicorn.git/

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).