6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-12 14:17:46 +00:00

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 # 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) ## 3.3.7 (2019-04-28)
- [Bugfix] Fix "Timeout after 20s" on running migrations - [Bugfix] Fix "Timeout after 20s" on running migrations

View File

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