summaryrefslogtreecommitdiff
path: root/redis.conf
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-01-31 14:59:50 +0100
committerantirez <antirez@gmail.com>2014-01-31 15:03:25 +0100
commit1406112ec4887b7d6c7c849cca6255029b12c561 (patch)
treebc86d762a5675d65a9a0fc686ea62dffb93d4ce9 /redis.conf
parent917b851491415466368430dd2b450ce431c88081 (diff)
downloadredis-1406112ec4887b7d6c7c849cca6255029b12c561.tar.gz
Redis.conf comment about tcp-backlog option improved.
Diffstat (limited to 'redis.conf')
-rw-r--r--redis.conf8
1 files changed, 7 insertions, 1 deletions
diff --git a/redis.conf b/redis.conf
index 21fb1ebd8..d83acbba0 100644
--- a/redis.conf
+++ b/redis.conf
@@ -44,7 +44,13 @@ pidfile /var/run/redis.pid
# If port 0 is specified Redis will not listen on a TCP socket.
port 6379
-# TCP listen() backlog
+# TCP listen() backlog.
+#
+# In high requests-per-second environments you need an high backlog in order
+# to avoid slow clients connections issues. Note that the Linux kernel
+# will silently truncate it to the value of /proc/sys/net/core/somaxconn so
+# make sure to raise both the value of somaxconn and tcp_max_syn_backlog
+# in order to get the desired effect.
tcp-backlog 511
# By default Redis listens for connections from all the network interfaces