Skip to content

Commit 38885cf

Browse files
authored
Increase net.netfilter.nf_conntrack_max (#871)
1 parent bbcf6cd commit 38885cf

File tree

1 file changed

+4
-1
lines changed
  • ansible/roles/host_setup/defaults

1 file changed

+4
-1
lines changed

ansible/roles/host_setup/defaults/main.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ host_rp_filter_all: 0
4242
host_rp_filter_default: 0
4343

4444
# Set the maximum size of the connection tracking table.
45-
host_nf_conntrack_max: 262144
45+
host_nf_conntrack_max: 1048576
46+
host_nf_conntrack_buckets: 262144
4647

4748
# System control kernel tuning
4849
kernel_options:
@@ -106,6 +107,8 @@ kernel_options:
106107
value: "{{ set_gc_val | int * 2 }}"
107108
- key: 'net.netfilter.nf_conntrack_max'
108109
value: "{{ host_nf_conntrack_max }}"
110+
- key: 'net.netfilter.nf_conntrack_buckets'
111+
value: "{{ host_nf_conntrack_buckets }}"
109112
- key: 'vm.dirty_background_ratio'
110113
value: 5
111114
- key: 'vm.dirty_ratio'

0 commit comments

Comments
 (0)