Interview Prep/Linux/Logs, Limits & High-Traffic Tuning

What is `tcp_max_syn_backlog`, and how do SYN cookies relate?

AdvancedProductionLogs, Limits & High-Traffic Tuning
Answer

net.ipv4.tcp_max_syn_backlog sizes the queue of half-open connections (SYN received, waiting for the final ACK). Under a SYN flood or huge connection bursts it fills; with net.ipv4.tcp_syncookies=1 the kernel then answers with SYN cookies (encoding state in the sequence number) instead of dropping, so legitimate clients still connect. Logs show possible SYN flooding on port 443. Sending cookies. On busy front-ends, raise the backlog and keep syncookies on.

All Linux questions Roadmap: Linux

More on Logs, Limits & High-Traffic Tuning