mailman: adjust some settings to try and avoid OOM

Set django to have 4 workers and have a retry longer than the timeout.
Disable local memcached and use the memcached01 instance.
Enabled debug logging on gunicorn to see what it's doing.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi
2024-07-09 13:27:32 -07:00
parent 506ae2da05
commit 1da59362cd
3 changed files with 7 additions and 5 deletions

View File

@@ -311,6 +311,8 @@ HAYSTACK_CONNECTIONS = {
#
Q_CLUSTER = {
'timeout': 300,
'retry': 600,
'workers': 4,
'save_limit': 100000,
'orm': 'default',
}
@@ -383,11 +385,11 @@ LOGGING = {
}
# Cache: use the local memcached server
# Cache: use the remote memcached server
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache',
'LOCATION': '127.0.0.1:11211',
'LOCATION': 'memcached01:11211',
}
}