santhu
2007-Jan-29 15:44 UTC
Cluster 3 mongrel servers residing in different machines (Windows)
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 --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
Darushin
2007-Jan-29 15:58 UTC
Re: Cluster 3 mongrel servers residing in different machines
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, > SanthuI 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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
santhu
2007-Jan-29 16:01 UTC
Cluster 3 mongrel servers residing in different machines (Windows)
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 --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
Bill Walton
2007-Jan-29 16:09 UTC
Re: Cluster 3 mongrel servers residing in different machines (Windows)
Hi Santhu, You might want to signup for the Rails-deploy group on google. It''s a new group formed to address just this kind of question. hth, Bill --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
Fredrik
2007-Jan-29 16:40 UTC
Re: Cluster 3 mongrel servers residing in different machines (Windows)
Hi Santhu, I think what Darushin explained would be the most common setup. Quick search turned this up: http://blog.innerewut.de/articles/2006/04/21/scaling-rails-with- apache-2-2-mod_proxy_balancer-and-mongrel We have a hw load balancer and are load balancing apache processes and will soon load balance all the monrels using this too. Outside request -> LB -> [Apache 1, Apache 2, etc] -> LB -> [Machine 1 Mongrel 1, Machine 2 Mongrel 1, etc]. Fredrik On Jan 29, 10:09 am, "Bill Walton" <bill.wal...-xwVYE8SWAR3R7s880joybQ@public.gmane.org> wrote:> Hi Santhu, > > You might want to signup for the Rails-deploy group on google. It''s a new > group formed to address just this kind of question. > > hth, > Bill--~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
santhu
2007-Jan-29 16:47 UTC
Re: Cluster 3 mongrel servers residing in different machines (Windows)
Hi Darushin/Bill , First of all thanks for the valuble information. I''m looking for some explicit steps required to set up a distributed "mongrel cluster [I mean a multi machine set up]" (I''m not not using capastrino :-( for the time being) . Please help me Best regards, Santhu On Jan 29, 9:09 pm, "Bill Walton" <bill.wal...-xwVYE8SWAR3R7s880joybQ@public.gmane.org> wrote:> Hi Santhu, > > You might want to signup for the Rails-deploy group on google. It''s a new > group formed to address just this kind of question. > > hth, > Bill--~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
Bill Walton
2007-Jan-29 17:06 UTC
Re: Cluster 3 mongrel servers residing in different machines (Windows)
Hi Santhu, I''m replying just so you don''t think I''m ignoring you. There are folks here on this list, like Darushin, who can help. It''s way over my head, though. If you don''t find the help you need here, the experts are at rails-deploy. Best regards, and good luck, Bill --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
santhu
2007-Jan-29 17:37 UTC
Re: Cluster 3 mongrel servers residing in different machines (Windows)
Hi Fredrik, Thanks for the great help, it started working for me. Now its too late here, will continue tommorrow. Looking forward for more help...... best regards, Santhosh .TR On Jan 29, 9:40 pm, "Fredrik" <fredrik.thures...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi Santhu, > > I think what Darushin explained would be the most common setup. > > Quick search turned this up:http://blog.innerewut.de/articles/2006/04/21/scaling-rails-with- > apache-2-2-mod_proxy_balancer-and-mongrel > > We have a hw load balancer and are load balancing apache processes and > will soon load balance all the monrels using this too. Outside request > -> LB -> [Apache 1, Apache 2, etc] -> LB -> [Machine 1 Mongrel 1, > Machine 2 Mongrel 1, etc]. > > Fredrik > > On Jan 29, 10:09 am, "Bill Walton" <bill.wal...-xwVYE8SWAR3R7s880joybQ@public.gmane.org> wrote: > > > > > Hi Santhu, > > > You might want to signup for the Rails-deploy group on google. It''s a new > > group formed to address just this kind of question. > > > hth, > > Bill- Hide quoted text -- Show quoted text ---~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
Darushin
2007-Jan-29 18:26 UTC
Re: Cluster 3 mongrel servers residing in different machines
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, > Santhuhttp://mongrel.rubyforge.org/docs/apache.html I think that guide should help you get your hardware going. If you have issues post them and we will see what we can do. Ben -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---