mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
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:
@@ -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',
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user