Less gunicorn workers for less RAM usage

Settings the number of workers for the LMS and the CMS to 2*|CPU|+1
results in 4*|CPU]+2 gunicorn workers, which is too much for a laptop to
cope with.

Close #207
This commit is contained in:
Régis Behmo 2019-04-28 09:34:02 +02:00
parent 1d6dc5f609
commit 31efc550c3
2 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,9 @@
# Changelog
## 3.3.8 (2019-04-28)
- [Bugfix] Reduce the number of gunicorn workers to address RAM usage (#207)
## 3.3.7 (2019-04-28)
- [Bugfix] Fix "Timeout after 20s" on running migrations

View File

@ -1,5 +1,4 @@
import multiprocessing
# The recommended number of workers is twice the
# CPU count plus one
workers = (multiprocessing.cpu_count() * 2) + 1
# Set the number of gunicorn workers to the number of CPU
workers = multiprocessing.cpu_count()