From: "Bráulio Bhavamitra" <braulio@eita.org.br>
To: Eric Wong <normalperson@yhbt.net>
Cc: Unicorn <mongrel-unicorn@rubyforge.org>,
unicorn-public <unicorn-public@bogomips.org>
Subject: Re: Does unicorn waits after_work to consider a worker ready?
Date: Sun, 4 May 2014 09:57:44 -0300 [thread overview]
Message-ID: <CAJri6_sQRrnESq_kKbpayh1SfuCrAvWp08+PSoMFQzwnrxVzeA@mail.gmail.com> (raw)
In-Reply-To: <20140502234353.GA5280@dcvr.yhbt.net>
Thanks very much Eric.
Just looked at the Unicorn's source code and the answer to the
subject's question is yes.
Also, I have made the configuration a little shorter, and made worker
killer optional: https://gist.github.com/brauliobo/11298486
regards,
bráulio
On Fri, May 2, 2014 at 8:43 PM, Eric Wong <normalperson@yhbt.net> wrote:
> Bráulio Bhavamitra <braulio@eita.org.br> wrote:
>> That's the ruby design, as the heap only grows, so with a request that
>> loads a lot of data the heap will grow big and never shrink.
>> http://izumi.plan99.net/blog/index.php/2007/10/12/how-the-ruby-heap-is-implemented/
>
> That's ancient, I was waiting for Hongli to reply...
>
>> Ruby 2.1 changes that? We will soon migrate to ruby 2.1, but we are
>> not ready for it yet.
>
> Yes, Ruby freed object slots since the 1.9 days, I think.
>
> Anyways, I've maintained a bunch of Ruby apps and I've gotten _all_ of
> them have stable memory usage. Often I needed to fix bugs in Ruby
> itself or other gems/libraries to get there, though!
>
> One basic rule (which I learned as a Perl hacker): do not slurp. Limit
> the size of data you work with and break things into smaller chunks if
> necessary (e.g. data from client uploads or database/API responses).
> Things like running a "SELECT" without "LIMIT" in SQL should raise red
> flags immediately.
--
"Lute pela sua ideologia. Seja um com sua ideologia. Viva pela sua
ideologia. Morra por sua ideologia" P.R. Sarkar
EITA - Educação, Informação e Tecnologias para Autogestão
http://cirandas.net/brauliobo
http://eita.org.br
"Paramapurusha é meu pai e Parama Prakriti é minha mãe. O universo é
meu lar e todos nós somos cidadãos deste cosmo. Este universo é a
imaginação da Mente Macrocósmica, e todas as entidades estão sendo
criadas, preservadas e destruídas nas fases de extroversão e
introversão do fluxo imaginativo cósmico. No âmbito pessoal, quando
uma pessoa imagina algo em sua mente, naquele momento, essa pessoa é a
única proprietária daquilo que ela imagina, e ninguém mais. Quando um
ser humano criado mentalmente caminha por um milharal também
imaginado, a pessoa imaginada não é a propriedade desse milharal, pois
ele pertence ao indivíduo que o está imaginando. Este universo foi
criado na imaginação de Brahma, a Entidade Suprema, por isso a
propriedade deste universo é de Brahma, e não dos microcosmos que
também foram criados pela imaginação de Brahma. Nenhuma propriedade
deste mundo, mutável ou imutável, pertence a um indivíduo em
particular; tudo é o patrimônio comum de todos."
Restante do texto em
http://cirandas.net/brauliobo/blog/a-problematica-de-hoje-em-dia
next prev parent reply other threads:[~2014-05-04 12:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-30 13:54 Does unicorn waits after_work to consider a worker ready? Bráulio Bhavamitra
2014-05-01 1:33 ` Eric Wong
2014-05-01 15:23 ` Bráulio Bhavamitra
2014-05-01 18:18 ` Eric Wong
2014-05-01 19:00 ` Bráulio Bhavamitra
2014-05-02 23:43 ` Eric Wong
2014-05-04 12:57 ` Bráulio Bhavamitra [this message]
2014-05-04 21:24 ` Bráulio Bhavamitra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://yhbt.net/unicorn/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJri6_sQRrnESq_kKbpayh1SfuCrAvWp08+PSoMFQzwnrxVzeA@mail.gmail.com \
--to=braulio@eita.org.br \
--cc=mongrel-unicorn@rubyforge.org \
--cc=normalperson@yhbt.net \
--cc=unicorn-public@bogomips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhbt.net/unicorn.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).