Reduce nb gunicorn workers to 2 to avoid using too much RAM

This commit is contained in:
Son NK 2019-12-27 11:49:10 +01:00
parent a49730d27f
commit 4e539f0428
1 changed files with 2 additions and 2 deletions

View File

@ -12,6 +12,6 @@ RUN pip3 install -r requirements.txt
COPY . .
#gunicorn wsgi:app -b 0.0.0.0:7777 -w 4 --timeout 15 --log-level DEBUG
CMD ["gunicorn","wsgi:app","-b","0.0.0.0:7777","-w","4","--timeout","15","--log-level","DEBUG"]
#gunicorn wsgi:app -b 0.0.0.0:7777 -w 2 --timeout 15 --log-level DEBUG
CMD ["gunicorn","wsgi:app","-b","0.0.0.0:7777","-w","2","--timeout","15","--log-level","DEBUG"]