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:
parent
1d6dc5f609
commit
31efc550c3
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user