diff --git a/gunicorn.conf.py b/gunicorn.conf.py index 77defac66..9d0ad71df 100644 --- a/gunicorn.conf.py +++ b/gunicorn.conf.py @@ -1,6 +1,5 @@ bind = '0.0.0.0:5000' -workers = 9 worker_class = 'gevent' max_requests = 30000 diff --git a/startup.sh b/startup.sh index f3e26ab39..ca7cb301a 100644 --- a/startup.sh +++ b/startup.sh @@ -1,3 +1,3 @@ cd /rDrama . ./.env -gunicorn files.__main__:app -k gevent -w 3 --reload -b 0.0.0.0:5000 --max-requests 30000 --max-requests-jitter 10000 +gunicorn files.__main__:app -w 3 diff --git a/startup_chat.sh b/startup_chat.sh index 18b227faf..603de1f97 100644 --- a/startup_chat.sh +++ b/startup_chat.sh @@ -10,4 +10,4 @@ yarn install yarn chat cd .. -gunicorn files.__main__:app load_chat -k geventwebsocket.gunicorn.workers.GeventWebSocketWorker -w 1 -b 0.0.0.0:5001 --max-requests 30000 --max-requests-jitter 30000 +gunicorn files.__main__:app load_chat -k geventwebsocket.gunicorn.workers.GeventWebSocketWorker -w 1 -b 0.0.0.0:5001 diff --git a/startup_docker.sh b/startup_docker.sh index 249252112..ced2238f9 100644 --- a/startup_docker.sh +++ b/startup_docker.sh @@ -3,5 +3,5 @@ export DATABASE_URL="postgresql://postgres@postgres:5432" export REDIS_URL="redis://redis:6379" export PROXY_URL="http://opera-proxy:18080" /etc/init.d/nginx start -gunicorn files.__main__:app load_chat -k geventwebsocket.gunicorn.workers.GeventWebSocketWorker -w 1 -b 0.0.0.0:5001 --max-requests 30000 --max-requests-jitter 30000 --reload -D -gunicorn files.__main__:app -k gevent -w 1 --reload -b 0.0.0.0:5000 --max-requests 30000 --max-requests-jitter 10000 +gunicorn files.__main__:app load_chat -k geventwebsocket.gunicorn.workers.GeventWebSocketWorker -w 1 -b 0.0.0.0:5001 -D +gunicorn files.__main__:app -w 1