[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Handling load of servers during backups

From: Martin Pala
Subject: Re: Handling load of servers during backups
Date: Mon, 7 Nov 2011 16:02:03 +0100


there are two ways:

1.) you can suppress the monitoring of the service which generates the system 
load alerts using the cron syntax like this:

check system mymachine
    not every "0-1 * * * *"
    if cpu usage > 80% then alert

- the cron syntax support for the "not every" statement requires monit 5.3 or 
- the above example skips the system check every day from 0:00 to 1:59 for the 
service entry "mymachine" … the other check will be performed normally => you 
can suppress the monitoring on per-service basis

2.) or you can disable/enable the monitoring of that service when the backup 
starts using monit CLI => put the following to the backup script when the 
backup starts:
   /usr/bin/monit unmonitor mymachine

and this when the backup is finished:
   /usr/bin/monit monitor mymachine

- this solution works with all monit versions

Best regards,

On Nov 7, 2011, at 3:26 PM, Edke wrote:

> Hello everyone.
> I just configured our network to be monitored by Monit and M/Monit and
> it is an awesome tool to maintain servers. And I'm ready to buy
> M/Monit licence in next few days to keep my M/Monit web app and
> somehow support further development.
> My question is about handling load properly. We do backup our servers
> during their most idle periods (during night). We do backup with use
> of rsync and rsnapshot and of course pg_dump and mysqldump. During
> backup-ing every server is at heavy load, much higher above limits
> that were set to monitor general server conditions.
> I would really love to somehow configure Monit to handle this
> backup-ing without rising limits of system resources and without
> waking up with 60-100 emails about limits reached every morning in
> mailbox :)
> I'm pretty sure, that someone solved this issue in some elegant way in
> Monit. Few things came to my mind, but just don't how to achieve this
> in Monit config:
> - make some sort of time exceptions on those system resource
> Monitoring rules during backup-ing
> - same as above but not exception based on time but rather based on
> running process (backup/rsnapshot etc.)
> Any info pointing me in a right direction is more then welcome, thank you.
> -- 
> s pozdravom do zatvy Edke
> E-mail & gtalk: address@hidden
> --
> To unsubscribe:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]