From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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=0.7 required=5.0 tests=AWL,RDNS_NONE shortcircuit=no autolearn=no version=3.3.2 X-Original-To: archivist@yhbt.net Delivered-To: archivist@dcvr.yhbt.net Received: from rubyforge.org (unknown [50.56.192.79]) by dcvr.yhbt.net (Postfix) with ESMTP id CE58044C1A8 for ; Fri, 3 Jan 2014 19:48:18 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 729A62E18D; Fri, 3 Jan 2014 19:48:17 +0000 (UTC) X-Original-To: mongrel-unicorn@rubyforge.org Delivered-To: mongrel-unicorn@rubyforge.org X-Greylist: delayed 1958 seconds by postgrey-1.31 at rubyforge; Fri, 03 Jan 2014 19:48:10 UTC Received: from cybermen.asmallorange.com (cybermen.asmallorange.com [108.165.20.31]) by rubyforge.org (Postfix) with ESMTP id 8ACAD2E18B for ; Fri, 3 Jan 2014 19:48:09 +0000 (UTC) Received: from mail-vb0-f48.google.com ([209.85.212.48]:40203) by cybermen.asmallorange.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.82) (envelope-from ) id 1VzADP-0001dV-0j for mongrel-unicorn@rubyforge.org; Fri, 03 Jan 2014 14:15:27 -0500 Received: by mail-vb0-f48.google.com with SMTP id f13so7724057vbg.21 for ; Fri, 03 Jan 2014 11:15:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:from:date:message-id:subject:to:content-type; bh=B2tFWbgYttRcpwQ7HCosQGJkUYY4sSkjxGZqdyGFTJw=; b=jX3613V7nq6kAxRNo+UDZEOOjZh2nHSwYoz0Pc6lBVLOnKFPmK7qmETA4+rVTaJjn8 u/GJiRQjVfj96t00fmC4jml1aHyhCnAr+KQKr6ktF0rzybq1dB2b5v29Z+nqOV+sZ7w0 XWwYLiAfH+sNLs/IXgJW2V1mzm/UeSCeHFpFNyOJc6f4gNxNGwbZlxZQOcqjv+f0zcQp pIoW1xwDK6oSvUuG6WiWbGM++KOV3U2vVp1gFjkociabWr72i00PxNz6aUl/qX4YG7w0 HxhXcirIFXFrH5oSxYFyt5VH3ocE3wJZM1/qlxPSy+h7ZsYq2Cchy8qFUwwdmnRWOE0m r3Xg== X-Received: by 10.52.229.39 with SMTP id sn7mr44657322vdc.2.1388776526182; Fri, 03 Jan 2014 11:15:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.58.147.67 with HTTP; Fri, 3 Jan 2014 11:15:06 -0800 (PST) From: Jonathan del Strother Date: Fri, 3 Jan 2014 19:15:06 +0000 Message-ID: Subject: Zero-downtime restarts while updating the environment? To: mongrel-unicorn@rubyforge.org X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cybermen.asmallorange.com X-AntiAbuse: Original Domain - rubyforge.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - steelskies.com X-Get-Message-Sender-Via: cybermen.asmallorange.com: authenticated_id: maillist@steelskies.com X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: mongrel-unicorn@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: mongrel-unicorn-bounces@rubyforge.org Errors-To: mongrel-unicorn-bounces@rubyforge.org Hi there, I recently ran into a problem where I had to update bundler from 1.3 to 1.5 so that it recognised the "platforms:[ruby_21]" option in my Gemfile. However, Unicorn continued to use Bundler 1.3 when I re-exec'd it via USR2 (perhaps unsurprisingly), and so couldn't load my new gemfile until I completely restarted it. I ended up tweaking our balancers to funnel all our traffic to half our backend machines, restarted unicorn on the other half, then flipped the traffic to the first half and repeat. Is that the standard way of doing it, or is there a better way? _______________________________________________ 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