Multiple Mongrel Clusters with separate VHosts

I am trying to get my head around this, and I think the shared hosting
providers do something like this:

I want to run 3 separate rails apps (app1,app2,app3 =
mephisto,rforum,custom) with the following setup:

(a) Apache [vhost1, vhost2, vhost3]

(b) each vhost points to mongrel-cluster1, mongrel-cluster2,
mongrel-cluster3 (3 mongrels each)

© each mongrel cluster in turn points to app1, app2, app3

NOTE: each vhost can point to potentially a separate subdoamin. I own
the box, and can configure it as needed (dedicated box).

Here is a quick n cheezy diagram I tried to do:

all of the tiers (web/mongrel+app/db) are on the same box, with
possiblity of scaling the DB off onto its own box if needed.

Can someone point me to some information in this regard, or point out
the folly of my ways?

I am looking for whether or not it is possible to do, a quick synopsis
of how I might be able to accomplish this (or a kindly pointer to a
howto?)

Thanks so much,

Amr

On Aug 23, 2006, at 4:30 PM, Amr M. wrote:

mongrel-cluster3 (3 mongrels each)
possiblity of scaling the DB off onto its own box if needed.

Can someone point me to some information in this regard, or point out
the folly of my ways?

I am looking for whether or not it is possible to do, a quick synopsis
of how I might be able to accomplish this (or a kindly pointer to a
howto?)

This is completely doable, and you’ve described exactly how to do it.

If you Google for Apache, mod_proxy_balancer, mongrel you’ll get all
the help you need.

Tom M. wrote:

On Aug 23, 2006, at 4:30 PM, Amr M. wrote:

mongrel-cluster3 (3 mongrels each)
possiblity of scaling the DB off onto its own box if needed.

Can someone point me to some information in this regard, or point out
the folly of my ways?

I am looking for whether or not it is possible to do, a quick synopsis
of how I might be able to accomplish this (or a kindly pointer to a
howto?)

This is completely doable, and you’ve described exactly how to do it.

If you Google for Apache, mod_proxy_balancer, mongrel you’ll get all
the help you need.

heh… that was easy! Thanks Tom! :slight_smile: