[OC-5149] Adjust max requests handled by LMS/CMS gunicorn workers
Sets a max_requests
limit for the CMS celery workers, which should result in a worker restart frequency of 1-2 days for an average instance.
This change was made in an attempt to relieve memory pressure on existing Ginkgo instances, and to anticipate the CMS worker memory leaks reported for Hawthorn. cf openedx-ops post.
Testing instructions
- Spawn a new appserver using this branch.
- Note that
EDXAPP_CMS_MAX_REQ: 1000
is present in the configuration, which propagates to themax_requests
value in/edx/app/edxapp/cms_gunicorn.py
.
See hawthorn-beta.opencraft.hosting for an example.
Reviewer