-
Notifications
You must be signed in to change notification settings - Fork 115
Open
Description
When using a service like Neon that does autoscale to 0 databases, the ping every second prevents this behaviour. However, when you set the ping interval longer (Neon recommends 24 hours) then when the database scales to 0 the connection closes and you get Postgrex: DBConnection ConnectionError ssl send: closed which is correct.
But... the connection will not automatically attempt to reconnect which should succeed as Neon would spin back up a compute unit. It only automatically reconnects on a ping, but frequent pings would prevent autoscale to 0 defeating the purpose.
I'm not sure what the best approach is to solve this issue but it seems like automatic reconnects maybe shouldn't only happen on pings.
Metadata
Metadata
Assignees
Labels
No labels