I found that both of my Rails sites went down tonight without my knowledge, and I was getting 502 errors when I tried to visit these sites. Both are hosted by the same company. Fortunately, I was able to get the sites back up and running simply by restarting them. Are there any services out there that I can use to automatically monitor my sites and send me an email and/or text message if my sites go down? Additionally, would it be a good idea to set the cron jobs on my sites to automatically restart the sites on a regular basis? If so, how often should my sites be restarted? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/cbb99df0-511c-43a3-8bfe-5c504dc9c0a3%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
On Mon, Sep 9, 2013 at 9:35 PM, Jason Hsu, Rubyist <jhsu802701-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Are there any services out there that I can use to automatically monitor my > sites and send me an email and/or text message if my sites go down?There are literally thousands, Google is your best bet for this solution.> Additionally, would it be a good idea to set the cron jobs on my sites to > automatically restart the sites on a regular basis? If so, how often should > my sites be restarted?No, that would be a horrible idea... first you need o figure out why the it went down and correct it, then you should look into something like God (not so Godly ironically) or monit or anything of the sorts that will hearbeat your site and kick it back on if it falls down. You should probably be tracking errors with something like honeybadger or airbrake so you can see this kind of shit coming. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnzPtAVhX_yWOZ%2BGZFDQ1pnoJ4P-kXuXDqTh9V0FnSSMtA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Thanks, Jordon. The best web site monitoring solution I found is through Google Docs. For more on this solution, go to: http://www.labnol.org/internet/website-uptime-monitor/21060/ -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d6863f2d-1cbc-48fb-9d83-ad46e0f5d9b3%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
On Sep 9, 2013, at 9:35 PM, "Jason Hsu, Rubyist" <jhsu802701-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I found that both of my Rails sites went down tonight without my knowledge, and I was getting 502 errors when I tried to visit these sites. Both are hosted by the same company. Fortunately, I was able to get the sites back up and running simply by restarting them. > > Are there any services out there that I can use to automatically monitor my sites and send me an email and/or text message if my sites go down?New Relic, Datadog, Pingdom, and lots of others have arisen recently. Additionally, you should think about having your own health check responder(s).> Additionally, would it be a good idea to set the cron jobs on my sites to automatically restart the sites on a regular basis? If so, how often should my sites be restarted?It often depends on why your sites went down. It also depends on what sort of infrastructure you have for your application. Some server setups can manage this if a single server processor (such as a unicorn worker) goes down or hangs, but if the whole thing goes belly up then you may have something quite a bit more catastrophic. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/D21489B7-4F9C-4C5B-8474-D69F12CC5F22%40gmail.com. For more options, visit https://groups.google.com/groups/opt_out.