-
Notifications
You must be signed in to change notification settings - Fork 7
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
Handle dying DB connections #75
Comments
Recently we started to run into this issue. Seems to happen when dead connections are involved, we are using DigitalOceans Managed database
|
Sorry about that. Ideally, a DB connection should handle such errors itself. It should not be the responsibility of an ORM to handle those dying connections. |
crystal-db has pool implemented, which is claimed to handle connection errors. I suggest you to try raise the problem there, @arubinofaux. |
Try adding |
@arubinofaux did you manage to make it work better? |
@vladfaust we manage to control the issue by constructing the database url like this.
If you notice all the magic happens in Due to the current state of crystal, i think this is the best fix we can expect without going in and rewriting crystal-pg. |
Retry multiple times, then raise.
The text was updated successfully, but these errors were encountered: