Hi Alexander, On Mon, Aug 16, 2010 at 01:29:33PM +0200, Alexander Staubo wrote: > In fact, it seems to this sysctl setting: > > # Allow to reuse TIME-WAIT sockets for new connections when it is safe > # from protocol viewpoint. The default value is 0 > net.ipv4.tcp_tw_recycle = 1
I'm not surprised, I've used it in the past and stopped because of strange and unexplainable issues sometimes during network testing. (...) > The problem has persisted even after we moved Varnish away from the > HAProxy box. So it's apparent that the socket recycling is causing > problems with HAProxy as well, not just Varnish. That's very likely. Such options affect the whole TCP stack, not a particular application. > We have now turned the option off temporarily to see if that helps; > it's only been half an hour, but no problems yet, so I'm optimistic. I > will let you know when we have confirmed that the problem has > definitely been solved. That would be good. > Apparently there's a safer option that serves an almost identical > purpose, net.ipv4.tcp_tw_reuse. We are going to try enabling that one > later. That's the one I'm using ;-) Cheers, Willy

