twitter / fatcache

Memcache on SSD
Apache License 2.0
1.3k stars 178 forks source link

MOD: setting keepalive for an new connection #24

Closed luxuan closed 8 years ago

luxuan commented 8 years ago

Connction leak occured when we deploy Fatcache in our large production cluster. We can see lots of socket fd in /proc//fd, in fact there is no connection from clients.

It ocurred because of the packages loss of four wave(the unstable network, lvs, firewall) when the client close the socket.

By the way, we checked the lastest Memcached and Redis source code, all of them had been set keepalive for the socket as default, and Twemproxy can be set by config file.

manjuraj commented 8 years ago

Thanks @luxuan. Do you guys use fatcache at weibo?

luxuan commented 8 years ago

Hi, @manjuraj. We are not use fatcache directly, but we have developed other cache serivce based on the network code of fatcache. Thanks for your excellent work.