unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Eric Wong <normalperson@yhbt.net>
To: "Lin Jen-Shin (aka godfat 真常)" <godfat@godfat.org>
Cc: unicorn list <mongrel-unicorn@rubyforge.org>
Subject: Re: About Unicorn Rack handler
Date: Wed, 4 Nov 2009 23:29:00 -0800	[thread overview]
Message-ID: <20091105072900.GA11050@dcvr.yhbt.net> (raw)
In-Reply-To: <15d206ce0911042047i54ab72a2wd579efb523642026@mail.gmail.com>

"Lin Jen-Shin (aka godfat 真常)" <godfat@godfat.org> wrote:
> 2009/11/5 Lin Jen-Shin (aka godfat 真常) <godfat@godfat.org>:
> > On Thu, Nov 5, 2009 at 1:07 AM, Eric Wong <normalperson@yhbt.net> wrote:
> >> On the other hand, does Innate make it possible to do transparent
> >> upgrades (since rackup does not)?  I'll look into it a bit more later...
> >
> > I am not sure what do you mean transparent here,
> 
> Oops, accidentally sent incomplete mail, sorry.
> 
> I am not sure what do you mean transparent here,
> but I would guess Innate work better than rackup. :p

Transparent, zero-downtime upgrades (USR2 + QUIT) that Unicorn
can do like nginx[1].

The issue here with rackup is that it changes ARGV with the option
parser before Unicorn can get to it.  So when Unicorn receives the USR2
signal and respawns itself, it won't be able to spawn a child with the
same command-line options as its parent.  Using the "unicorn" script
will allow it to always save its ARGV before OptionParser has a chance
to mangle it.

[1] - http://unicorn.bogomips.org/SIGNALS.html
-- 
Eric Wong
_______________________________________________
mongrel-unicorn mailing list
mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn

  reply	other threads:[~2009-11-05  7:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-04 12:37 About Unicorn Rack handler Lin Jen-Shin (aka godfat 真常)
2009-11-04 17:07 ` Eric Wong
2009-11-05  4:43   ` Lin Jen-Shin (aka godfat 真常)
2009-11-05  4:47     ` Lin Jen-Shin (aka godfat 真常)
2009-11-05  7:29       ` Eric Wong [this message]
2009-11-05  7:28     ` Eric Wong
2009-11-05 15:13       ` Lin Jen-Shin (aka godfat 真常)
2009-11-05 23:19         ` 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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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=20091105072900.GA11050@dcvr.yhbt.net \
    --to=normalperson@yhbt.net \
    --cc=godfat@godfat.org \
    --cc=mongrel-unicorn@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

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