Deploy Hermes in multi node environment using tomcat

24 views
Skip to first unread message

jagvandan nayak

unread,
Jul 17, 2017, 10:41:24 AM7/17/17
to Hermes 2+ Community Forum
Hello everyone

I have deployed hermes gateway in tomcat server and i have total 4 node , balanced by a load balancer (LB)

When i  hit LB. to send a message then LB send that request to any one node as configured,.  but the problem is same message  triggered by all or more then one node
to receiver gateway, as result same request is being sent to recevier by every node.

Is ther any listener or trigger that we need to disabale to fix this issue

Please help to fix this. 

kenne...@cecid.org

unread,
Jul 19, 2017, 10:27:54 PM7/19/17
to Hermes 2+ Community Forum
Hello Jagvandan,

At this moment, Hermes does not support multi-node deployment. The problem is Hermes processes incoming messages in two steps: (1) it saves the message to database; and (2) it uses a thread to poll the database, and pick that message up and process it.

So when the load balancer forwards an incoming message to one of the Hermes nodes, that Hermes node performs step 1 without problem. Then *all* Hermes nodes would have polled that message from database and try to process it.

It would be a pending features to be implemented in our future release.

Thanks for your inquiry which will help Hermes to be better!

Best Rgds,
Kenneth

Reply all
Reply to author
Forward
0 new messages