Skip to content

[OC-5149] Adjust max requests handled by LMS/CMS gunicorn workers

Jillian Vogel requested to merge jill/celery-worker-max-requests into master

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

  1. Spawn a new appserver using this branch.
  2. Note that EDXAPP_CMS_MAX_REQ: 1000 is present in the configuration, which propagates to the max_requests value in /edx/app/edxapp/cms_gunicorn.py.

See hawthorn-beta.opencraft.hosting for an example.

Reviewer

Merge request reports