Skip to content

feat: Increase default max thread pool size to 8 #125

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

Merged
merged 1 commit into from
Jan 14, 2022

Conversation

dazuma
Copy link
Member

@dazuma dazuma commented Jan 13, 2022

This will allow some concurrency on deployment options that support it.

The value of 8 is chosen based on Ruby best practices to provide enough concurrency to prevent IO-bound requests from blocking too much, while keeping GVL contention down. MRI is not designed for massive parallelism.

In the future, we can also consider supporting worker forking. We do not do so right now to keep memory use stable.

@dazuma dazuma merged commit 3e5da5e into GoogleCloudPlatform:main Jan 14, 2022
@dazuma dazuma deleted the pr/threads branch January 14, 2022 23:08
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