C@eq4.andreas-s.net
2012-Apr-12 14:37 UTC
Rails 3.0, Windows, Apache, Thin > production stops working
Using the following guide I was able to get the newer version of rails (3.0.x) running on my Windows production server: http://everything-ruby.blogspot.com/2011/04/installing-windows-server-2008-ee-with_10.html Everything seems to be working and at first it seems faster than the old Mongrel cluster. I run 3 thin servers and I am using the ProxyPass directive to pipe requests into a loadbalancer cluster. It all seems to be running fine, except after a random time (usually days) all 3 thin servers stop responding, causing the apache server to throw a 503: service unavailable. When I go into the server, I see the Ruby.exe processes still running, but even navigating to http://localhost:4003 (and 4004 and 4005) does nothing and gives a timeout. Does anyone have an idea how to solve this issue? I am using: Ruby 1.8.7 Rails 3.0.10 Thin 1.3.1 Windows Server 2008 R2 -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Luis Lavena
2012-Apr-13 19:42 UTC
Re: Rails 3.0, Windows, Apache, Thin > production stops working
On Thursday, April 12, 2012 11:37:08 AM UTC-3, (unknown) wrote:> > Using the following guide I was able to get the newer version of rails > (3.0.x) running on my Windows production server: > > http://everything-ruby.blogspot.com/2011/04/installing-windows-server-2008-ee-with_10.html > > Everything seems to be working and at first it seems faster than the old > Mongrel cluster. > > I run 3 thin servers and I am using the ProxyPass directive to pipe > requests into a loadbalancer cluster. > > It all seems to be running fine, except after a random time (usually > days) all 3 thin servers stop responding, causing the apache server to > throw a 503: service unavailable. > > What DB are you using? MySQL? Do you have keep alive connections orattempt to reconnect? For long established connections I''ve encountered problems with MySQL and Ruby using mysql adapter. It required me set "reconnect: true" or specify some timeout mechanism to certain services (Redis for example). Is there a way you can obtain a log from one of those thin installation behind Apache? -- Luis Lavena -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/jVZY-f9z7CoJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.