-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Add backoff to logging of bad subscriptions #7162
Comments
Are we planning on adding retry logic with the backoff logic? If not then the backoff doesn't seem all that useful. If so then we should design that out as it will require a significant amount of RAM.
Slightly unrelated but, we should make cleaning up subscriptions easier as backoff logic is not a solution to that problem. Adding syntax to drop all subscriptions with the same name, would make removing all Kapacitor related subscriptions easy. |
I made this issue specifically to discuss logging, which I now realize was not entirely clear. The discussion around back-off/retry for the subscription points is happening on #5462. Logging is an issue because each Kapacitor will create a large number of separate subscriptions and each subscription will log an error for every timeout. This can quickly lead to a significant amount of logging on every subscription timeout. Logging only the initial subscription timeout would help significantly cut down the amount of logs. I think cleaning up subscriptions would definitely help make it easier to avoid a bunch of orphaned subscriptions in the first place. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had recent activity. Please reopen if this issue is still important to you. Thank you for your contributions. |
Bug report
Steps to reproduce:
test
database.kapacitord
process, which will automatically generate a subscription for thetest
database.test
database.test
database.Actual behavior: Every write to a database generates a log line for each subscription which fails to deliver points to it's destination. This quickly results in an overwhelming number of logs along the lines of:
Expected behavior: The database should back off logging of write failures to a subscriber and/or disable/drop a subscription which fails to accept a certain number of writes.
The
subscriber
measurement in the_internal
database already recordspointsWritten
andwriteFailures
so logging the write failure is only needed for diagnosing connection errors.This problem is particularly bad when a Kapacitor instance is removed, resulting in orphaned subscriptions that are tedious to clean up and continuously spam the logs on every write.
This is relevant to discussions in issues #5462 and #7036.
The text was updated successfully, but these errors were encountered: