Multiple master processes

Tilmann Singer tils at tils.net
Mon Jan 31 04:47:02 EST 2011


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?


$ ps xf|grep 4002
 8022 ?        S      0:00 unicorn master -c config/unicorn.rb -E production -p 4002 -D                                         
 8024 ?        S      0:00  \_ unicorn master -c config/unicorn.rb -E production -p 4002 -D                                         
26743 ?        S      0:00  |   \_ unicorn master -c config/unicorn.rb -E production -p 4002 -D                                         
26734 ?        S      0:22  \_ unicorn worker[0] -c config/unicorn.rb -E production -p 4002 -D                                      
26736 ?        S      0:00  |   \_ unicorn worker[0] -c config/unicorn.rb -E production -p 4002 -D                                      
26739 ?        S      0:00  |       \_ unicorn worker[0] -c config/unicorn.rb -E production -p 4002 -D                                      
26737 ?        S      0:22  \_ unicorn worker[2] -c config/unicorn.rb -E production -p 4002 -D                                      
26740 ?        S      0:00  |   \_ unicorn worker[2] -c config/unicorn.rb -E production -p 4002 -D                                      
26741 ?        S      0:00  |       \_ unicorn worker[2] -c config/unicorn.rb -E production -p 4002 -D                                      
26742 ?        S      0:21  \_ unicorn worker[1] -c config/unicorn.rb -E production -p 4002 -D                                      
26744 ?        S      0:00      \_ unicorn worker[1] -c config/unicorn.rb -E production -p 4002 -D                                      
26745 ?        S      0:00          \_ unicorn worker[1] -c config/unicorn.rb -E production -p 4002 -D                                      
$ cat tmp/pids/unicorn.pid
8022


This is on Linux 2.4.27, ruby 1.9.2, unicorn 3.3.1, rails 3.0.3 in an
rvm gemset.

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

I start unicorn like this:
unicorn -c config/unicorn.rb -E production -p 4002 -D

Using "bundle exec unicorn" or unicorn_rails instead doesn't seem to
make a difference.

Starting the same project on my desktop with I believe is mostly the
same setup except that it is Linux 2.6.34, the process list looks like
this, which looks normal to me:

$ ps xf|grep 4002
 2692 ?        Sl     0:00 unicorn master -c config/unicorn.rb -E production -p 4002 -D                                         
 2695 ?        Rl     0:05  \_ unicorn worker[0] -c config/unicorn.rb -E production -p 4002 -D                                      
 2698 ?        Rl     0:05  \_ unicorn worker[1] -c config/unicorn.rb -E production -p 4002 -D                                      
 2700 ?        Rl     0:05  \_ unicorn worker[2] -c config/unicorn.rb -E production -p 4002 -D                                      




Til


More information about the mongrel-unicorn mailing list