Page 1 of 1

[Mod Gearman Worker] How many hosts can it handle?

Posted: Wed Mar 11, 2015 3:28 am
by litsupport.box
Hello,

I have a mod gearman worker running on Cent OS 6.5, with the following specs: 2GB RAM, 2 CPU's, 20GB HDD, Virtual. I'm pretty new to Nagios so i'm not sure how many hosts/services 1 worker can handle when deployed.

In my testing environment (which is not ready yet) I've installed workers to do all the checks, but i haven't experienced any performance issues yet because it's only got 10 hosts to check at the moment.

Our Nagios XI instance was showing some performance issues so i want to deploy one or more workers (temporarily) to take over some work in our production environment. Were also noticing some false positives so we want to see if the workers fix this.

Please advise :)

Kind regards,

Farid

Re: [Mod Gearman Worker] How many hosts can it handle?

Posted: Wed Mar 11, 2015 9:26 am
by jolson
Like too many things in IT, this depends on a high number of variables - the checks in question, the hardware in question, network latency, etc. I found the following excerpt from the Mod Gearman page: https://labs.consol.de/nagios/mod-gearman/#_performance
I used a sample Nagios installation with 20.000 Services at a 1 minute interval and a sample plugin which returns just a single line of output. I got over 300 Servicechecks per second, which means you could easily setup 100.000 services at a 5 minute interval with a single Nagios box. The amount of worker boxes depends on your check types.
The following page contains Mod Gearman benchmarks that may be of interest to you: http://labs.consol.de/blog/nagios/monit ... enchmarks/

So the question is the amount of checks Mod Gearman can handle - according to the above sources, up to 600,000 checks every 5 minutes per Nagios instance.

Re: [Mod Gearman Worker] How many hosts can it handle?

Posted: Thu Mar 12, 2015 2:43 am
by litsupport.box
Thank you this answers my question. Topic can close.

Re: [Mod Gearman Worker] How many hosts can it handle?

Posted: Thu Mar 12, 2015 3:23 am
by rajasegar
litsupport.box wrote:Thank you this answers my question. Topic can close.
If you have lots of perl based checks, you will get nowhere near that figure.

I am having 1765 hosts with 13658 services on a 12 Virtual CPU and 12Gb Ram and it is just about max it can handle.
It is using 2 x Xeon CPU with 16 core at 2.9Ghz VMHost and running 10 RAID internal disk. DB is offloaded.
Almost all checks is at 5 minute interval.

Re: [Mod Gearman Worker] How many hosts can it handle?

Posted: Thu Mar 12, 2015 3:53 am
by litsupport.box
rajasegar wrote:
litsupport.box wrote:Thank you this answers my question. Topic can close.
If you have lots of perl based checks, you will get nowhere near that figure.

I am having 1765 hosts with 13658 services on a 12 Virtual CPU and 12Gb Ram and it is just about max it can handle.
It is using 2 x Xeon CPU with 16 core at 2.9Ghz VMHost and running 10 RAID internal disk. DB is offloaded.
Almost all checks is at 5 minute interval.
Yes i figured.

Re: [Mod Gearman Worker] How many hosts can it handle?

Posted: Thu Mar 12, 2015 9:13 am
by tmcdonald
Again, variables :)

If you're satisfied with your answer I will close up the thread now.

Re: [Mod Gearman Worker] How many hosts can it handle?

Posted: Thu Mar 12, 2015 9:15 am
by jolson
Closing this thread - please open another one if you have additional questions. Thanks very much!