Linux – I’m designing a system to handle 10000 TCP connections per second, what problems will I run into

high-volumejavalinuxnetworkingtcp

I have a relatively new 8-core box running CentOS. I would like to develop a stats server that uses TCP. It's very simple, it accepts a TCP connection, increments a counter and closes the connection. The catch is it needs to do this at at least 10k requests a second. I'm suspecting CPU/Memory won't be a problem, but I'm more concerned about artificial limits (like half-open connections) that I might need to configure on my server to allow for this kind of volume. So, is this possible? Which settings should I be aware of? Will my NIC not be able to handle it?

Best Answer

This is commonly known as the c10k problem. That page has lots of good info on the problems you will run into.

Related Topic