IATI / refresher

A Python application which has the responsibility of tracking IATI data from around the Web and refreshing the core IATI software's data stores
GNU Affero General Public License v3.0
2 stars 0 forks source link

Would PSQL connections benefit from a shorter keepalive? #317

Open odscjames opened 7 months ago

odscjames commented 7 months ago

Brief Description We think we have seen connections go away, and we think the cause is a really long operation elsewhere that mean that no SQL was run for ages, thus causing the server to hang up the connection.

Severity Low (as rarely happens)

Solutions Should we set keepalives & keepalives_idle? It may be on by default, but on a very high default. Maybe we should turn keepalives_idle down?

And maybe keepalives_interval and keepalives_count too - just to make sure we have good values on them, rather than relying on defaults.

https://www.postgresql.org/docs/16/libpq-connect.html

Related This causes other problems in the code - https://github.com/IATI/refresher/issues/316