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

[ci skip] More explicit docs for worker_timeout

Had a customer who thought setting this was preventing against long running requests (it doesn't). These docs clarify the purpose of setting this value, that it is used to detect hung processes.
This commit is contained in:
schneems 2015-11-03 09:33:49 -06:00
parent d56ad84642
commit d1678f00c7
2 changed files with 7 additions and 2 deletions

View file

@ -148,7 +148,9 @@
# If you do not specify a tag, Puma will infer it. If you do not want Puma
# to add a tag, use an empty string.
# Change the default timeout of workers
# Verifies that all workers have checked in to the master process within
# the given timeout. If not the worker process will be restarted. Default
# value is 60 seconds.
#
# worker_timeout 60

View file

@ -256,7 +256,10 @@ module Puma
@options[:tag] = string
end
# *Cluster mode only* Set the timeout for workers
# *Cluster mode only* Set the timeout for workers in seconds
# When set the master process will terminate any workers
# that have not checked in within the given +timeout+.
# This mitigates hung processes. Default value is 60 seconds.
def worker_timeout(timeout)
@options[:worker_timeout] = timeout
end