6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-12 14:17:46 +00:00

Increase the timeout of the gunicorn worker command in openedx Dockerfile

As discussed in
https://discuss.overhang.io/t/lms-worker-timeout-issue/1057/8, the
timeout of the gunicorn worker is a bit low, causing the worker to
crashloop on slower systems. By increasing the timeout to 120 seconds,
the worker should have time to come up before it gets restarted.
This commit is contained in:
Maarten de Waard 2020-12-07 11:43:25 +01:00 committed by Régis Behmo
parent 790aa2b2d2
commit b42beb83d9
2 changed files with 5 additions and 1 deletions

View File

@ -2,6 +2,10 @@
Note: Breaking changes between versions are indicated by "💥".
## Unreleased
- [Improvement] Increase the timeout of the gunicorn worker command in openedx Dockerfile
## v10.5.1 (2020-11-30)
- [Bugfix] Fix Dockerfile parsing on Windows

View File

@ -203,4 +203,4 @@ ENTRYPOINT ["docker-entrypoint.sh"]
# Run server
COPY gunicorn_conf.py /openedx/gunicorn_conf.py
EXPOSE 8000
CMD gunicorn -c /openedx/gunicorn_conf.py --name ${SERVICE_VARIANT} --bind=0.0.0.0:8000 --max-requests=1000 --max-requests-jitter=100 --access-logfile - ${SERVICE_VARIANT}.wsgi:application
CMD gunicorn -c /openedx/gunicorn_conf.py --name ${SERVICE_VARIANT} --bind=0.0.0.0:8000 --max-requests=1000 --max-requests-jitter=100 --timeout=120 --access-logfile - ${SERVICE_VARIANT}.wsgi:application