On Jan 22, 2008 7:46 AM, John Almberg <[EMAIL PROTECTED]> wrote:
> I am running a number of Rails apps on a quite powerful server (dual
> quad-core xeons, 8G ram, raid 10) running FreeBSD. I'm using a fairly
> simple software stack: Apache22, mod_proxy, and a single mongrel
> instance for each website. Apache is serving all static content.
.
.
.
> The websites are extremely fast-loading, apparently very stable
> (nothing has failed in the month or so since I've switched over from
> a FastCGI setup), and I love the simplicity.

I concur.

> My question: This was supposed to be a first step towards using a
> mongrel cluster, but the single mongrel instance seems to work
> perfectly fine. Can I keep using it, as long as the loads stay at
> modest levels? I don't want to move to a more complex set up just
> because it would be cool or fun to do. If a single instance will do
> the job, then simple is better, IMHO.

You can absolutely keep running things that way.  I've ran the same
sort of sites for years, and the vast majority of them have been done
is exactly that way.  It works just fine, and IMHO, more people should
be deploying Rails apps in that sort of simple manner.

> Am I running any risks with this set up? The one I can think of is
> there is no redundancy: if that single mongrel instance fails, the
> site is down. Has anyone tried monitoring the single instance, and
> restarting it if it fails? Is there anything else I should be
> worrying about?

That's about it.  My sites aren't Rails sites, but having a site down
because of an instance failing just isn't something that happens
unless one has a bug in one's code, in my experience.  To be perfectly
safe, just use monit or something similar to keep an eye on your
processes, as you mentioned.  Depending on your code, you should be
about to handle quite a bit of traffic on each site without having to
worry about switching them to a clustered configuration.


Kirk Haines
_______________________________________________
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users

Reply via email to