Hi all, does anybody know of a tutorial that gives advice about the best way to run multiple rails applications on a cluster of physical servers with a load-balancer sitting on top. At the moment I am running pound on a server that acts as a load-balancer and routes traffic to one of three backend servers all runnning mongrel clusters. Unfortunately although I have sessions stored in a database I am having problems with maintaining sessions between the backend servers. Therefore any advice, links to tutorials etc would be appreciated. Thanks Anthony --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 03 Oct 2007, at 11:22, Ant wrote:> does anybody know of a tutorial that gives advice about the best way > to run multiple rails applications on a cluster of physical servers > with a load-balancer sitting on top. At the moment I am running pound > on a server that acts as a load-balancer and routes traffic to one of > three backend servers all runnning mongrel clusters. Unfortunately > although I have sessions stored in a database I am having problems > with maintaining sessions between the backend servers. Therefore any > advice, links to tutorials etc would be appreciated.Check out my forum post at http://forums.rimuhosting.com/forums/ showthread.php?t=389 Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi Peter Thanks for the reply. I have pound running already. Do you think that having the "X-Forwarded-For" may cause problems with sessions? Because apart from the sessions thing, it''s working. best wishes, Anthony On 3 Oct, 10:35, Peter De Berdt <peter.de.be...-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> wrote:> On 03 Oct 2007, at 11:22, Ant wrote: > > > does anybody know of a tutorial that gives advice about the best way > > to run multiple rails applications on a cluster of physical servers > > with a load-balancer sitting on top. At the moment I am running pound > > on a server that acts as a load-balancer and routes traffic to one of > > three backend servers all runnning mongrel clusters. Unfortunately > > although I have sessions stored in a database I am having problems > > with maintaining sessions between the backend servers. Therefore any > > advice, links to tutorials etc would be appreciated. > > Check out my forum post athttp://forums.rimuhosting.com/forums/ > showthread.php?t=389 > > Best regards > > Peter De Berdt--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi Peter, I finally tracked down the problem. It was simply that the backend server times weren''t in sync despite being configured to use ntp (network time protocol). They were over an hour apart. So I''m guessing that the default session expiry time is less than an hour. Until now I was having to use a ''sticky'' cookie within my pound configuration such that my application cookie name matched that in the pound configuration and meant that all requests from the same client got re- directed to the same backend server. However now that the times are OK, this is not necessary and I can now see that requests from the same client go to different backend servers depending on the load and sessions are maintained. So if anybody would like to know how to set up multiple backend servers behind pound for load balancing with mongrel clusters on each of the backend servers, please contact me. Thanks Anthony On Oct 3, 11:11 am, Ant <email2a...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi Peter > > Thanks for the reply. I have pound running already. Do you think that > having the "X-Forwarded-For" may cause problems with sessions? Because > apart from the sessions thing, it''s working. > > best wishes, > Anthony > > On 3 Oct, 10:35, Peter De Berdt <peter.de.be...-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> wrote: > > > On 03 Oct 2007, at 11:22, Ant wrote: > > > > does anybody know of a tutorial that gives advice about the best way > > > to run multiple rails applications on a cluster of physical servers > > > with a load-balancer sitting on top. At the moment I am running pound > > > on a server that acts as a load-balancer and routes traffic to one of > > > three backend servers all runnning mongrel clusters. Unfortunately > > > although I have sessions stored in a database I am having problems > > > with maintaining sessions between the backend servers. Therefore any > > > advice, links to tutorials etc would be appreciated. > > > Check out my forum post athttp://forums.rimuhosting.com/forums/ > > showthread.php?t=389 > > > Best regards > > > Peter De Berdt--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---