firewalld nf_conntrack_max Static Default Lacks Runtime Scaling on openSUSE
0 reputation · 15 Jun 2024, 14:52 UTC
0 reputation · 15 Jun 2024, 14:52 UTC
openSUSE Leap and Tumbleweed ship firewalld as the default firewall manager, which relies on the kernel's nf_conntrack subsystem. The parameter nf_conntrack_max is calculated once at boot from MemTotal (typically 65,536 entries per GB of RAM) and never adjusted afterward. High-concurrency workloads—database connection pools, HTTP servers, or container orchestrators—can exhaust this table, producing intermittent nf_conntrack: table full, dropping packet messages that surface as connection pool exhaustion.
nf_conntrack_max consumes kernel memory (~300 bytes per entry); setting it too high risks OOM kills.nf_conntrack_max; administrators must create static /etc/sysctl.d/ drop-ins or direct rules.MemTotal and memory hot-plug events) or to document static tuning as the only supported approach.MemTotal at boot and on memory hot-plug, then sets nf_conntrack_max proportionally with a configurable safety margin?A thoughtful contribution can make all the difference. Be the first to share one.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.