nextgenhealthcare / connect

The swiss army knife of healthcare integration.
Other
914 stars 275 forks source link

[BUG] When deploying changes to Mirth Connect installations on two different servers behind a load balancer, the deployment only apply to one server, even though both connect to the same database. #6106

Closed mvndr closed 7 months ago

mvndr commented 7 months ago

Describe the bug

When deploying changes to Mirth Connect installations on two different servers behind a load balancer, the deployment only apply to one server, even though both connect to the same database.

To Reproduce

Expected behavior Both Mirth Connect instances should reflect and implement the deployed changes simultaneously.

Actual behavior Only the instance where the deployment originated receives the update. The other instance appears updated but functions with the previous configuration.

Environment (please complete the following information):

Workaround(s) Need to individual deployed both mirth channels.

kirbykn2 commented 7 months ago

Why are you expecting this? Are you using the Advanced Clustering plugin? "Both Mirth Connect instances should reflect and implement the deployed changes simultaneously."

mvndr commented 7 months ago

Hi @kirbykn2 , I am not using the Advanced Clustering plugin. Instead, I am primarily relying on a load balancer with a single database. The issue arises when changes are made in one instance connected to the same database as another instance. While changes can be reflected initially, deploying those changes does not synchronize them across both instances. Although the last modified date is visible in the channel history, the deployment history remains outdated.

kirbykn2 commented 7 months ago

Deploying channels happens at the MC server. You can share a backend database and have one server that does not have any deployed channels. You need to redeploy the channels on the servers you want them redeployed too.

pacmano1 commented 7 months ago

you should go over to the mirth forums site and read up on the things you need to manage yourself if you do not use the advanced custom plug-in. For example https://forums.mirthproject.io/forum/mirth-connect/support/18952-horizontal-scaling-and-shared-database?p=104618#post104618.

pacmano1 commented 7 months ago

this is not a supportive configuration and therefore not an issue. I’m moving your issue to the discussion area.