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.7 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-f41.google.com (mail-oi0-f41.google.com [209.85.218.41]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 550531F89E for ; Thu, 9 Oct 2014 17:44:01 +0000 (UTC) Received: by mail-oi0-f41.google.com with SMTP id u20so3769896oif.0 for ; Thu, 09 Oct 2014 10:44:00 -0700 (PDT) X-Received: by 10.202.206.193 with SMTP id e184mr3246955oig.68.1412876639959; Thu, 09 Oct 2014 10:43:59 -0700 (PDT) MIME-Version: 1.0 Sender: brauliobo@gmail.com Received: by 10.202.68.11 with HTTP; Thu, 9 Oct 2014 10:43:19 -0700 (PDT) In-Reply-To: References: From: =?UTF-8?Q?Br=C3=A1ulio_Bhavamitra?= Date: Thu, 9 Oct 2014 14:43:19 -0300 X-Google-Sender-Auth: yrwSwzclUaS8keitbqebzl18aMI Message-ID: Subject: Re: Reserved workers not as webservers To: Michael Fischer Cc: unicorn-public Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: Hello Michael, As being forked process, I never saw a worker problem crashing master or other workers. Also, unicorn takes care to restart workers if they die, and that is very useful for daemons to. I agree with your scaling point, but that could be solved with different unicorn configurations. cheers, br=C3=A1ulio On Thu, Oct 9, 2014 at 1:45 PM, Michael Fischer wrot= e: > On Thu, Oct 9, 2014 at 5:24 AM, Br=C3=A1ulio Bhavamitra > wrote: > >> I'm quite amazed of how preloading and fork and reduce memory usage. >> Making it use even less memory and restarting the app faster, the next >> step would be incorporate other daemons (also part of the app, in my >> case delayed_job and feed-updater) AS unicorn workers. > > > As your friendly neighborhood service engineer, my experience is that > separating the concerns (keeping asynchronous processors separate from yo= ur > synchronouous web services) is worth the additional memory and processor > cost. The two usually don't scale at the same rate, and you want to keep > your failure domains separate as well: you don't want a bug in the async > processor cause your web server to crash as well. And let's not even ge= t > into the programming and maintenance challenges. > > There is such as thing as being too cheap. :) > > --Michael > --=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