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

make heart beat log less verbose #1668

Closed
nurali-techie opened this issue Aug 27, 2020 · 2 comments
Closed

make heart beat log less verbose #1668

nurali-techie opened this issue Aug 27, 2020 · 2 comments

Comments

@nurali-techie
Copy link

Issue:
Currently, every loop_wait iteration, 2 info log entry added to master node and 3 info log entry added to replica node.

Details:
Below 2 info log entry added to master node:

2020-08-27 05:55:07,591 INFO: Lock owner: patroni1; I am patroni1
2020-08-27 05:55:07,598 INFO: no action.  i am the leader with the lock

Below 3 info log entry added to replica node:

2020-08-27 05:55:49,603 INFO: Lock owner: patroni1; I am patroni2
2020-08-27 05:55:49,603 INFO: does not have lock
2020-08-27 05:55:49,609 INFO: no action.  i am a secondary and i am following a leader

Expectation:
Ask is to make 1 info log entry for both master and replica.

Benefit:
With 1 info log entry there will be less log generated. Also, with 1 log entry, there will be pattern when you see log file and if there is something else is added to log then you can find odd man out very easily.

Version:
Patroni: 1.6.5
PG: 12

@CyberDem0n
Copy link
Member

Are you going to work on it?
If not I will close the issue as a duplicate.

@nurali-techie
Copy link
Author

Thanks @CyberDem0n ; for now let's close this. I will plan to do it soon and at that time I will ask more details on new log entry text etc. 👍

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

No branches or pull requests

2 participants