On 8/23/06, Jon Gretar Borgthorsson
<jon.borgthorsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> I''m just wondering. How do people here calculate how many mongrel
> processes they put up on a server? Do people average it at 1 process
> per 128mb ram or what?
Straight from the source...
On 8/23/06, Zed Shaw <zedshaw-dd7LMGGEL7NBDgjK7y7TUQ@public.gmane.org>
wrote:> The best way to find your "utilization sweet spot" is to do
something
> like the following:
>
> 1) Write a simple rails app with a test controller that just returns the
> word "test" with render text. This is the fastest little rails
action
> you could have, so make sure your configuration is tight an this is the
> fastest. Do this with just one mongrel and measure it using ab or
> httperf.
> 2) Once you have a single mongrel running well, proceed to add mongrels
> and retest (make sure you increase the concurrency too) until adding
> mongrels doesn''t improve performance of this fastest action.
> 3) This is probably your sweet spot, now just run these tests on the
> various actions you have in your real app and see how everything works
> for ram and cpu usage.
>
> After that you''ll have to get into different configs, tuning your
OS,
> etc. but at least you''ll have found a good start.
>
> Also, retest this same scenario when new versions of rails come out or
> you deploy a new version of your app. Every time the conditions of your
> last test change you need to re-run them. It''s just like unit
testing,
> you gotta keep doing it or it''s pointless.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---