Add configuration option to suppress duplicate heartbeat logs (#3252)

Close #3251
This commit is contained in:
Michael Morris
2025-02-04 16:25:08 +01:00
committed by GitHub
parent 0bb12473fb
commit c97ad83396
6 changed files with 45 additions and 4 deletions
+4
View File
@@ -36,6 +36,10 @@ Log
- **patroni.postmaster: WARNING**
- **urllib3: DEBUG**
- **deduplicate_heartbeat_logs**: If set to ``true``, successive heartbeat logs that are identical shall not be output. Default value is ``false``.
.. warning::
The time the HA loop executes at can be very valuable information in diagnosing failovers due to resource exhaustion and similar problems. When ``deduplicate_heartbeat_logs`` is set to ``true`` there will be no log generated for the HA loop execution (unless the leader changes) and hence this potentially useful information will not be available from the logs.
Here is an example of how to config patroni to log in json format.