Forum: Ruby on Rails Cluster 3 mongrel servers residing in different machines (Wi

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1da1fa9da041606ca86bac35fb9e4dbe?d=identicon&s=25 santhu (Guest)
on 2007-01-29 16:44
(Received via mailing list)
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 :-( )

Best regards,
Santhu
66e6d8d31b394eb230896caafd79beb0?d=identicon&s=25 Darushin (Guest)
on 2007-01-29 16:58
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 :-( )
>
> 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.
This topic is locked and can not be replied to.