Django don't close some database connection

Posted June 22, 2021 147 views

I use a postgres database. And over the time django accumulates database connections.

In the table of current query statistics appear all the open connections and are similar. But the time is always Just now and the duration increase very slowly.

Some recommendation to prevent this. I doesn’t set up any timeout in my setting data base. May be this will solve the problem?

I have deploy django with gunicorn and I have currently 17 workers.


Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!