octavia/octavia/amphorae/backends/agent/api_server
Tom Weininger 33eaff55fc 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)
2022-06-24 10:25:55 +02:00
..
templates Set sensible nf_conntrack_max value in amphora 2022-06-24 10:25:55 +02:00
__init__.py Fix multi-listener load balancers 2019-07-23 14:28:49 -07:00
amphora_info.py Fix new pylint issues 2022-06-08 20:37:42 +00: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 Fix pylint checks 2021-08-24 17:08:34 +00:00
keepalivedlvs.py Fix pylint checks 2021-08-24 17:08:34 +00:00
loadbalancer.py Save the HAProxy state outside of its systemd unit 2022-04-20 16:35:01 +02:00
lvs_listener_base.py Add SCTP support in Amphora 2021-01-29 13:58:39 +01:00
osutils.py Add generic network interface management in the amphora 2021-08-31 17:21:37 +02:00
plug.py Add generic network interface management in the amphora 2021-08-31 17:21:37 +02:00
server.py Add generic network interface management in the amphora 2021-08-31 17:21:37 +02:00
util.py Preserve haproxy server states during reloads 2022-02-08 11:33:33 +01:00