1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Document workers and threads environment variables (#2536)

This commit is contained in:
Patrik Ragnarsson 2021-01-27 20:57:37 +01:00 committed by GitHub
parent 30a8cc0ff2
commit f7c0f3b6f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -405,7 +405,10 @@ module Puma
# 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
@ -470,7 +473,8 @@ module Puma
# 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