mirror of mongrel-development@rubyforge.org (inactive)
 help / color / mirror / Atom feed
From: Eric Wong <normalperson-rMlxZR9MS24@public.gmane.org>
To: mongrel-development-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org
Subject: Re: [ANN] Unicorn: UNIX+localhost/LAN-only	Mongrel fork
Date: Wed, 11 Feb 2009 16:59:32 -0800	[thread overview]
Message-ID: <20090212005932.GB26706@dcvr.yhbt.net> (raw)
In-Reply-To: <21ee31950902111632y6df95e9h1f9dd642bcc55baf-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

Ryan Dahl <ry-Xek56AhD01PHviPkdFu9cA@public.gmane.org> wrote:
> Eric,
> 
> this sounds great.
> 
> what would you think of adding an option to allow the server to
> connect to one (or more?) unix pipes for process restart instructions?
> i'd love to add a nginx module which notices when a backend is
> responding too slowly and can notify Unicorn to restart it. (this is
> the killer feature of passenger phusion.)
> 
> a simple protocol where a single byte message encodes the index of the
> backend that needs to be restarted would work i think (easy to
> multiplex with multiple writer processes)

Hi Ryan,

Something like this should already be doable via various means

Workers already process SIGQUIT to gracefully stop; so I'd rather not
reinvent that part even with a very simple protocol.

The master process already notices when timeout is expired and sends
SIGKILL to workers.  I could add a :soft_timeout config and have it send
SIGQUIT to workers if a lower timeout is reached.

On the other hand, I could see implementing soft_timeout having
statistics+heuristics, being URL/action-aware.  So IMHO this could be
more completely implemented as a separate package that watches the logs
via `tail -F`.  That way one can define which actions are allowed
to take longer without affecting the timeout (connecting to external
services for example).

As much as I love nginx, I'm really not a fan of adding modules and
increasing the complexity of the nginx process.  Yeah, I'm pretty
firmly on the "cat -v considered harmful" side of the fence :)

-- 
Eric Wong

  parent reply	other threads:[~2009-02-12  1:01 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-11 23:04 [ANN] Unicorn: UNIX+localhost/LAN-only Mongrel fork Eric Wong
     [not found] ` <20090211230457.GB22926-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2009-02-12  0:32   ` Ryan Dahl
     [not found]     ` <21ee31950902111632y6df95e9h1f9dd642bcc55baf-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-02-12  0:59       ` Eric Wong [this message]
     [not found]         ` <20090212005932.GB26706-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2009-02-12  1:08           ` Ryan Dahl
     [not found]             ` <21ee31950902111708m370f6a28s477b2d2fb4af960b-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-02-12  3:28               ` Eric Wong
     [not found]                 ` <20090212032844.GA24045-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2009-02-12 20:05                   ` Evan Weaver
     [not found]                     ` <b6f68fc60902121205t67bc8bd7n2740162a76d1b852-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-02-14  9:46                       ` Eric Wong
2009-02-12  0:40   ` Ezra Zygmuntowicz
     [not found]     ` <DA13594B-59BD-4EBD-8326-C98D5B85819C-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-02-16 23:39       ` Eric Wong
     [not found]         ` <20090216233904.GB3198-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2009-02-17  1:59           ` Ezra Zygmuntowicz
     [not found]             ` <2A92C72C-498A-4A6E-9035-059CCF4C7371-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-02-18  0:40               ` Eric Wong
     [not found]                 ` <20090218004036.GA29439-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2009-02-21 15:10                   ` Eric Wong
2009-02-24  1:03                     ` Eric Wong
     [not found]                       ` <20090224010344.GG26706-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2009-02-24  2:28                         ` Ezra Zygmuntowicz
     [not found]                           ` <409638DC-A76B-40E1-AE5C-326F2573DACC-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-02-24  3:12                             ` Eric Wong
     [not found]                               ` <20090224031223.GH26706-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2009-02-26  5:55                                 ` Eric Wong
     [not found]                                   ` <20090226055544.GA20153-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2009-02-26  7:06                                     ` Ezra Zygmuntowicz
replies disabled, historical list

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