Merge pull request #978 from charnesp/patch-1

Add workers number on Gunicorn
pull/980/head
Piero Toffanin 2021-04-16 13:26:55 -04:00 zatwierdzone przez GitHub
commit d428d17ef5
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -140,7 +140,7 @@ else
congrats
nginx -c $(pwd)/nginx/$conf
gunicorn webodm.wsgi --bind unix:/tmp/gunicorn.sock --timeout 300000 --max-requests 250 --preload
gunicorn webodm.wsgi --bind unix:/tmp/gunicorn.sock --timeout 300000 --max-requests 250 --workers $((2*$(grep -c '^processor' /proc/cpuinfo)+1)) --preload
fi
# If this is executed, it means the previous command failed, don't display the congratulations message