Random connection failures and 5xx across many services on one node; `dmesg` shows "nf_conntrack: table full, dropping packet".

AdvancedTroubleshooting5xx errors
Answer

Likely causes → The node's connection tracking table is full. Every new connection (including DNS over UDP) is dropped. Triggers: lots of short-lived connections, a connection-leaking client, or a DDoS.

Diagnose →

cat /proc/sys/net/netfilter/nf_conntrack_count /proc/sys/net/netfilter/nf_conntrack_max
conntrack -L 2>/dev/null | awk '{print $1,$4}' | sort | uniq -c | sort -nr | head

Fix → Raise net.netfilter.nf_conntrack_max (kube-proxy's conntrack.maxPerCore on Kubernetes), and find the client creating connections without reuse.

Prevent → Alert on conntrack usage above 75%, use connection pooling, and consider NodeLocal DNSCache to cut UDP conntrack entries.

All Real-World Interview questions Roadmap: Interview readiness

More on 5xx errors