NDOutils and Nagios startup speed
Thomas Guyot-Sionnest
dermoth at aei.ca
Thu Jan 29 05:27:46 CET 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 28/01/09 08:05 PM, Mathieu Gagné wrote:
> Hi,
>
> Marc Powell wrote:
>>> Is there a way to speed things up? Any help would be appreciated.
>>> Thanks.
>> I'm interested in tips as well.
>>
>
> One way to speed up Nagios start when using NDOutils is to tweak
> "event_broker_options".
>
> Here is my new configuration, based on constants defined in
> include/broker.h:
>
> # BROKER_EVERYTHING 1048575
> # -BROKER_TIMED_EVENTS 2
> # -BROKER_SERVICE_CHECKS 4
> # -BROKER_HOST_CHECKS 8
>
> event_broker_options=1048561
>
> I personally don't care about raw host/service check results and
> internal scheduling. It's already available in nagios.log and don't need
> to access such data remotely. Also host/service status are already
> available in nagios_hoststatus and nagios_servicestatus.
>
> There's probably more to disable.
Not sure if it works already, but IMHO a good solution would be to
prepare the new database in a similar way to the precache file.
I guess it could work like this (I only have partial understanding of
the NdoDB architecture):
1. You run the precache option - an event broker (could be NDODB itself)
prepare the DB for the next run by communicating the information to the
remote end (**),
2. When you load using the precache file it sends an instruction to use
the prepared database data.
(**) Not sure which is the best way here... If preparing a SQL dump file
and loading it at once (with as many options as possible like locking,
no foreign keys extended inserts, etc) goes fast this could be the way.
Another options could be updating the DB live (data insert for deleted
objects will fail, while new objects will just wait for data to come in...
Finally it could be possible to just prepare new tables, and then
replace them all at once.
- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFJgTBC6dZ+Kt5BchYRAjcRAJwOxtigBMRPxilPEFU+rDxdWls1IgCg/Xd0
/vxXmPWdElCcYoy8sZACo7E=
=j7iQ
-----END PGP SIGNATURE-----
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list