Skip to content

Commit 8f3b4fa

Browse files
Remove WEB_CONCURRENCY "auto" from tuning_performance_for_deployment (rails#52545)
Puma 5+ parses environment variable `WEB_CONCURRENCY` directly so it can't be extended with "auto" Follow up to: * rails#52541 * rails#52533
1 parent 117fa2f commit 8f3b4fa

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

guides/source/tuning_performance_for_deployment.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -122,16 +122,7 @@ or if the server is running multiple applications, to how many cores you want th
122122
If you only use one thread per worker, then you can increase it to above one per process to account for when workers are
123123
idle waiting for I/O operations.
124124

125-
In the default generated configuration, it is set to use 1 worker.
126-
You can also modify it by setting the `WEB_CONCURRENCY` environment variable.
127-
128-
* Setting `WEB_CONCURRENCY` to a specific number will configure Puma to use that many workers.
129-
* Setting `WEB_CONCURRENCY` to "auto" will make Puma use all available processor cores on the server, as determined by
130-
the `Concurrent.available_processor_count` helper.
131-
132-
Please note that using "auto" might result in incorrect configurations on some cloud hosts with shared CPUs or platforms
133-
that inaccurately report CPU counts.
134-
125+
You can configure number of Puma workers by setting the `WEB_CONCURRENCY` environment variable.
135126

136127
### YJIT
137128

0 commit comments

Comments
 (0)