【发布时间】:2018-01-30 03:49:07
【问题描述】:
我对 redis.conf 中的tcp-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
tcp-backlog是“完整连接队列”(三次握手完成,here描述的)还是“不完整连接队列”的大小?
如果它的意思是“完整的连接队列”,那么我为什么要提出tcp_max_syn_backlog 来限制不完整的连接队列的大小?
【问题讨论】:
-
好问题。它是完成的连接队列。 SYN backlog 是独立的。我认为他们没有理由需要跟踪。