I’m dealing with an operations problem using the Heroku platform in which a specific app (we have 10 running the same project) has had a number of dynos, web and worker alike, run into the problem of not being able to connect to the database. In the past, these would occur very infrequently and I’d restart the problematic dyno and things would be good again. Over the past week or so, things have escalated. One of the remediation proposals Heroku’s support provided was to retry the connection to the database. I don’t recall and haven’t been able to find any documentation to have Django retry a connection to the database automatically.
Has anyone done this before outside of dropping down to the cursor level?