octavia/octavia/amphorae/backends/agent/api_server
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
..
templates Set sensible nf_conntrack_max value in amphora 2022-06-24 10:26:34 +02:00
__init__.py Fix multi-listener load balancers 2019-07-23 14:28:49 -07:00
amphora_info.py Fix compile_amphora_details when using UDP listeners 2022-04-29 08:12:27 +02:00
certificate_update.py Fix py3 amphora-agent cert-rotation type bug 2020-04-14 06:48:43 -07:00
haproxy_compatibility.py Support haproxy development snapshot version parsing 2020-01-27 15:07:05 +01:00
keepalived.py Refactor the failover flows 2020-06-18 16:25:21 -07:00
keepalivedlvs.py Fix pep8 failures in gate 2020-11-16 18:54:48 +00:00
loadbalancer.py Save the HAProxy state outside of its systemd unit 2022-04-20 16:41:44 +02:00
osutils.py Enable lo interface in the amphora-haproxy netns 2021-07-01 09:03:36 +02:00
plug.py Remove all usage of six library 2020-03-18 17:15:26 -04:00
server.py Fix pep8 failures in gate 2020-11-16 18:54:48 +00:00
udp_listener_base.py Remove all usage of six library 2020-03-18 17:15:26 -04:00
util.py Preserve haproxy server states during reloads 2022-02-08 11:36:23 +01:00