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

provide a db storage for alert intermediate states #916

Open
FrankChen021 opened this issue Nov 30, 2024 · 0 comments
Open

provide a db storage for alert intermediate states #916

FrankChen021 opened this issue Nov 30, 2024 · 0 comments

Comments

@FrankChen021
Copy link
Owner

IAlertStateStorage has two implementations now, one is local memory, the other is redis.
For the first one, the state information loss if the application restarts.
For the 2nd one, users have to deploy a redis instance/cluster

To overcome these two problems, a db-based state storage can be provided for trade-off.
to reduce interactions between db and the alerting application, before evalutation, loading all states from the db, and after evaluation, flush all new states back to the db.

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

1 participant