theforeman / puppet-pulpcore

Puppet module for setting up Pulp 3 as part of Katello installation
GNU General Public License v3.0
2 stars 28 forks source link

Configure --preload in the gunicorn configuration for pulpcore-content services #286

Closed dralley closed 1 year ago

dralley commented 1 year ago

@evgeni has done some testing and found that adding the --preload flag to the gunicorn execution command line for the pulpcore-content service reduces the memory overhead required by several hundred megabytes, because it is able to share more memory pages, and several copies of the pulpcore-content worker processes are active resulting in compounded gains with higher numbers of workers.

https://discourse.pulpproject.org/t/api-server-memory-leak/851/3?u=dralley

The primary downside is not relevant to the Satellite use case. However, we may want to keep an eye out to ensure that this doesn't result in the gunicorn master process itself leaking memory somehow. I don't think it would, but nonetheless.

evgeni commented 1 year ago

Moving to https://projects.theforeman.org/issues/36437 (using redmine allows the things to show up in the Foreman release notes automatically)