From bfc3aae9b85b520c87539fdf203587c3a1c9453f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 9 Mar 2009 15:24:55 -0700 Subject: Configurator: document reasons for lowering backlog --- lib/unicorn/configurator.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/unicorn/configurator.rb b/lib/unicorn/configurator.rb index aa92db7..dd9ae3b 100644 --- a/lib/unicorn/configurator.rb +++ b/lib/unicorn/configurator.rb @@ -90,6 +90,10 @@ module Unicorn # backlog setting). Some operating systems allow negative values # here to specify the maximum allowable value. See the listen(2) # syscall documentation of your OS for the exact semantics of this. + # + # If you are running unicorn on multiple machines, lowering this number + # can help your load balancer detect when a machine is overloaded + # and give requests to a different machine. def backlog(nr) Integer === nr or raise ArgumentError, "not an integer: backlog=#{nr.inspect}" -- cgit v1.2.3-24-ge0c7