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: reduce gunicorn concurrency to at most 4 * maximum available cor… #259

Merged
merged 2 commits into from
Jul 10, 2023

Conversation

garethgeorge
Copy link
Contributor

Updates gunicorn's multithreading logic to derive the maximum concurrency the container can handle from the number of cores available to the functon. 4 invocations per core (given that memory additionally scales with cores) will be a good default concurrency limit that most functions will support without running into resource problems.

@garethgeorge garethgeorge force-pushed the garethgeorge/concurrency branch 4 times, most recently from 9590b26 to fe5c261 Compare July 10, 2023 22:13
@KaylaNguyen KaylaNguyen merged commit 2e04cc2 into master Jul 10, 2023
47 checks passed
@KaylaNguyen KaylaNguyen deleted the garethgeorge/concurrency branch July 10, 2023 23:30
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.

None yet

2 participants