From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: * X-Spam-ASN: AS33070 50.56.128.0/17 X-Spam-Status: No, score=1.8 required=3.0 tests=AWL,FROM_LOCAL_NOVOWEL, MSGID_FROM_MTA_HEADER,RDNS_NONE shortcircuit=no autolearn=no version=3.3.2 Path: news.gmane.org!not-for-mail From: Thorsten von Eicken Newsgroups: gmane.comp.lang.ruby.rainbows.general Subject: Re: HUP restart is delayed by 2 minutes Date: Tue, 28 Jan 2014 23:26:19 -0800 Organization: RightScale, Inc. Message-ID: <52E8AD1B.8090009@rightscale.com> References: <52E89997.6020504@rightscale.com> <20140129070259.GA5938@dcvr.yhbt.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1390980378 28260 80.91.229.3 (29 Jan 2014 07:26:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Jan 2014 07:26:18 +0000 (UTC) To: "Rainbows! list" Original-X-From: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Wed Jan 29 08:26:26 2014 Return-path: Envelope-to: gclrrg-rainbows-talk@m.gmane.org X-Original-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Delivered-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:organization:user-agent :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=ubgyX5EKqTFbou6cBVq3QhZgvtqFgEl8vqL9PR9rtv0=; b=XA6p7pBc94vwvQdRpqMGbWAPrrHvlrmK7qcXxVXoN6AuqB8pkaGRyKtaTNqkZT1NaK taL8pKE9PPIVuLlR2gqFBF9VHckUms60Ba0ZkxffKfV+OdRc3Uy3l+Q2dGHEqnPQdBiE KgzAjVSt7tw3ZFRCbbItAi49xcQ+oUhEfT58gofSpzcuD9C23SV9ibFViSQbkUq6oTSw IkX0QeI9p73UGIMzvGHShVZ9n6Ki3+GX2gOlOEaALgkhLs/gA35IzAvjvUpbpN0ICpCc ICcCwcnafzw1Lq7maIeoYzHS0RIMU9+Kqat+QCEYsyN5Kr3rYPwtdMcpVPSwOdeyar1v /teA== X-Gm-Message-State: ALoCoQnyS319PQFtC7wl8k+4rCzRI5EhjEqQJEJ0xBsNAXiiWGYHBcdGN3qDPMSxB0cRBM1cyg5f X-Received: by 10.66.182.199 with SMTP id eg7mr6256325pac.135.1390980376189; Tue, 28 Jan 2014 23:26:16 -0800 (PST) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: <20140129070259.GA5938-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org> X-Enigmail-Version: 1.6 X-BeenThere: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Errors-To: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org X-Broken-Reverse-DNS: no host name found for IP address 50.56.192.79 Xref: news.gmane.org gmane.comp.lang.ruby.rainbows.general:581 Archived-At: Received: from [50.56.192.79] (helo=rubyforge.org) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W8PXV-0003rd-Kw for gclrrg-rainbows-talk@m.gmane.org; Wed, 29 Jan 2014 08:26:25 +0100 Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 85D4826307F; Wed, 29 Jan 2014 07:26:24 +0000 (UTC) Received: from mail-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) by rubyforge.org (Postfix) with ESMTP id 0129B26307D for ; Wed, 29 Jan 2014 07:26:17 +0000 (UTC) Received: by mail-pd0-f171.google.com with SMTP id g10so1371001pdj.16 for ; Tue, 28 Jan 2014 23:26:16 -0800 (PST) Received: from [192.168.0.2] (sb0-cf9a657f.dsl.impulse.net. [207.154.101.127]) by mx.google.com with ESMTPSA id ns7sm3897806pbc.32.2014.01.28.23.26.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 28 Jan 2014 23:26:15 -0800 (PST) On 1/28/2014 11:02 PM, Eric Wong wrote: > Thorsten von Eicken 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 >> # 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