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.8 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-f53.google.com (mail-oi0-f53.google.com [209.85.218.53]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id BC7DE1F89E for ; Thu, 9 Oct 2014 18:06:49 +0000 (UTC) Received: by mail-oi0-f53.google.com with SMTP id v63so4030087oia.12 for ; Thu, 09 Oct 2014 11:06:49 -0700 (PDT) X-Received: by 10.202.184.135 with SMTP id i129mr3354387oif.53.1412878009062; Thu, 09 Oct 2014 11:06:49 -0700 (PDT) MIME-Version: 1.0 Sender: brauliobo@gmail.com Received: by 10.202.68.11 with HTTP; Thu, 9 Oct 2014 11:06:08 -0700 (PDT) In-Reply-To: <20141009173420.GA2787@dcvr.yhbt.net> References: <5436C281.30309@whitepages.com> <20141009173420.GA2787@dcvr.yhbt.net> From: =?UTF-8?Q?Br=C3=A1ulio_Bhavamitra?= Date: Thu, 9 Oct 2014 15:06:08 -0300 X-Google-Sender-Auth: zNXpU0wmgHLgYLHV3f5OZ4BpuH4 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: Eric, how with a simple monkey patch will allow a worker to not connect with the kernel request queue? On Thu, Oct 9, 2014 at 2:34 PM, Eric Wong wrote: > Devin Ben-Hur wrote: >> Excellent points Michael. But to Br=C3=A1ulio's original request, it >> would 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. > > I think some projects exist nowadays (and were inspired by unicorn). > I also cannot speak to the quality of them, though. > > My take is that stuff ends up being fairly specific to the type of > app used and putting an abstraction around them makes it harder to learn > and use than the lower-level primitives Ruby provides. > > The ordering of some things (e.g. writing pid file, preload, binding > sockets, hooks, timeout checks) seems subject to the needs of the > specific server; and it's easier to figure out the ordering of those > things when the lower-level parts are right in front of you instead of > abstracted away in a library. > > Having Ruby as an abstraction around C syscalls is great since I don't > have to worry about things like buffer overruns or error-checking every > single syscall. More abstraction than that ends up hiding too many > important details, making programming and maintenance harder. --=20 "Lute pela sua ideologia. Seja um com sua ideologia. Viva pela sua ideologia. Morra por sua ideologia" P.R. Sarkar EITA - Educa=C3=A7=C3=A3o, Informa=C3=A7=C3=A3o e Tecnologias para Autogest= =C3=A3o http://cirandas.net/brauliobo http://eita.org.br "Paramapurusha =C3=A9 meu pai e Parama Prakriti =C3=A9 minha m=C3=A3e. O un= iverso =C3=A9 meu lar e todos n=C3=B3s somos cidad=C3=A3os deste cosmo. Este universo =C3= =A9 a imagina=C3=A7=C3=A3o da Mente Macroc=C3=B3smica, e todas as entidades est= =C3=A3o sendo criadas, preservadas e destru=C3=ADdas nas fases de extrovers=C3=A3o e introvers=C3=A3o do fluxo imaginativo c=C3=B3smico. No =C3=A2mbito pessoal,= quando uma pessoa imagina algo em sua mente, naquele momento, essa pessoa =C3=A9 a =C3=BAnica propriet=C3=A1ria daquilo que ela imagina, e ningu=C3=A9m mais. = Quando um ser humano criado mentalmente caminha por um milharal tamb=C3=A9m imaginado, a pessoa imaginada n=C3=A3o =C3=A9 a propriedade desse milharal,= pois ele pertence ao indiv=C3=ADduo que o est=C3=A1 imaginando. Este universo fo= i criado na imagina=C3=A7=C3=A3o de Brahma, a Entidade Suprema, por isso a propriedade deste universo =C3=A9 de Brahma, e n=C3=A3o dos microcosmos que tamb=C3=A9m foram criados pela imagina=C3=A7=C3=A3o de Brahma. Nenhuma prop= riedade deste mundo, mut=C3=A1vel ou imut=C3=A1vel, pertence a um indiv=C3=ADduo em particular; tudo =C3=A9 o patrim=C3=B4nio comum de todos." Restante do texto em http://cirandas.net/brauliobo/blog/a-problematica-de-hoje-em-dia