Closed asyncmind0 closed 2 years ago
As far as I can see this is a Postgres adapter's issue, it should handle when there is a connection error, and maybe forcing the pool to restart and/or reconnect at the moment the error occurs.
Perhaps we could handle this case on the handle_info
and/or terminate
callbacks within the sumo_db_pgsql backend trapping the exit signals related to the connection's PID.
A question, just to understand a bit more what is going on, after you got the crash error, was the connection restored? I'm asking because after the crash the supervision tree for the pool should have been restarted, hence, the connections should have been restored. Is that the case? or the connections were never restored?
This is not happening anymore, I'm not entirely sure what resolved it :shrug:
Connection to postgres timesout after a while of inactivity.
How do I handle this ?