Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A1ACC11F5D for ; Fri, 11 Jul 2014 18:49:12 +0000 (UTC) Received: (qmail 4595 invoked by uid 500); 11 Jul 2014 18:49:11 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 4537 invoked by uid 500); 11 Jul 2014 18:49:11 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 4477 invoked by uid 99); 11 Jul 2014 18:49:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jul 2014 18:49:11 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ryan@kumu.io designates 209.85.212.170 as permitted sender) Received: from [209.85.212.170] (HELO mail-wi0-f170.google.com) (209.85.212.170) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jul 2014 18:49:06 +0000 Received: by mail-wi0-f170.google.com with SMTP id cc10so1268197wib.5 for ; Fri, 11 Jul 2014 11:48:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=rgKBbrdGfF/AtqXwdWOuJPxYtotPbIw7Tytz8q0DYYM=; b=SwAVzLcV7R29OX+DQfOPy7ecNXluV6dqLqY7rvBwspu7BVj9NVi4Tiut9I1EerJT/e 759pLobCAj7VqMsPCXACyqAfXKxfcVD6Njl0pPmSPiFGvRlzuRfiZeUI9Vk3sREySbBw t06ZIFSiD2c0PW2G660s3byxGadA0bYM6wLpK2fV/+gMzOgOBrilTRxo1V24dPFKII9P Dfu50Q9ttCet+xW0E+d+6RwelcAlQX6DYQ2b/gKQu6lMniCUNHXAOZz9+PMNCj+83jNv NxsIu5/axhYWN29iB5WpkTwvrytW0qimeA9SGlb8p1tSLoun7+9bmy7GmgdjkAWWR8X9 +xuQ== X-Gm-Message-State: ALoCoQk1hnuqOcBK9gSBJpBZOnb5yvGGTt16qLgPW/fKkiUghNinrffsMnyQ5KUYrSNFvmlwyE32 X-Received: by 10.194.90.77 with SMTP id bu13mr908819wjb.92.1405104519417; Fri, 11 Jul 2014 11:48:39 -0700 (PDT) Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) by mx.google.com with ESMTPSA id de5sm10252410wib.18.2014.07.11.11.48.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Jul 2014 11:48:38 -0700 (PDT) Received: by mail-wg0-f45.google.com with SMTP id x12so1509579wgg.16 for ; Fri, 11 Jul 2014 11:48:37 -0700 (PDT) X-Received: by 10.180.91.225 with SMTP id ch1mr7342672wib.34.1405104517717; Fri, 11 Jul 2014 11:48:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.175.167 with HTTP; Fri, 11 Jul 2014 11:47:57 -0700 (PDT) In-Reply-To: References: From: Ryan Mohr Date: Fri, 11 Jul 2014 08:47:57 -1000 Message-ID: Subject: Re: Are couchdb restarts graceful? To: user Content-Type: multipart/alternative; boundary=f46d04374a05a6a7ad04fdef6368 X-Virus-Checked: Checked by ClamAV on apache.org --f46d04374a05a6a7ad04fdef6368 Content-Type: text/plain; charset=UTF-8 In the end the errors ended up (ironically) being caused by a bad call to our error monitoring service. We run couchdb behind a rails proxy and we were randomly seeing 500 errors on some proxy requests with no backtrace so it was hard to track down. Benoit, by graceful I mean something like unicorn's USR2 signal. The original process would immediately stop accepting new requests, fire up a new instance, finish handling any existing requests, and then terminate. Is there a strong argument against graceful restarts? Couchdb restarts so quickly it's a shame to have it result in failed requests. --f46d04374a05a6a7ad04fdef6368--