increasing nagios performance with ram fs

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

increasing nagios performance with ram fs

Postby eltrasimaco » Thu Feb 16, 2017 6:07 am

Hi, I read somewhere that, to increase nagios performance, the status.dat and some other files should be located in ramdisk.
Centos and RHEL have the /run directory running in ram
Is it advisable to move those files into /run ? Or should I make a custom one? and why?
Thanks in advance
eltrasimaco
 
Posts: 24
Joined: Thu Aug 02, 2012 7:15 am

Re: increasing nagios performance with ram fs

Postby rkennedy » Thu Feb 16, 2017 10:31 am

It's hard to say what files / paths are in use since you're using Nagios Core, but we generally create it's own place for the ram disk to go on XI. The same framework of these instructions should work, but you'll need to adjust paths based on your setup.

https://assets.nagios.com/downloads/nag ... giosXI.pdf

The ram disk is really nice as it'll allow faster reading / writing for a lot of the temp files Nagios depends on. I would set up it's own custom ramdisk for the sake of isolation.
rkennedy
 
Posts: 6503
Joined: Mon Oct 05, 2015 11:45 am

Re: increasing nagios performance with ram fs

Postby eltrasimaco » Fri Feb 17, 2017 2:04 am

Thanks loads; we shutdown the nagios server each two or three days, so, if we put status.dat and other files in ramdisk (caches and other) , they will disappear in each reboot; does this affect anything?
eltrasimaco
 
Posts: 24
Joined: Thu Aug 02, 2012 7:15 am

Re: increasing nagios performance with ram fs

Postby tmcdonald » Fri Feb 17, 2017 3:09 pm

You'll want to copy those to disk before the shutdown and restore them back to the RAM disk upon reboot. Otherwise you will end up with your checks in a "pending" state each time and lose acknowledgements, comments, etc. (stored in retention.dat). Not the end of the world, but probably something to avoid.
Want to see me get thrown into a box? https://www.youtube.com/watch?v=pGSlqxIMxQM
User avatar
tmcdonald
Support Manager
 
Posts: 7925
Joined: Mon Sep 23, 2013 8:40 am

Re: increasing nagios performance with ram fs

Postby erilane » Fri Feb 17, 2017 8:57 pm

When I experimented with this, I saw no performance boost

My theory was that linux disk cache has everything in memory already anyway

Has anyone actually measured a performance boost from this?
erilane
 
Posts: 5
Joined: Fri Feb 17, 2017 8:28 pm

Re: increasing nagios performance with ram fs

Postby avandemore » Mon Feb 20, 2017 12:17 pm

It is very unlikely that would result in a performance boost. Those files are already going to be in the FS cache. What performance problem are you trying to solve?
User avatar
avandemore
Support Tech
 
Posts: 1036
Joined: Tue Sep 27, 2016 4:57 pm
Location: Nagios Enterprises

Re: increasing nagios performance with ram fs

Postby eltrasimaco » Mon Feb 20, 2017 4:21 pm

Nonetheless, the nagios doc (i read the same one rkennedy stated three posts above) says, along with some other things:

"Making use of local RAM disks can cause huge performance improvements on larger systems"

The system I'm thinking is about 6k services, single VM server.
eltrasimaco
 
Posts: 24
Joined: Thu Aug 02, 2012 7:15 am

Re: increasing nagios performance with ram fs

Postby avandemore » Mon Feb 20, 2017 4:39 pm

All services are different and a lot depends on what your VM is spec'd at as well but in general that is not a "large install". In that document most likely only /usr/local/nagios/var/spool is going to have much effect on IO performance, but you can try it and let us know. Also keep in mind, a RAMDisk does no good if your VM is under memory pressure.
User avatar
avandemore
Support Tech
 
Posts: 1036
Joined: Tue Sep 27, 2016 4:57 pm
Location: Nagios Enterprises

Re: increasing nagios performance with ram fs

Postby eltrasimaco » Tue Feb 21, 2017 3:36 am

Thanks everybody, I'll give it a try soon.
eltrasimaco
 
Posts: 24
Joined: Thu Aug 02, 2012 7:15 am

Re: increasing nagios performance with ram fs

Postby dwhitfield » Tue Feb 21, 2017 1:48 pm

Please let us know how it goes.

I also know that there are performance improvements coming in Core, but I'm not sure if that's 4.4 or 5. The roadmap hasn't been updated since the release of 4.3 earlier today: https://www.nagios.com/roadmaps/ -- I didn't see anything performance related at https://github.com/NagiosEnterprises/na ... /Changelog but there are some bug fixes.
https://support.nagios.com/forum/viewtopic.php?f=6&t=1274 says XI at the top, but it more-or-less applies to everything.
User avatar
dwhitfield
Support Tech
 
Posts: 1809
Joined: Wed Sep 21, 2016 10:29 am
Location: Nagios Enterprises, LLC


Return to Nagios Core

Who is online

Users browsing this forum: Petr M. and 15 guests