nextgenhealthcare / connect

The swiss army knife of healthcare integration.
Other
907 stars 274 forks source link

[BUG] Wrong instance IP selected when using the advanced clustering plugin #5272

Open matthewtowen01 opened 2 years ago

matthewtowen01 commented 2 years ago

Describe the bug When using 2 instances with multiple network interfaces and IP addresses assigned via dhcp. The clustering plugin is picking up the wrong ip and therefor can not communicate on the backend port 10000 for the notification service to work.

You have to go into the admin console and correct the ip address under settings/clustering after the new server has started. The servers have ephemeral disks and also use an ephemeral server.id. When an instance dies and new one joins the cluster it joins the cluster with a new dhcp address and server.id. The new server will not be able to communicate on the notification port 10000 until you manually go the clustering settings and correct the ip under the cluster settings.

Expected behavior Clustering plugin should pick the correct instance IP or have a configurable environment variable so you can set the server ip in mirth.properties.

Actual behavior Wrong ip displayed in clustering plugin settings.

Screenshots image

Environment (please complete the following information):

pacmano1 commented 2 years ago

Is that also true if you set the http and https host explicitly in mirth.properties?

image

matthewtowen01 commented 2 years ago

Is that also true if you set the http and https host explicitly in mirth.properties?

image

Yes I am afraid it is. I have tried setting that and it makes no difference.