[sf-perl] Server downtime reporting and recovery
david wright- [白熊]
david_v_wright at yahoo.com
Wed Feb 25 10:04:29 PST 2009
> I was curious about how those of you who work with web aps deal with minimizing downtime ... checking the status of the various services on the server and
well, if that is your goal, you will need more than one server ;)
You need a load balancer (even a simple one) that handles incoming requests and sends them to your web servers based on availability. i.e. if a server is down, it won't get traffic :) Then as folks mentioned you can have Nagios running which will tell you the health of the servers (and can restart if necessary)
Here is a step-by-step guide:
--- On Tue, 2/24/09, Matt Barkovich <barko192 at gmail.com> wrote:
From: Matt Barkovich <barko192 at gmail.com>
Subject: [sf-perl] Server downtime reporting and recovery
To: "San Francisco Perl Mongers User Group" <sanfrancisco-pm at pm.org>
Date: Tuesday, February 24, 2009, 8:13 PM
I was curious about how those of you who work with web aps deal with
minimizing downtime when a particular service dies for whatever
reason. I'm not a sysadmin by training, rather it is a responsibility
that no one else seemed willing to take. Right now I have a perl
script that runs as a cron job every five minutes, checking the status
of the various services on the server and restarting and reporting if
anything is amiss.
I've been told that my production schedule needs to be pushed forward
and five minutes of downtime will soon be unacceptable. Since I've
got a .NET app running in mono (which has not been kind to me) I need
to catch problems as quickly as possible and restart the service.
Most frequently the mono app will just hang indefinitely, not crash
outright. With the new schedule I don't have time to fix (read
replace) the problematic app before I go live.
So my question, what do you folks recommend as far as checking the
status of services more frequently than every 5 minutes? Would you
recommend sticking with perl, or this there some FOSS that would
better serve my purposes? In my research, I've found programs like
Nagios, but don't know much about them. I'd prefer not to add too much
the way of overhead, but I also don't want to reinvent the wheel.
Sorry if this is a little off topic.
SanFrancisco-pm mailing list
SanFrancisco-pm at pm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SanFrancisco-pm