vipshop/twemproxies

TCP Connection and open files (1 established connection open but 4-5 fd's open)

vishalsharma13 opened this issue · 0 comments

Hi,

I want to understand why for 1 ESTABLISHED connection 4-5 fd's are open.

netstat -an | grep "ESTABLISHED" | grep 42704
tcp 0 0 X.X.X.X:42704 X.X.X.X:6381 ESTABLISHED

lsof | grep "ESTABLISHED" | grep 42704
nutcracke 2238 cache 1031u IPv4 83103254 0t0 TCP itx1SPIP-TwPr:42704->X.X.X.X:6381 (ESTABLISHED)
nutcracke 2238 2239 cache 1031u IPv4 83103254 0t0 TCP itx1SPIP-TwPr:42704->X.X.X.X:6381 (ESTABLISHED)
nutcracke 2238 2240 cache 1031u IPv4 83103254 0t0 TCP itx1SPIP-TwPr:42704->X.X.X.X:6381 (ESTABLISHED)
nutcracke 2238 2241 cache 1031u IPv4 83103254 0t0 TCP itx1SPIP-TwPr:42704->X.X.X.X:6381 (ESTABLISHED)
nutcracke 2238 2242 cache 1031u IPv4 83103254 0t0 TCP itx1SPIP-TwPr:42704->X.X.X.X:6381 (ESTABLISHED)

Due to this connections are restricted and i am facing error "Cannot assign requested address" at certain limit fd's open.

Please suggest the configuration to use persistent connections between redis and twemproxy.