about summary refs log tree commit homepage
path: root/lib/unicorn
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-07-15 21:20:35 +0000
committerEric Wong <e@80x24.org>2015-07-15 21:20:35 +0000
commit4ae3f3e34c13f4df8540f5bce3a002c5c2226f80 (patch)
treeab33c9df1a4fbfc35cac6432728bba6452a11d56 /lib/unicorn
parentdc2c33552f5f72690f743e47a4a475b06503a7ca (diff)
downloadunicorn-4ae3f3e34c13f4df8540f5bce3a002c5c2226f80.tar.gz
Linux users are effectively capped to 128 on stock installations
and may wonder why connections get rejected with overloaded apps
sooner rather than later.
Diffstat (limited to 'lib/unicorn')
-rw-r--r--lib/unicorn/configurator.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/unicorn/configurator.rb b/lib/unicorn/configurator.rb
index 32e49c1..02f6b6b 100644
--- a/lib/unicorn/configurator.rb
+++ b/lib/unicorn/configurator.rb
@@ -254,6 +254,11 @@ class Unicorn::Configurator
   #
   #   Default: 1024
   #
+  #   Note: with the Linux kernel, the net.core.somaxconn sysctl defaults
+  #   to 128, capping this value to 128.  Raising the sysctl allows a
+  #   larger backlog (which may not be desirable with multiple,
+  #   load-balanced machines).
+  #
   # [:rcvbuf => bytes, :sndbuf => bytes]
   #
   #   Maximum receive and send buffer sizes (in bytes) of sockets.