From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-3.3 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: unicorn-public@bogomips.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 6FFCD20388; Wed, 15 Jul 2015 21:38:56 +0000 (UTC) From: Eric Wong To: unicorn-public@bogomips.org Cc: Eric Wong Subject: [PATCH] configurator: document net.core.somaxconn sysctl dependency Date: Wed, 15 Jul 2015 21:38:51 +0000 Message-Id: <1436996331-4519-1-git-send-email-e@80x24.org> List-Id: 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