diff --git a/start.sh b/start.sh index dc2a81f2..83dbc788 100755 --- a/start.sh +++ b/start.sh @@ -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