pulp / pulp-oci-images

Containerfiles and other assets for building Pulp 3 OCI images
https://docs.pulpproject.org/pulp_oci_images/
30 stars 55 forks source link

Support Gunicorn Worker Recycling #576

Closed markafarrell closed 8 months ago

markafarrell commented 8 months ago

Is your feature request related to a problem? Please describe. Memory leaks in Gunicorn can cause memory usage to steadily grow over time. We need a way to handle this problem.

Describe the solution you'd like Enable gunicorn worker recycling that restarts gunicorn worker process every x number of requests so that any leaked memory is released. This can be achieved by setting some environment variables that will be passed into pulp that will enable gunicorn worker recycling

Describe alternatives you've considered Using gunicorn.conf.py as documented in https://github.com/pulp/pulpcore/issues/2250#issuecomment-1069455371 does not work due to how s6-overlay works

Additional context Add any other context about the feature request here.