Browse Source

Diminui max-requests e número de workers

pull/1988/head
Edward 7 years ago
committed by GitHub
parent
commit
08a388da34
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      gunicorn_start.sh

4
gunicorn_start.sh

@ -16,9 +16,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=5 # how many worker processes should Gunicorn spawn (*)
NUM_WORKERS=4 # how many worker processes should Gunicorn spawn (*)
# NUM_WORKERS = 2 * CPUS + 1
MAX_REQUESTS=500 # number of requests before restarting worker
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 (*)

Loading…
Cancel
Save