Rainbows! Rack HTTP server user/dev discussion
 help / Atom feed
From: Thorsten von Eicken <tve-nkzjiHSqi6rZJqsBc5GL+g@public.gmane.org>
To: "Rainbows! list" <rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org>
Subject: Re: HUP restart is delayed by 2 minutes
Date: Tue, 28 Jan 2014 23:26:19 -0800
Message-ID: <52E8AD1B.8090009@rightscale.com> (raw)
In-Reply-To: <20140129070259.GA5938-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>


On 1/28/2014 11:02 PM, Eric Wong wrote:
> Thorsten von Eicken <tve-nkzjiHSqi6rZJqsBc5GL+g@public.gmane.org> wrote:
>> I'm having trouble getting the HUP restart to work properly (I do have
>> preload_app=false). What happens is that on HUP the master reloads the
>> config file, but it then always takes 2 minutes plus 1-2 seconds for the
>> workers to be reaped. The servers is totally idle, so this is not due to
>> some open connections. Here's how it looks in the log file with 2 worker
>> processes:
> Which concurrency option are you using and which version of Rainbows!,
> unicorn and Ruby is this?
root@vscale:/home/vscale-admin/current# bundle show rainbows
/var/lib/gems/1.9.1/gems/rainbows-4.5.0
root@vscale:/home/vscale-admin/current# bundle show unicorn
/var/lib/gems/1.9.1/gems/unicorn-4.7.0
root@vscale:/home/vscale-admin/current# bundle exec ruby -v
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
root@vscale:/home/vscale-admin/current# bundle exec rainbows --version
Rainbows! v4.5.0

Rainbows! do
  use :EventMachine # concurrency model to use
  worker_connections 5
  keepalive_timeout 2 # zero disables keepalives entirely
  client_max_body_size 5*1024*1024 # 5 megabytes
  Rainbows.module_eval do
    EventMachine.kqueue = false if RUBY_PLATFORM =~ /darwin/i
  end
end

worker_processes 2 # make this configurable later
stderr_path LOG_FILE
stdout_path LOG_FILE
timeout 120
listen "127.0.0.1:8001", :tcp_nopush => true
preload_app false


>
>> I, [2014-01-28T21:39:11.106135 #7936]  INFO -- : reloading
>> config_file=./config/rainbows.rb
>> I, [2014-01-28T21:39:11.111348 #7936]  INFO -- : done reloading
>> config_file=./config/rainbows.rb
>> D, [2014-01-28T21:39:11.112222 #7936] DEBUG -- : waiting 36.5s after
>> suspend/hibernation
>> E, [2014-01-28T21:41:14.786059 #7936] ERROR -- : reaped
>> #<Process::Status: pid 13908 exit 2> worker=0
> That definitely doesn't look right.  We need to know as much about
> your configuration and versions as possible.
I'm happy to add some debug statements if you point me to an appropriate
place in the code.
Thanks!
_______________________________________________
Rainbows! mailing list - rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org
http://rubyforge.org/mailman/listinfo/rainbows-talk
Do not quote signatures (like this one) or top post when replying


  parent reply index

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-29  6:03 Thorsten von Eicken
     [not found] ` <52E89997.6020504-nkzjiHSqi6rZJqsBc5GL+g@public.gmane.org>
2014-01-29  7:02   ` Eric Wong
     [not found]     ` <20140129070259.GA5938-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2014-01-29  7:26       ` Thorsten von Eicken [this message]
     [not found]         ` <52E8AD1B.8090009-nkzjiHSqi6rZJqsBc5GL+g@public.gmane.org>
2014-01-29  7:32           ` Eric Wong
2014-01-29  8:31           ` Eric Wong
     [not found]             ` <20140129083147.GA26652-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2014-01-29 20:11               ` Thorsten von Eicken
     [not found]                 ` <52E9607A.60107-nkzjiHSqi6rZJqsBc5GL+g@public.gmane.org>
2014-01-29 22:03                   ` Eric Wong
     [not found]                     ` <20140129220352.GA24393-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2014-01-29 22:41                       ` Thorsten von Eicken
2014-03-17 21:23                       ` Thorsten von Eicken
     [not found]                         ` <532767E2.70509-nkzjiHSqi6rZJqsBc5GL+g@public.gmane.org>
2014-03-17 21:27                           ` Eric Wong

Reply instructions:

You may reply publically 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://bogomips.org/rainbows/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52E8AD1B.8090009@rightscale.com \
    --to=tve-nkzjihsqi6rzjqsbc5gl+g@public.gmane.org \
    --cc=rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.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

Rainbows! Rack HTTP server user/dev discussion

Archives are clonable:
	git clone --mirror https://bogomips.org/rainbows-public
	git clone --mirror http://ou63pmih66umazou.onion/rainbows-public

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.lang.ruby.rainbows
	nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.rainbows

 note: .onion URLs require Tor: https://www.torproject.org/
       or Tor2web: https://www.tor2web.org/

AGPL code for this site: git clone https://public-inbox.org/ public-inbox