monit-general
[Top][All Lists]
Advanced

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

Re: Seperate heartbeat frequency and service monitoring interval


From: Martin Konečný
Subject: Re: Seperate heartbeat frequency and service monitoring interval
Date: Thu, 18 Apr 2013 17:30:07 -0400

msgpack is much faster than json:

http://lvsl.github.io/2011/12/28/python-serialization-benchmark.html

Especially if numbers are involved, since in that case, the number is transmitted as a number (one or two bytes) instead of a string.


On Thu, Apr 18, 2013 at 4:56 PM, Martin Pala <address@hidden> wrote:
Hello,

we plan to switch to JSON and gzip transport in the future.

As a workaround you can modify Monit to send the heartbeat less frequently ... the (polltime) schedule is in heartbeat() in src/monit.c:
--8<--
                        wait.tv_sec = time(NULL) + Run.polltime;
--8<--

You can modify it to run once per hour this way:

--8<--
                        wait.tv_sec = time(NULL) + 3600;
--8<--

On M/Monit side just extend the "acceptable report skew" settings of the given host to allow for longer communication pause (cycles count based), otherwise M/Monit will fire the heartbeat event => if your poll time is 60 seconds, set the "acceptable report skew" (in host admin) to ca. 61 (i.e. wait for 61 cycles * 60 s before firing heartbeat event)

Regards,
Martin



On Apr 16, 2013, at 2:17 PM, "Holder, Shane" <address@hidden> wrote:

Hello All,
 
Is it possible to have a separate heartbeat frequency and service monitoring interval?  I have a low bandwidth situation and need to reduce the frequency of updates from Monit to MMonit.  This interaction is using roughly 5K per minute to transmit the XML payload.  I would like to reduce this to once or twice an hour but I need to keep the 60 second response to a service outage.  Also, are there any tips on reducing the size of the payload, JSON perhaps?
 
Thanks,
 
Shane Holder  |  address@hidden
Solutions Architect |  AmerisourceBergen Specialty Group
3101 Gaylord Parkway, 2W-E131  |  Frisco, TX 75034
 

CONFIDENTIALITY NOTICE. This electronic mail transmission may contain privileged, confidential and/or protected health information and is intended only for the review of the party to whom it is addressed.  Any unauthorized use or disclosure of the information contained herein may be a violation of federal law, including the Health Insurance Portability and Accountability Act (HIPAA). If you have received this transmission in error, please immediately return it to the sender, delete it  and destroy it without reading it. Unintended transmission shall not constitute the waiver of the attorney-client or any other privilege.


 

--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general


--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general



--
Open source radio in the cloud. Get yours now! ---> http://airtime.pro

Martin Konecny
Software Developer, Sourcefabric
address@hidden

720 Bathurst St. Suite 203
M5S 2R4, Toronto, ON, Canada
+1 (416) 892-8420
Skype: martin.konecny15

http://www.sourcefabric.org
http://www.twitter.com/Sourcefabric

reply via email to

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