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.9 required=3.0 tests=AWL,BAYES_00,FREEMAIL_FROM, URIBL_BLOCKED shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: unicorn-public@bogomips.org Received: from mail-oi0-f51.google.com (mail-oi0-f51.google.com [209.85.218.51]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id AF73C1F8DB for ; Mon, 13 Oct 2014 00:10:46 +0000 (UTC) Received: by mail-oi0-f51.google.com with SMTP id h136so11618525oig.38 for ; Sun, 12 Oct 2014 17:10:45 -0700 (PDT) X-Received: by 10.202.9.132 with SMTP id 126mr17579348oij.8.1413159045573; Sun, 12 Oct 2014 17:10:45 -0700 (PDT) MIME-Version: 1.0 Sender: brauliobo@gmail.com Received: by 10.202.68.11 with HTTP; Sun, 12 Oct 2014 17:10:05 -0700 (PDT) In-Reply-To: References: <5436C281.30309@whitepages.com> <20141009173420.GA2787@dcvr.yhbt.net> <20141009181533.GA8164@dcvr.yhbt.net> From: =?UTF-8?Q?Br=C3=A1ulio_Bhavamitra?= Date: Sun, 12 Oct 2014 21:10:05 -0300 X-Google-Sender-Auth: DWNVlIGkfp9iBylXzcxe4iDapcQ Message-ID: Subject: Re: Reserved workers not as webservers To: Eric Wong Cc: Devin Ben-Hur , Michael Fischer , unicorn-public Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: I'm pretty happy to say this daemons setup is working beautifully on three production rails apps (10 workers each). It is really nice to have one pid/master process for the entire app, to know unicorn master restarts the daemons if they crash (which sometimes happens with delayed_job), and to restart the app and daemons all by once (with USR2 signal), and fast! Thanks Eric and other unicorn developers! cheers, br=C3=A1ulio On Sat, Oct 11, 2014 at 12:35 AM, Br=C3=A1ulio Bhavamitra wrote: > On Thu, Oct 9, 2014 at 3:15 PM, Eric Wong wrote: >> Br=C3=A1ulio Bhavamitra wrote: >>> Eric, how with a simple monkey patch will allow a worker to not >>> connect with the kernel request queue? >> >> The listen socket is inherited by default. Closing it works. You can >> also keep the socket open and avoid calling any accept() wrappers, that >> is like a "pop" operation on the queue: >> >> kgio_tryaccept in unicorn, accept/accept_nonblock/sysaccept in stdlib > Done. If you have free time, please take a look at > https://gist.github.com/brauliobo/11298486#file-unicorn-conf-rb-L139 > >> >> Also, please don't top-post (or send giant sigs). Thanks. > Sorry for that (again)