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

Fixes #38085 - Cap the number of Puma workers at 100 #1197

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Dec 11, 2024

Users can easily run out of PostgreSQL connections on large deployments. This provides a ceiling to the automatically calculated Puma workers because it's unclear if that really provides performance benefits while it can break deployments.

Not noticable here, but foreman-installer defaults to max 500 PostgreSQL connections and has tuning options that to increase it to 1000.

Ideally it would be smarter, but it's really hard to account for all possible conditions.

Users can easily run out of PostgreSQL connections on large deployments.
This provides a ceiling to the automatically calculated Puma workers
because it's unclear if that really provides performance benefits while
it can break deployments.

Not noticable here, but foreman-installer defaults to max 500 PostgreSQL
connections and has tuning options that to increase it to 1000.

Ideally it would be smarter, but it's really hard to account for all
possible conditions.
@ekohl
Copy link
Member Author

ekohl commented Dec 11, 2024

I really should have tested this locally, but third time is the charm.

@ekohl ekohl merged commit 0e8bb06 into theforeman:master Dec 13, 2024
14 of 19 checks passed
@ekohl ekohl deleted the cap-puma-workers branch December 13, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants