I’m hosting Django app with PostgreSQL, both hosted on Render.
On daily basis I’m receiving errors:
server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request.
I’m trying to patch things with GitHub - jdelic/django-dbconn-retry: Patches Django to reconnect on a failed database connection once before failing. Helping with running Django ORM through HAProxy, for example. hopefully it will help.
This is first time I encountered these errors. I have hosted multiple project on heroku with same setup and never encountered these errors.
How can I investigate what is happening to prevent these kind of errors in future?
Is render using some specific setup for managed databases?