Skip to content

Commit b33eedd

Browse files
committed
Increase size of connection tracking table
We have seen occurences of Cinder or Glance activity filling up the conntrack table. This has been seen on controllers and storage nodes (Ceph). We have also seen large amounts of traffic to an Octavia amphora causing the conntrack table of a compute host to fill up. Quadruple the maximum size of the table on these hosts (the default size is 262,144 for hosts with more than 4 GiB of memory [1]). Monitoring hosts are left unchanged since they are believed to be unaffected. [1] https://www.kernel.org/doc/Documentation/networking/nf_conntrack-sysctl.txt
1 parent c74aad8 commit b33eedd

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

etc/kayobe/compute.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@
106106
# Compute node sysctl configuration.
107107

108108
# Dict of sysctl parameters to set.
109-
#compute_sysctl_parameters:
109+
compute_sysctl_parameters:
110+
net.netfilter.nf_conntrack_max: 1048576
110111

111112
###############################################################################
112113
# Compute node tuned configuration.

etc/kayobe/controllers.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@
115115
# Controller node sysctl configuration.
116116

117117
# Dict of sysctl parameters to set.
118-
#controller_sysctl_parameters:
118+
controller_sysctl_parameters:
119+
net.netfilter.nf_conntrack_max: 1048576
119120

120121
###############################################################################
121122
# Controller node tuned configuration.

etc/kayobe/storage.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@
111111
# Storage node sysctl configuration.
112112

113113
# Dict of sysctl parameters to set.
114-
#storage_sysctl_parameters:
114+
storage_sysctl_parameters:
115+
net.netfilter.nf_conntrack_max: 1048576
115116

116117
###############################################################################
117118
# Storage node tuned configuration.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
fixes:
3+
- |
4+
Increases maximum size of connection tracking tables to 1,048,576 entries
5+
on controllers, compute and storage hosts. This is to work around loss of
6+
connectivity when the conntrack table becomes full under high Cinder/Glance
7+
activity or high traffic to Octavia amphorae.

0 commit comments

Comments
 (0)