Comments (10)
Is this bug report with the clustering plugin installed? Curious really if another user maybe can shed some light on this if they use the clustering plugin.
from connect.
Is this bug report with the clustering plugin installed? Curious really if another user maybe can shed some light on this if they use the clustering plugin.
I didn't installed any plugins. Just the base docker image with an external postgres database while setting SESSION_STORE="true".
This must be a cache problem or something. Because the statistics displayed in the dashboard are zero, meanwhile in database it is correct. Also the events are displayed correctly. The only issue are statistics in the main dashboard.
from connect.
Running multiple Connect servers (connecting to the same database)
As far as I know this isn't supported. The basic problem is that many tables (like statistics and configuration) use the MC server-id. I think what you might find is that your new instances server ID has changed, the appdata/server.id
file is generated on a cold start. I think you can pass it as an environment variable to containerized instances and entrypoint.sh will write it out. I was wrong about this you have to update the sever.id file https://github.com/nextgenhealthcare/connect-docker#the-appdata-folder-
If you look at your database you see that the stats tables (d_msXX) have a server_id column - https://github.com/kayyagari/connect/blob/je/mc-integ-tests/mc-db-tables.png
Same for some of the message content and metadata tables too.
from connect.
Also note that the clustering plugin from NextGen is a paid product. It may not be in NextGens interest to make it too easy to cluster the open source Mirth Connect. The clustering plugin gets poor reviews though and I expect the community would be excited to see you work through this experiment.
from connect.
Running multiple Connect servers (connecting to the same database)
As far as I know this isn't supported. The basic problem is that many tables (like statistics and configuration) use the MC server-id. I think what you might find is that your new instances server ID has changed, the
appdata/server.id
file is generated on a cold start. I think you can pass it as an environment variable to containerized instances and entrypoint.sh will write it out.If you look at your database you see that the stats tables (d_msXX) have a server_id column - https://github.com/kayyagari/connect/blob/je/mc-integ-tests/mc-db-tables.png
Same for some of the message content and metadata tables too.
Thanks @jonbartels for the quick reply.
Your are right. Make sense if the server id changes so the behaviour changes if it is used in tables.
I've just started working with Mirth to see the scalability, I need to investigate into this more. I will definitely come back to you with more on this.
from connect.
nextgenhealthcare/connect-docker#14 related issue from the container image. Would be a good first PR if someone was feeling motivated.
from connect.
I was motivated to hack and needed a break from my paying job nextgenhealthcare/connect-docker#28 . Does this help you @mahdib-huma ? It would let you define the server ID as an environment variable for your deployments.
from connect.
I was motivated to hack and needed a break from my paying job nextgenhealthcare/connect-docker#28 . Does this help you @mahdib-huma ? It would let you define the server ID as an environment variable for your deployments.
@jonbartels Thanks for the effort, really appreciate it. Let me check and will get back to you.
from connect.
@jonbartels I have tested your pull request here (nextgenhealthcare/connect-docker#28).
I can confirm it does it's job by setting the server.id because now I can see that server.id inside my tables (check the image)
It looks like it fixes this issue also (#5554)
Although, it doesn't fix the issue I have mentioned here. When I go from once instance to three instances of Mirth server, the statistics change whenever I click channels button and switch back to dashboard (which is really weird). In the database the statistics are correct by the way as you can see in the picture.
from connect.
You can check this record also to see it more clearly:
Screen.Recording.2022-12-01.at.23.29.20.mov
from connect.
Related Issues (20)
- [BUG] Mirth Versions 4.4.1 and 4.4.2 custom-lib folder needs to be empty for web service listener channel to start HOT 7
- [BUG] 4.4.2 not stating `Please define INSTALL4J_JAVA_HOME`
- Upgrading mirth 3.5.2 to 4.4.2 failed to start HOT 7
- mirth connect and MySQL compatibility HOT 1
- How to upgrade mirth connect version 3.5.2 to version 4.4.2 HOT 2
- [BUG] MacOS installer is sensitive to architecture. It requires an x86 JVM
- [IDEA] Display last sent datetime on dashboard HOT 28
- The database log file is too large to clean up (sqlserver) HOT 6
- Mirth TCP LLP channels getting froze sometimes and message stuck in received state
- Apple M2 Mirth Connect JDK17 issue HOT 7
- how the license.lic in mirth-client.jar generate,i compile the code with ant ,but there's none,i see others mirthconnect got one HOT 1
- [IDEA] On the Dashboard Allow Columns that are sourced from $gc vars.
- [IDEA] Allow configuring admin username and password using environment variables HOT 1
- [IDEA] Auto complete Java native and 3rd party libraries
- [BUG] Mirth 4.0,1 VDI unexpectedly stops writing to mirth.log HOT 6
- [BUG] Frame needs to load Extensions sooner
- [BUG] TCP receiver connector fails with UTF16-BE encoding using double byte MLLP HOT 7
- Health Checks for Mirth Connect server behind an Elastic Load Balancer in AWS HOT 1
- SQL to file append HOT 1
- [IDEA] Ability to increase logging in ObjectXMLSerializer HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from connect.