System Design Basics: How a Single Server Hits Its Limits Before Scaling
A technical deep-dive into single-machine server limits explains why understanding individual resource ceilings matters before tackling distributed systems. Every TCP connection consumes a file descriptor (FD), and Linux defaults cap these at 1,024 per process, causing new connections to be refused once the limit is hit regardless of available CPU or memory. HTTP Keep-Alive improves efficiency by reusing connections but silently holds FDs open for idle users, a subtle trap that can exhaust server resources. On the outbound side, TIME_WAIT forces closed TCP ports into a 60–120 second cooldown, potentially locking up all 65,000 ephemeral ports on high-traffic proxy servers. The core argument is that engineers often monitor the wrong resource metrics, and correctly identifying which ceiling a server hits under load determines the right fix.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in