Skip to content

Commit

Permalink
configurator: document net.core.somaxconn sysctl dependency
Browse files Browse the repository at this point in the history
Linux users are effectively capped to 128 on stock installations
and may wonder why connections get rejected with overloaded apps
sooner rather than later.
  • Loading branch information
Eric Wong committed Jul 15, 2015
1 parent dc2c335 commit 4ae3f3e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/unicorn/configurator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,11 @@ def listeners(addresses) # :nodoc:
#
# 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.
Expand Down

0 comments on commit 4ae3f3e

Please sign in to comment.