sni / mod_gearman

Distribute Naemon Host/Service Checks & Eventhandler with Gearman Queues. Host/Servicegroups affinity included.
http://www.mod-gearman.org
GNU General Public License v3.0
122 stars 42 forks source link

Is it possible to connect single worker to multiple German server #148

Closed ranjithkodumbu closed 5 years ago

ranjithkodumbu commented 5 years ago

Hi Team,

As far as I know, there is no option to use shared worker for multiple German server. For e. g. In Nagios if I need to connect Notification queue of multiple German servers using single worker will not work as we have only one option in woker.conf file to connect single German server. Please let me know how to achieve this scenario.

sni commented 5 years ago

you can specify multiple servers in your worker.cfg. However, this is not recommended. It is simpler and easier to keep separate instances separated. You don't save any resources and the resulting setup is just more complex. Btw, it's called "gearman" :-)

ranjithkodumbu commented 5 years ago

Hi Sni, Thanks a lot for the response. I do agree with you, but managing multiple notification worker is difficult than managing one worker with more resources. E.g. if we need to have multiple worker nodes, need to also manage OS, patching, license etc, that was the reason I asked this question.

ranjithkodumbu commented 5 years ago

That was typo :) it is gearman only.

sni commented 5 years ago

You can have as many workers on a machine as you like. Just use a different gearman server with a different port

On 18. Aug 2019, at 10:09, ranjithkodumbu notifications@github.com wrote:

Hi Sni, Thanks a lot for the response. I do agree with you, but managing multiple notification worker is difficult than managing one worker with more resources. E.g. if we need to have multiple worker nodes, need to also manage OS, patching, license etc, that was the reason I asked this question.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

ranjithkodumbu commented 5 years ago

Got it, need to run multiple worker process on a single server with unique worker.conf, where each worker.conf should contain unique gearman IP addresses with unique port. Thanks a lot.