Skip to content

Commit 1e279be

Browse files
committed
Document the fact that Puma 5.0+ now pulls from WEB_CONCURRENCY directly
Since we no longer have a block about worker settings in the file.
1 parent 461b7f3 commit 1e279be

File tree

1 file changed

+4
-0
lines changed
  • railties/lib/rails/generators/rails/app/templates/config

1 file changed

+4
-0
lines changed

railties/lib/rails/generators/rails/app/templates/config/puma.rb.tt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
# Puma starts a configurable number of processes (workers) and each process
66
# serves each request in a thread from an internal thread pool.
77
#
8+
# You can control the number of workers using ENV["WEB_CONCURRENCY"]. You
9+
# should only set this value when you want to run 2 or more workers. The
10+
# default is already 1.
11+
#
812
# The ideal number of threads per worker depends both on how much time the
913
# application spends waiting for IO operations and on how much you wish to
1014
# prioritize throughput over latency.

0 commit comments

Comments
 (0)