Actions
Feature #36438
closedconfigure pulpcore-api with --max-requests to recycle workers before they leak too much memory
Difficulty:
Triaged:
No
Description
This will help to address https://bugzilla.redhat.com/show_bug.cgi?id=2122872
Gunicorn provides --max-requests and --max-requests-jitter settings which will restart the web worker process after handling some number of requests. This will help to eliminate any memory leaks which may be present.
I advise to set
--max-requests 50 \
--max-requests-jitter 30 \
, which will restart workers after handling some random number of requests between 50 and 80.
Originally reported in https://github.com/theforeman/puppet-pulpcore/issues/285
Actions