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.
More on Logs, Limits & High-Traffic Tuning
How does log management work on a modern Linux server?BeginnerWhy centralize logs instead of reading them on each server?BeginnerWrite a logrotate config for an application log.BeginnerWhat is the difference between `copytruncate` and `create` + postrotate signal?IntermediateLogs rotated but disk usage did not drop. Why?IntermediateHow often does logrotate run, and why does `maxsize` sometimes not trigger in time?Intermediate