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

Investigate using Gunicorn's preload option by default #105

Open
JayH5 opened this issue Jan 8, 2019 · 0 comments
Open

Investigate using Gunicorn's preload option by default #105

JayH5 opened this issue Jan 8, 2019 · 0 comments

Comments

@JayH5
Copy link
Contributor

JayH5 commented Jan 8, 2019

http://docs.gunicorn.org/en/latest/settings.html#preload-app
Load application code before the worker processes are forked. By preloading an application you can save some RAM resources as well as speed up server boot times. Although, if you defer application loading to each worker process, you can reload your application code easily by restarting workers.

This seems desirable. Reloading workers is not common in a containerized/immutable-deployment environment where one would rather just restart the entire container.

We should investigate if there are any side-effects of enabling this setting by default.

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

No branches or pull requests

1 participant