What methods do people use to notify users of upcoming downtime in an application, and for handling requests nicely while scheduled downtime is occurring? My Google-fu is not yielding me anything useful-looking. -- 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.
On 28 Jun 2010, at 18:55, Michael Pavling wrote:> What methods do people use to notify users of upcoming downtime in an > application, and for handling requests nicely while scheduled downtime > is occurring? My Google-fu is not yielding me anything useful-looking.Depends, the easiest way is to use capistrano: http://www.google.be/search?q=capistrano+maintenance+page It will put a maintenance page in the public folder for the time that your app is offline. There''s other ways to do it, like handling it in Apache itself if you''re using Mongrel cluster, like checking if the mongrels are up and if they''re not, serve a custom error page. 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-/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.
On 28 Jun 2010, at 19:03, Peter De Berdt wrote:>> What methods do people use to notify users of upcoming downtime in an >> application, and for handling requests nicely while scheduled >> downtime >> is occurring? My Google-fu is not yielding me anything useful- >> looking. > > Depends, the easiest way is to use capistrano: http://www.google.be/search?q=capistrano+maintenance+page > > It will put a maintenance page in the public folder for the time > that your app is offline. > > There''s other ways to do it, like handling it in Apache itself if > you''re using Mongrel cluster, like checking if the mongrels are up > and if they''re not, serve a custom error page.And concerning the notification, it''s all up to what you personally prefer tbh. One way to go about it is create a Downtime model and with a start and end time, put a before_filter in application_controller.rb that fetches all those > Time.now, then show them by rendering a partial into every view if the number of records is higher than one. 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-/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.
On Mon, Jun 28, 2010 at 9:55 AM, Michael Pavling <pavling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> What methods do people use to notify users of upcoming downtime in an > application,We use comatose to manually post a very visible notice about any scheduled maintenance...> and for handling requests nicely while scheduled downtime > is occurring?... though we have 2 load-balanced servers, so generally we can get away with updating stuff invisibly :-) -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- 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.
On 28 June 2010 18:19, Peter De Berdt <peter.de.berdt-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> wrote:> And concerning the notification, it''s all up to what you personally prefer > tbh. One way to go about it is create a Downtime model and with a start and > end time, put a before_filter in application_controller.rb that fetches all > those > Time.now, then show them by rendering a partial into every view if > the number of records is higher than one.I was contemplating methods of easily having a pop-up or banner to say "the site is going down in ten minutes". That sounds like a nice reusable one. -- 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.