Cluster 3 mongrel servers residing in different machines (Wi


#1

Hi All,

Machine A: has Apache 2.2 doing load balancing, also has DB and 8
mongrel processes I’m using mongrel_cluster . Now, I want to run
Mongrels on Machine’s B and C (ie Cluster 3 Mongrels in three
different machines). Is this possible? If possible then, please
describe me the steps required (I’m using windows machines, and
already losdt one week :frowning: )

Best regards,
Santhu


#2

santhu wrote:

Hi All,

Machine A: has Apache 2.2 doing load balancing, also has DB and 8
mongrel processes I’m using mongrel_cluster . Now, I want to run
Mongrels on Machine’s B and C (ie Cluster 3 Mongrels in three
different machines). Is this possible? If possible then, please
describe me the steps required (I’m using windows machines, and
already losdt one week :frowning: )

Best regards,
Santhu

I am not sure how you have your setup. However doing multi machine
clusters with mongrel clusters usually means putting your rails app on
each machine and starting the cluster. Next you will need to add entries
to your apache config section where you are doing your load balancing
to include the extra machines (remember your weights need to total 1.0
or 100%). On the app side if you are using sessions then you need to
ensure they are stored in a central location (such as a DB using AR)or
else your sessions will be disjoint and your site will not function
right. For more info on the multi-machine cluster check the mongrel page
and i think they have links to cluster with Apache httpd.conf examples
for multi-machine. Also You can find 100’s of guides on how to switch
your session storage with a simple Google search or by checking the
Rails Site.

Ben

P.S. I am doing this from memory, so I may be a little off.