octavia/octavia/amphorae/backends
Tom Weininger 4ea8953a69 Set sensible nf_conntrack_max value in amphora
This sets the values of nf_conntrack_max and nf_conntrack_expect_max to
sensible values. Previously, the default values set by the kernel were
used, which limited net.netfilter.nf_conntrack_max to 32768. On the
other hand, Octavia sets nf_conntrack_buckets to 125000. A value of
nf_conntrack_max lower than half of that makes no sense.

The new values are calculated using the formula for the default value
in the kernel [1]:

nf_conntrack_max = nf_conntrack_buckets
nf_conntrack_expect_max = nf_conntrack_buckets / 256

[1]: https://www.kernel.org/doc/Documentation/networking/nf_conntrack-sysctl.rst

Story: 2010050
Task: 45460
Change-Id: Id1dd029995d41e6913a07eeb120c889d71d583eb
(cherry picked from commit 3d3e38afe9)
(cherry picked from commit 78603681cc)
(cherry picked from commit 33eaff55fc)
(cherry picked from commit d0adca9a34)
2022-06-24 10:26:34 +02:00
..
agent Set sensible nf_conntrack_max value in amphora 2022-06-24 10:26:34 +02:00
health_daemon Fix pep8 failures in gate 2020-11-16 18:54:48 +00:00
utils Merge "Fix AttributeError in exception handler" into stable/victoria 2022-04-27 16:47:13 +00:00
__init__.py Add license for empty __init__.py 2018-03-14 07:02:56 +09:00