Nagios XI and Mod Gearman Load Balancing

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Nagios XI and Mod Gearman Load Balancing

Post by brdr »

Hello,

We use Nagios XI 2014R2.0 and Mod Gearman 1.5.

We see an issue when we configure two gearman workers, 1 local and 1 remote. The worker configuration files are exactly the same. No host or service groups are enabled. The gearmand (neb) conf is untouched. We would expect that gearman distributes the load between the 2 workers evenly. This is not the case. The local worker is getting almost ALL of the Nagios checks.

I understand that distributing the load is available but any help in understanding why load balancing is not working would really help?


Thanks
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios XI and Mod Gearman Load Balancing

Post by abrist »

Is the remote worker running any checks?
Is the main XI server experiencing high load at the moment?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios XI and Mod Gearman Load Balancing

Post by sreinhardt »

I do not believe there is any way other than host or service groups to direct what checks should go to what worker. As far as I know, gearman does not allow much if any manipulation of that, and does it based off a variety of things such as remote system load, connection overhead, running checks on that worker, etc to determine what system gets your checks. Often time, due to connection overhead, gearman does seem to side with the local machine. I would suggest working towards logical groupings of devices or check types, and have certain workers do certain checks or certain machines. I don't know of another alternative at this time.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Re: Nagios XI and Mod Gearman Load Balancing

Post by brdr »

For abrist...
- Yes, the remote worker ran checks, albeit a very small amount compared to the local worker
- Yes, XI server was under high load

For sreinhardt...
I will follow your guidelines using local groupings.

Thanks guys!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI and Mod Gearman Load Balancing

Post by lmiltchev »

brdr,
Is it safe to lock this topic?
Be sure to check out our Knowledgebase for helpful articles and solutions!
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Re: Nagios XI and Mod Gearman Load Balancing

Post by brdr »

sure!
Locked