Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not write history/state/overdue when not reponsible #85

Closed
N-o-X opened this issue Dec 10, 2019 · 3 comments
Closed

Do not write history/state/overdue when not reponsible #85

N-o-X opened this issue Dec 10, 2019 · 3 comments

Comments

@N-o-X
Copy link
Contributor

N-o-X commented Dec 10, 2019

Concept:

  • Only the active Icinga DB writes into MySQL
  • The active instance also writes the last Redis stream ID into something like a history_state table
  • The inactive instance removes everything before the stream ID plus a time buffer from its own stream (using https://redis.io/commands/xrange)
@stupiddr
Copy link

stupiddr commented May 5, 2020

@N-o-X
Curious on this, is this to a fix an issue where the inactive icingadb instance is marking checks as overdue when they infact are not overdue?
Currently running into an issue with this, wondering if that's what this is intended for or if I should create a different issue.
Thanks!

@N-o-X
Copy link
Contributor Author

N-o-X commented May 6, 2020

Hi @stupiddr,

this issues didn't have such a bug in mind, it's just here to lower the amount of writes to MySQL.
Your problem is indeed new to me. It would be great, if you could create a new issues on that topic.

Thanks and greetings
Noah

@lippserd
Copy link
Member

RC 2 does nothing when not responsible. Closing here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants