From f590e03f521432ca97ea2e5d1bb6cf0119f16c7e Mon Sep 17 00:00:00 2001 From: Oliver Marks Date: Sat, 4 Mar 2017 11:48:03 +0000 Subject: [PATCH] reduce number of workers for stage to save the rams --- compose/django/gunicorn.sh | 2 +- compose/django/stage-gunicorn-mhackspace.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compose/django/gunicorn.sh b/compose/django/gunicorn.sh index 6889382..ca42e08 100644 --- a/compose/django/gunicorn.sh +++ b/compose/django/gunicorn.sh @@ -2,4 +2,4 @@ python /app/manage.py collectstatic --noinput python /app/manage.py compilescss -/usr/local/bin/gunicorn config.wsgi -w 4 -b unix:/data/sockets/gunicorn.sock --error-logfile /var/log/gunicorn/gunicorn-error.log --chdir=/app +/usr/local/bin/gunicorn config.wsgi -w 3 -b unix:/data/sockets/gunicorn.sock --error-logfile /var/log/gunicorn/gunicorn-error.log --chdir=/app diff --git a/compose/django/stage-gunicorn-mhackspace.sh b/compose/django/stage-gunicorn-mhackspace.sh index b6edd97..bbbc7a6 100644 --- a/compose/django/stage-gunicorn-mhackspace.sh +++ b/compose/django/stage-gunicorn-mhackspace.sh @@ -3,4 +3,4 @@ rm -R /app/staticfiles/* python /app/manage.py collectstatic --noinput python /app/manage.py compilescss -/usr/local/bin/gunicorn config.wsgi -w 4 -b unix:/data/sockets/stage-gunicorn-mhackspace.sock --error-logfile /var/log/gunicorn/stage-gunicorn-mhackspace.log --chdir=/app +/usr/local/bin/gunicorn config.wsgi -w 2 -b unix:/data/sockets/stage-gunicorn-mhackspace.sock --error-logfile /var/log/gunicorn/stage-gunicorn-mhackspace.log --chdir=/app