diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/unicorn/configurator.rb | 5 | ||||
-rw-r--r-- | lib/unicorn/http_server.rb | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/lib/unicorn/configurator.rb b/lib/unicorn/configurator.rb index 4da19bb..948c6e3 100644 --- a/lib/unicorn/configurator.rb +++ b/lib/unicorn/configurator.rb @@ -181,8 +181,6 @@ class Unicorn::Configurator # to have nginx always retry backends that may have had workers # SIGKILL-ed due to timeouts. # - # # See http://wiki.nginx.org/NginxHttpUpstreamModule for more details - # # on nginx upstream configuration: # upstream unicorn_backend { # # for UNIX domain socket setups: # server unix:/path/to/.unicorn.sock fail_timeout=0; @@ -192,6 +190,9 @@ class Unicorn::Configurator # server 192.168.0.8:8080 fail_timeout=0; # server 192.168.0.9:8080 fail_timeout=0; # } + # + # See http://nginx.org/en/docs/http/ngx_http_upstream_module.html + # for more details on nginx upstream configuration. def timeout(seconds) set_int(:timeout, seconds, 3) # POSIX says 31 days is the smallest allowed maximum timeout for select() diff --git a/lib/unicorn/http_server.rb b/lib/unicorn/http_server.rb index ca56ed3..741cca5 100644 --- a/lib/unicorn/http_server.rb +++ b/lib/unicorn/http_server.rb @@ -36,7 +36,7 @@ class Unicorn::HttpServer # or even different installations of the same applications without # downtime. Keys of this constant Hash are described as follows: # - # * 0 - the path to the unicorn/unicorn_rails executable + # * 0 - the path to the unicorn executable # * :argv - a deep copy of the ARGV array the executable originally saw # * :cwd - the working directory of the application, this is where # you originally started Unicorn. @@ -45,7 +45,7 @@ class Unicorn::HttpServer # you can set the following in your Unicorn config file, HUP and then # continue with the traditional USR2 + QUIT upgrade steps: # - # Unicorn::HttpServer::START_CTX[0] = "/home/bofh/2.2.0/bin/unicorn" + # Unicorn::HttpServer::START_CTX[0] = "/home/bofh/2.3.0/bin/unicorn" START_CTX = { :argv => ARGV.map(&:dup), 0 => $0.dup, |