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

Can the number of gunicorn threads be changed easily? #475

Open
eandersonIGS opened this issue May 16, 2023 · 1 comment
Open

Can the number of gunicorn threads be changed easily? #475

eandersonIGS opened this issue May 16, 2023 · 1 comment
Labels

Comments

@eandersonIGS
Copy link

eandersonIGS commented May 16, 2023

Question

When I run MegaQC using docker-compose on a server with a higher core count (48 cores / 256GB RAM) it attempts to spawn too many gunicorn threads and crashes with a memory error. I have gotten around this by mounting a modified gunicorn_conf.py over top of the existing one in the container. Is there another way to set the number of gunicorn threads?

@eandersonIGS eandersonIGS changed the title Can the number of gunicorn threads be changed easially? Can the number of gunicorn threads be changed easily? May 16, 2023
@multimeric
Copy link
Collaborator

Hi @eandersonIGS. Currently we're using the tiangolo/meinheld-gunicorn-flask image, which I believe you can configure using environment variables, e.g. https://github.com/tiangolo/meinheld-gunicorn-flask-docker#workers_per_core. You can either provide these variables by editing the compose file, or on the CLI: https://docs.docker.com/compose/environment-variables/set-environment-variables/.

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

No branches or pull requests

2 participants