Jordi
unread,Dec 22, 2015, 7:26:21 PM12/22/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
Hi,
Can I take for granted that connections between the DB and Django get
closed when threads get killed?
I take my max_connections in postgres to be the amount of WSGI threads +
some safety margin, and put use Django
in persistent DB connection mode (CONN_MAX_AGE = None) to avoid the
overhead of re-establishing connections, but then if for some
reason threads get killed abrubtly by WSGI and restarted, I may run out
of max_connections if they didn't get closed properly?
Or is this not a concern?
Thanks
Jordi