Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set conntrack max and hashsize on startup #165

Merged
merged 7 commits into from
Sep 1, 2023
Merged

Conversation

majst01
Copy link
Contributor

@majst01 majst01 commented Aug 31, 2023

Solves metal-stack/metal-images#201

before:

# cat /proc/sys/net/netfilter/nf_conntrack_max
262144

After:

Sep 01 09:40:11 shoot--pbs4kr--inttest0-firewall-a67d3 ip[181903]: {"level":"info","timestamp":"2023-09-01T09:40:11+02:00","caller":"sysctl/sysctl.go:35","msg":"set sysctl value","key":"/net/netfilter/nf_conntrack_max","value":4194304}
Sep 01 09:40:11 shoot--pbs4kr--inttest0-firewall-a67d3 ip[181903]: {"level":"info","timestamp":"2023-09-01T09:40:11+02:00","caller":"sysctl/sysctl.go:44","msg":"set module value","key":"/nf_conntrack/parameters/hashsize","value":4194304}
Sep 01 09:40:11 shoot--pbs4kr--inttest0-firewall-a67d3 ip[181903]: {"level":"info","timestamp":"2023-09-01T09:40:11+02:00","caller":"sysctl/sysctl.go:57","msg":"sysctl and module parameters set","conntrack max":4194304,"hash size":4194304}

# cat /proc/sys/net/netfilter/nf_conntrack_max
4194304
# cat /sys/module/nf_conntrack/parameters/hashsize
4194304

@majst01 majst01 requested a review from a team as a code owner August 31, 2023 13:01
@majst01 majst01 changed the title set conntrack max on startup set conntrack max and hashsize on startup Sep 1, 2023
pkg/sysctl/sysctl.go Outdated Show resolved Hide resolved
pkg/sysctl/sysctl.go Outdated Show resolved Hide resolved
@Gerrit91 Gerrit91 merged commit 877edd8 into master Sep 1, 2023
2 checks passed
@Gerrit91 Gerrit91 deleted the raise-conntrac-max branch September 1, 2023 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants