Skip to content

Mitigate DB Connections issues

Agate requested to merge connections-issues into master

By default, ASGI_THREADS is set to number of CPU * 5, which quickly exhaust the number of Postgres connections, especially with FUNKWHALE_WEB_WORKERS>1

This set a much more reasonable default (6), and ensure we close connections whenever possible (channels don't do this automatically), cf https://github.com/django/channels/issues/871

Edited by Agate

Merge request reports