Skip to content

Commit

Permalink
Document workers and threads environment variables (#2536)
Browse files Browse the repository at this point in the history
  • Loading branch information
dentarg committed Jan 27, 2021
1 parent 30a8cc0 commit f7c0f3b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/puma/dsl.rb
Expand Up @@ -405,7 +405,10 @@ def log_formatter(&block)
# Configure +min+ to be the minimum number of threads to use to answer
# requests and +max+ the maximum.
#
# The default is "0, 5" in MRI or "0, 16" for other interpreters.
# The default is the environment variables +PUMA_MIN_THREADS+ / +PUMA_MAX_THREADS+
# (or +MIN_THREADS+ / +MAX_THREADS+ if the +PUMA_+ variables aren't set).
#
# If these environment variables aren't set, the default is "0, 5" in MRI or "0, 16" for other interpreters.
#
# @example
# threads 0, 16
Expand Down Expand Up @@ -470,7 +473,8 @@ def state_permission(permission)
# How many worker processes to run. Typically this is set to
# the number of available cores.
#
# The default is 0.
# The default is the value of the environment variable +WEB_CONCURRENCY+ if
# set, otherwise 0.
#
# @note Cluster mode only.
# @see Puma::Cluster
Expand Down

0 comments on commit f7c0f3b

Please sign in to comment.