-
Dear all Have you even noticed a high number of "idle" connections in PostgreSQL related to martin? We have deployed martin in an Azure containerapp and, when running martin, the number of idle connections grows until it reaches the maximum number of connections allowed per instance...It can take 4 hours or 1 day. We have tried with the "keep_alive" parameter, but there is no changes in this behaviour apparently.... Any idea about what can be happening? Thanks in advance Jesús de Diego |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Thanks for reporting. I looked at the Try to use |
Beta Was this translation helpful? Give feedback.
-
Hi Yuri Thank you so much for the info. We will try with those parameter in the connection string and will let you know about the results. Thanls Jesús de Diego |
Beta Was this translation helpful? Give feedback.
-
Hi Yuri ?keepalives=0&keepalives_idle=15 But nothing happens... Again the number of connections grows until it reaches the maximum of the DB. We will check another options (basically, modifying the idle_session_timeout database parameter... but this is a bit dangerous as this parameter will apply to all DATABASE connections, not only those used by martin.... Any other idea? Best regards and thanks for your support Jesús de Diego |
Beta Was this translation helpful? Give feedback.
@jdediegoa the author of the Deadpool did a thorough reply on how to get this done: bikeshedder/deadpool#299 (comment) -- would you be interested in submitting a PR for this? We would need to think on how to add this functionality and make it configurable.