unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Jamie Wilkinson <jamie@jamiedubs.com>
To: unicorn list <mongrel-unicorn@rubyforge.org>
Subject: Re: Multiple master processes
Date: Mon, 31 Jan 2011 11:24:43 -0800	[thread overview]
Message-ID: <16D30BB4-B596-4653-B213-329D527BA7AB@jamiedubs.com> (raw)
In-Reply-To: <87ei7te76x.wl%tils@tils.net>

On Jan 31, 2011, at 1:47 AM, Tilmann Singer wrote:

> Hi,
> 
> I'm seeing the following output of ps after starting unicorn, which as
> I understand it means that there are multiple master processes
> running, each with its own pid. Is that normal behaviour or is there
> something wrong with my setup?
> 
<snip>

> # config/unicorn.rb
> worker_processes 3
> pid "tmp/pids/unicorn.pid"
> stderr_path "log/unicorn.stderr.log"
> stdout_path "log/unicorn.stdout.log"

Unicorn doesn't kill the old master on it's own, you need an after_fork() like so (from the default/suggested unicorn conf) 

http://unicorn.bogomips.org/examples/unicorn.conf.rb 
_______________________________________________
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


      parent reply	other threads:[~2011-01-31 20:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-31  9:47 Multiple master processes Tilmann Singer
2011-01-31 18:08 ` Eric Wong
2011-02-01 20:48   ` Tilmann Singer
2011-02-01 21:22     ` Eric Wong
2011-01-31 19:24 ` Jamie Wilkinson [this message]

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=16D30BB4-B596-4653-B213-329D527BA7AB@jamiedubs.com \
    --to=jamie@jamiedubs.com \
    --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).