From 75ebef24cb697c9d0dddf8d979c004cc5b22d79b Mon Sep 17 00:00:00 2001 From: Edward Date: Fri, 8 Jun 2018 16:53:20 -0300 Subject: [PATCH] =?UTF-8?q?HOT-FIX:=20Limita=20a=20quantidade=20de=20requi?= =?UTF-8?q?si=C3=A7=C3=B5es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adiciona o parâmetro `--max-requests 1000` para limitar a quantidade de requisições que um worker atende antes de reiniciar (no caso para 1.000) --- gunicorn_start.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/gunicorn_start.sh b/gunicorn_start.sh index 6b5c98676..a6611eea7 100755 --- a/gunicorn_start.sh +++ b/gunicorn_start.sh @@ -41,6 +41,7 @@ test -d $RUNDIR || mkdir -p $RUNDIR exec gunicorn ${DJANGO_WSGI_MODULE}:application \ --name $NAME \ --workers $NUM_WORKERS \ + --max-requests 1000 --user $USER \ --access-logfile - \ --error-logfile - \