We are running haproxy in production for around 10k+ concurrent users. But we are seeing lot of FIN_WAIT2, CLOSE_WAIT , LAST_ACK and TIME_WAIT in the netstat output. This output is on a 8G ubuntu-12.04 node.
8046 CLOSE_WAIT 1 CLOSING 1 established) 40869 ESTABLISHED 1212 FIN_WAIT1 7575 FIN_WAIT2 1 Foreign 2252 LAST_ACK 7 LISTEN 143 SYN_RECV 4920 TIME_WAIT
Can someone please tell me what tweaking I need to do?
Please note that all these connections are persistent connections.
tcp_fin_timeout = 30 tcp_keepalive_time = 1800
Right now, the application is working fine. But wondering will be there any issues as we add more users to this haproxy node.