-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Database Reconnect #53
Comments
I’ll look into that.
|
Okey, just another hint for that. In the logs I can see some errors like this: However, Aiven is changing the IP-Address with that maintenance:
Maybe pg.Pool is not trying to connect to the DNS-Name once resolved and keeps trying to connect to the IP-Address resolved at some point before. |
@dustin-H what should be the expected behavior? Trying to reconnect or exit the entire app? Since the state after a lost connection is “undefined”, I would prefer to just exit the entire program (and restart). |
Yes, I'd also prefer just stopping the process. |
We need to check, whether this is still a problem when using Typeorm or whether they can handle it. |
This is still the case with Typeorm. |
When Aiven is switching the Database due to automatic maintenance one seems not to be able to reconnect properly.
Also, the server does not crash, which would trigger a restart and thus a reconnect.
Currently it just loses the database-connection and gets unresponsive.
The text was updated successfully, but these errors were encountered: