Giter Club home page Giter Club logo

Comments (10)

pacmano1 avatar pacmano1 commented on June 25, 2024

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.

mahdib-huma avatar mahdib-huma commented on June 25, 2024

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.

jonbartels avatar jonbartels commented on June 25, 2024

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.

jonbartels avatar jonbartels commented on June 25, 2024

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.

mahdib-huma avatar mahdib-huma commented on June 25, 2024

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.

jonbartels avatar jonbartels commented on June 25, 2024

nextgenhealthcare/connect-docker#14 related issue from the container image. Would be a good first PR if someone was feeling motivated.

from connect.

jonbartels avatar jonbartels commented on June 25, 2024

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.

mahdib-huma avatar mahdib-huma commented on June 25, 2024

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.

mahdib-huma avatar mahdib-huma commented on June 25, 2024

@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)

postgres_statistics

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.

mahdib-huma avatar mahdib-huma commented on June 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.