ibm-messaging / mq-golang

Calling IBM MQ from Go applications
Apache License 2.0
168 stars 60 forks source link

Monitoring HA #73

Closed salapat11 closed 5 years ago

salapat11 commented 5 years ago

MQ - v9.0.0.2 mq-golang - v3.0.1 Go - 1.11

Is there any impact on the monitor program if HA (Active/Active) is enabled on Prometheus?

ibmmqmet commented 5 years ago

What is the Prometheus architecture in this setup? The monitor program will respond to whoever calls its http interface with the current statistics, which effectively resets the next interval to zero. So if two Prometheus instances are calling the monitor independently, then half the data will go to one, half the data will go to the other. And then it would depend on whether there's a single shared database or not.

salapat11 commented 5 years ago

Prometheus architecture will be Active/Active. To tolerate Prometheus server outages, Active/Active is the desired approach. Yes, it should be a shared database between the two instances.
We are also looking into implementing Thanos components for long term storage. The requirement is to search for 1 year old statistics data.