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

fix: number and type of gunicorn workers #1683

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

olevski
Copy link
Member

@olevski olevski commented Oct 30, 2023

So this is something that we have "always done" I think. But according to the flask docs here, when deploying with gunicorn there is no point in using gevent async workers if you do not explicitly use gevent in your code. And we do not do this. So we get no benefit.

Also we only used a single worker because we did not set anything and the default is 1.

The docs for gunicorn recommend 4-12 workers. And because in production we are kind of going for smaller many replicas rather than a large one I went for the smaller number of workers.

/deploy

@olevski olevski requested a review from a team as a code owner October 30, 2023 13:26
@olevski olevski temporarily deployed to renku-ci-nb-1683 October 30, 2023 13:27 — with GitHub Actions Inactive
@RenkuBot
Copy link
Contributor

You can access the deployment of this PR at https://renku-ci-nb-1683.dev.renku.ch

@rokroskar
Copy link
Member

@olevski @Panaetius should this still be merged?

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

Successfully merging this pull request may close these issues.

4 participants