A service must handle a 10× traffic spike for a sale event next week. As the Linux admin, what do you prepare on the hosts?
AdvancedScenarioMigrations, performance and fleet operations
Answer
Situation read → Remove host-level limits before they become the bottleneck.
What I'd do →
- Load-test to find the first limit.
- Raise
LimitNOFILEfor the service,net.core.somaxconn,tcp_max_syn_backlog, ephemeral port range. - Check conntrack size if using NAT/firewalls:
net.netfilter.nf_conntrack_max. - Ensure log volume won't fill disks (rotate by size, ship off-host).
- Pre-scale instances and warm caches; confirm autoscaling and alerts.
Why → Under 10× load, kernel tables (fds, conntrack, backlog) overflow before CPU does.
Interview tip → Conntrack table full ("nf_conntrack: table full, dropping packet") is a classic surprise at peak.
More on Migrations, performance and fleet operations
You must migrate 2 TB of application data from an old server to a new one with less than 5 minutes of downtime. How?IntermediateThe new server has different UIDs for the same users than the old one. What breaks during migration and how do you handle it?IntermediateA server is "slow" according to users. What is your first 60 seconds of investigation?BeginnerYour team must capacity-plan for a server whose disk grows 4% per week. How do you predict when it fills?IntermediateYou need to replace a physical server with a VM without changing its IP or hostname. Plan the cutover.IntermediateMemory usage on a server shows 95% used but the app is fine. A manager is worried. How do you explain and verify?Beginner