Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added threads in app-entrypoint #139

Open
wants to merge 3 commits into
base: update/v1.1.216
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ echo "Compile Messages"
python manage.py compilemessages

echo "Starting server"
gunicorn ureport.wsgi:application -t 120 -w 2 --max-requests 5000 -b 0.0.0.0:8080
gunicorn ureport.wsgi:application --max-requests 5000 -b 0.0.0.0:8080 -c $PROJECT_PATH/gunicorn.conf.py
2 changes: 2 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ FROM python:3.6
ENV WORKDIR /ureport
WORKDIR $WORKDIR

ENV PROJECT_PATH /ureport

RUN apt update
RUN apt upgrade -y
RUN apt install -y \
Expand Down
7 changes: 7 additions & 0 deletions gunicorn.conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import multiprocessing

workers = 1
proc_name = 'ureport'
default_proc_name = proc_name
accesslog = 'gunicorn.access'
timeout = 120