I'm running comet server on linux (Debian).
All the connections are proxied by nginx.
And my time_wait/established rate is too big (50k/15k) although I set reuse_connections.
I'd like to reduce this huge amount of unneeded connections in time_wait state.
Here is my sysctl.conf rules:
net.ipv4.tcp_tw_reuse = 1 net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_keepalive_time = 60 net.ipv4.tcp_fin_timeout = 3 net.ipv4.tcp_max_tw_buckets = 360000 net.ipv4.tcp_keepalive_probes=3
Could you give me some clue on how to reduce time_waits?