* [PATCH] configurator: document net.core.somaxconn sysctl dependency
@ 2015-07-15 21:38 7% Eric Wong
0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2015-07-15 21:38 UTC (permalink / raw)
To: unicorn-public; +Cc: Eric Wong
Linux users are effectively capped to 128 on stock installations
and may wonder why connections get rejected with overloaded apps
sooner rather than later.
---
lib/unicorn/configurator.rb | 5 +++++
1 file changed, 5 insertions(+)
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.
--
EW
^ permalink raw reply related [relevance 7%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2015-07-15 21:38 7% [PATCH] configurator: document net.core.somaxconn sysctl dependency Eric Wong
Code repositories for project(s) associated with this public inbox
https://yhbt.net/unicorn.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).