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

Support setting Puma worker count automatically #4107

Open
sethboyles opened this issue Nov 25, 2024 · 1 comment
Open

Support setting Puma worker count automatically #4107

sethboyles opened this issue Nov 25, 2024 · 1 comment

Comments

@sethboyles
Copy link
Member

Puma 6.5.0 introduced this feature: puma/puma#3439

This feature apparently sets the number of Puma workers to the number of available processors detected.

Could be a handy if we supported this to ease the transition from Thin -> Puma

@stephanme
Copy link
Contributor

I would like to keep the option for explicit configuration. Otherwise we lose the control over the CCDB connections needed per api VM. Currently, the max number of DB connections that an api VM can consume is puma.workers * puma.max_db_connections_per_process + 1 (+1 for the Puma main process).
DB connections becomes a critical size for PostgreSQL on large foundations with many CC VMs.

Maybe we can define that puma.workers = 0 means automatic worker count. Alternatively, an explicit option.

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

No branches or pull requests

2 participants