From bfffef8a7c13564071cf692e360dc6b8f9f45b79 Mon Sep 17 00:00:00 2001 From: Edward Oliveira Date: Fri, 5 Nov 2021 15:28:26 -0300 Subject: [PATCH] HOT-FIX: ajuste para Parlasul --- docker/gunicorn_start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/gunicorn_start.sh b/docker/gunicorn_start.sh index cafa2c7d5..ed9047855 100755 --- a/docker/gunicorn_start.sh +++ b/docker/gunicorn_start.sh @@ -23,9 +23,9 @@ DJANGODIR=/var/interlegis/sapl/ # Django project directory (* SOCKFILE=/var/interlegis/sapl/run/gunicorn.sock # we will communicate using this unix socket (*) USER=`whoami` # the user to run as (*) GROUP=`whoami` # the group to run as (*) -NUM_WORKERS=100 # how many worker processes should Gunicorn spawn (*) +NUM_WORKERS=10 # how many worker processes should Gunicorn spawn (*) # NUM_WORKERS = 2 * CPUS + 1 -TIMEOUT=300 +TIMEOUT=60 MAX_REQUESTS=100 # number of requests before restarting worker DJANGO_SETTINGS_MODULE=sapl.settings # which settings file should Django use (*) DJANGO_WSGI_MODULE=sapl.wsgi # WSGI module name (*)