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

feature/1788 increase gunicorn workers/threads #1272

Merged
merged 2 commits into from
Jan 17, 2025
Merged
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 Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ RUN useradd nxgu --no-create-home --home /opt/nxg_fec && chown -R nxgu:nxgu /opt
USER nxgu

EXPOSE 8080
ENTRYPOINT ["/bin/sh", "-c", "python manage.py migrate && python manage.py loaddata fixtures/e2e-test-data.json && python manage.py load_committee_data && python manage.py create_committee_views && gunicorn --bind 0.0.0.0:8080 fecfiler.wsgi -w 9 --reload"]
ENTRYPOINT ["/bin/sh", "-c", "python manage.py migrate && python manage.py loaddata fixtures/e2e-test-data.json && python manage.py load_committee_data && python manage.py create_committee_views && gunicorn --bind 0.0.0.0:8080 fecfiler.wsgi -w 9 --threads=8 --reload"]
2 changes: 1 addition & 1 deletion Dockerfile-e2e
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ RUN useradd nxgu --no-create-home --home /opt/nxg_fec_e2e && chown -R nxgu:nxgu
USER nxgu

EXPOSE 8080
ENTRYPOINT ["/bin/sh", "-c", "python manage.py migrate && python manage.py loaddata fixtures/e2e-test-data.json && python manage.py load_committee_data && python manage.py create_committee_views && gunicorn --bind 0.0.0.0:8080 fecfiler.wsgi -w 9 --reload"]
ENTRYPOINT ["/bin/sh", "-c", "python manage.py migrate && python manage.py loaddata fixtures/e2e-test-data.json && python manage.py load_committee_data && python manage.py create_committee_views && gunicorn --bind 0.0.0.0:8080 fecfiler.wsgi -w 9 --threads=8 --reload"]
2 changes: 1 addition & 1 deletion bin/run-api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ if [ $CF_INSTANCE_INDEX = "0" ]; then
fi

# Run application
exec gunicorn --bind 0.0.0.0:8080 fecfiler.wsgi -w 9
exec gunicorn --bind 0.0.0.0:8080 fecfiler.wsgi -w 9 --threads=8