Page 1 of 1

Nagios XI and Mod Gearman Load Balancing

Posted: Fri Dec 12, 2014 2:27 pm
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

Re: Nagios XI and Mod Gearman Load Balancing

Posted: Fri Dec 12, 2014 4:37 pm
by abrist
Is the remote worker running any checks?
Is the main XI server experiencing high load at the moment?

Re: Nagios XI and Mod Gearman Load Balancing

Posted: Fri Dec 12, 2014 4:42 pm
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.

Re: Nagios XI and Mod Gearman Load Balancing

Posted: Tue Dec 16, 2014 10:11 am
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!

Re: Nagios XI and Mod Gearman Load Balancing

Posted: Tue Dec 16, 2014 4:51 pm
by lmiltchev
brdr,
Is it safe to lock this topic?

Re: Nagios XI and Mod Gearman Load Balancing

Posted: Wed Dec 17, 2014 1:09 pm
by brdr
sure!