Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
dralley opened this issue May 24, 2023 · 1 comment

Comments

@dralley
Copy link
Contributor

dralley commented May 24, 2023

@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
Copy link
Member

evgeni commented May 25, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants