Skip to content

fix: reduce gunicorn concurrency to at most 4 * maximum available cor… - #259

Merged
KaylaNguyen merged 2 commits into
masterfrom
garethgeorge/concurrency
Jul 10, 2023
Merged

KaylaNguyen merged 2 commits into
masterfrom
garethgeorge/concurrency

Conversation

@garethgeorge

Copy link
Copy Markdown
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
@garethgeorge
garethgeorge force-pushed the garethgeorge/concurrency branch from fe5c261 to 56480bb Compare July 10, 2023 22:16
@KaylaNguyen
KaylaNguyen merged commit 2e04cc2 into master Jul 10, 2023
@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.

2 participants