On Concurrent Connections and Linux Settings

There are several settings in Linux kernel to limit the number of concurrent connections and the timing aspect of it:

net.core.somaxconn=40960
// the maximum number of open connections per second

net.ipv4.tcp_max_syn_backlog=20480
// the maximum number of connections that can remain unclosed incase of delay in processing

net.ipv4.tcp_fin_timeout=1
// the maximum number of seconds the connection can remain open waiting for processing. And if longer than that, it gets cancelled.

Usually the timeout is longer than 1 second. In that cases, the concurrent connections and connections per second will differ a lot. 

If you liked this post, please help up by spreading the word or by following us through email. Thank you 🙂