6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-09-27 19:59:02 +00:00

Set number of gunicorn workers to 3 for notes and forum

This commit is contained in:
Silvio Tomatis 2019-04-17 09:51:28 +02:00 committed by Régis Behmo
parent 9a782c5c37
commit 1046b48cc1
2 changed files with 3 additions and 3 deletions

View File

@ -12,4 +12,4 @@ WORKDIR /openedx/edx-notes-api
RUN pip install -r requirements/base.txt
EXPOSE 8000
CMD gunicorn --name notes --bind=0.0.0.0:8000 --max-requests=1000 notesserver.wsgi:application
CMD gunicorn --workers=3 --name notes --bind=0.0.0.0:8000 --max-requests=1000 notesserver.wsgi:application

View File

@ -6,10 +6,10 @@ RUN apt update && \
apt install -y language-pack-en git python-pip libmysqlclient-dev
RUN mkdir /openedx
RUN git clone https://github.com/edx/xqueue --branch open-release/ironwood.1 --depth 1 /openedx/xqueue
RUN git clone https://github.com/edx/xqueue --branch open-release/ironwood.1 --depth 1 /openedx/xqueue
WORKDIR /openedx/xqueue
RUN pip install -r requirements.txt
EXPOSE 8040
CMD gunicorn --name xqueue --bind=0.0.0.0:8040 --max-requests=1000 xqueue.wsgi:application
CMD gunicorn --workers=3 --name xqueue --bind=0.0.0.0:8040 --max-requests=1000 xqueue.wsgi:application