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: AS15169 209.85.128.0/17 X-Spam-Status: No, score=-0.4 required=3.0 tests=AWL,BAYES_00,URIBL_BLOCKED shortcircuit=no autolearn=ham version=3.3.2 X-Original-To: unicorn-public@bogomips.org Received: from mail-qg0-f42.google.com (mail-qg0-f42.google.com [209.85.192.42]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id B2EBD1F89E for ; Thu, 9 Oct 2014 17:17:10 +0000 (UTC) Received: by mail-qg0-f42.google.com with SMTP id z60so2721125qgd.1 for ; Thu, 09 Oct 2014 10:17:09 -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:date :message-id:subject:from:to:cc:content-type; bh=VUbVV6LEv7D6RZ5R2iTDwSKkwDGWjInSu0kac35jG0c=; b=kQn6Ih4Eq6cmSjdwDN+pTbb/obLX6bb1SMcTCf0jVJoYpDx4qpxlG3K30j5JCVocvf NCp+Ucrq5pUDg3dzQeraurdEzuiOXYMdRol/tuj0JHbXds1uSzt+nPc1qd4yCOTGKhwL S5HteRgmGYorZ8tBWm80NRYtuhPbGzTJapL72F6vYovDM+imdFz8lhldag92TercMtHX OPUeW71Hyq5LlugkW1bsnwFlyNCX3kIoQ9kBp0XeGdfcHYtcD6GdvO3Rp11XJHF6pJcZ 7PfA1WmmLwQNSqcJSaEZQ+rWI/3+eYtPVcAcfdXtsTcPkYTrEj4sVP1uqey8fi2nbymI CICw== X-Gm-Message-State: ALoCoQlF/+za3oscNpFQlzzQ7URNVdcx660IyAhQsRAiX7W79Yw0ewsA0J5BMDxdz5juaw5Pcy9p MIME-Version: 1.0 X-Received: by 10.140.101.54 with SMTP id t51mr24302145qge.6.1412875029386; Thu, 09 Oct 2014 10:17:09 -0700 (PDT) Received: by 10.140.107.139 with HTTP; Thu, 9 Oct 2014 10:17:09 -0700 (PDT) In-Reply-To: <5436C281.30309@whitepages.com> References: <5436C281.30309@whitepages.com> Date: Thu, 9 Oct 2014 10:17:09 -0700 Message-ID: Subject: Re: Reserved workers not as webservers From: Michael Fischer To: Devin Ben-Hur Cc: =?UTF-8?Q?Br=C3=A1ulio_Bhavamitra?= , unicorn-public Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: PublicInbox::Filter 0.0.1 List-Id: On Thu, Oct 9, 2014 at 10:14 AM, Devin Ben-Hur wrote: > > Excellent points Michael. But to Br=C3=A1ulio's original request, it wou= ld be > lovely to factor out the clean and robust process management parts of > unicorn (daemonization, pidfile-mgmt, pre-load, fork, reap, signaling) > separate from the HTTP/Rack server. This would give us a robust supervis= or > for asynchronous workers that reduce memory footprint with CoW and respon= ds > to a well understood set of signals for management. > Take a look at resque-pool (https://github.com/nevans/resque-pool) for one example of a pre-existing solution. I'm sure there are others. --Michael