-
Notifications
You must be signed in to change notification settings - Fork 825
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
Log status on change only #1800
Comments
Let's use correct words, it doesn't flood logs, but provides update on heartbeat status. In case of problems such heartbeat logs are extremely useful. Doing something smart with logs like keeping them in memory and discarding after certain time if everything is fine might be an option, but I have neither time nor wish to work on it. In other words if you are not planning to implement it, I don't see any reason to keep the issue open, especially that there is already a few duplicates already opened. |
@CyberDem0n Thanks for your advice, much appreciated. I will reconsider the settings. When my issue is a duplicate, please let’s just link the original and close this one. However, closing an issue for the sake of closing because nobody can work on it at the moment is the probably the wrong way. |
Currently open Closed There might be more.
Well, first of all, this issue is a duplicate. At the moment is a very vague definition. Project exists for more than 5 years. The #621 was opened nearly 3 years ago, and I am pretty sure there are more similar issues, but they are closed. Since nobody volunteered to work on a feature for 3 years it doesn't look very important. Many OS projects even have a policy of closing issues automatically if they get no activity for a couple of months and I totally understand them. |
Describe the bug
Patroni currently floods logs with status messages every five seconds:
Emitting messages on status changes (or errors) only would not only reduce the number of log events but also make the log more clear.
To Reproduce
Setup any replicated database.
Expected behavior
Emit a log message only if there is news …
Screenshots
N/A
Environment
1.6.5
Patroni configuration file
Generated by the Postgres Operator, N/A here
patronictl show-config
Have you checked Patroni logs?
N/A
Have you checked PostgreSQL logs?
N/A
Have you tried to use GitHub issue search?
Yes.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: