Increase startup timeout for lms and cms
Right now the CMS and LMS workers have a timeout of 30 seconds. That's not long enough for the boot process sometimes, so we hotfixed the docker-compose.yml
to include these commands:
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
(where ${SERVICE_VARIANT} is replaced by us with cms
or lms
). This fixes the problem, but if you run tutor config save
this change will be overwritten.
I commented in this discussion to propose a better solution: https://discuss.overhang.io/t/lms-worker-timeout-issue/1057/5