octavia/octavia
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
..
amphorae Set sensible nf_conntrack_max value in amphora 2022-06-24 10:25:55 +02:00
api Deny the creation of L7Policies for HTTPS/TCP/UDP listeners 2022-04-27 10:13:02 +02:00
certificates Fix pylint checks 2021-08-24 17:08:34 +00:00
cmd Add generic network interface management in the amphora 2021-08-31 17:21:37 +02:00
common Reject invalid whitespace in HM url_path value 2022-05-05 18:12:15 +02:00
compute Add retry for getting amphora VM 2021-03-01 09:44:41 +00:00
controller Merge "Optimize DB object to provider dict conversions" into stable/xena 2022-04-21 11:44:27 +00:00
db Fix new errors with SQLAlchemy 1.4 2021-06-18 11:25:48 +02:00
distributor Fix new pylint errors 2020-08-21 15:00:27 +02:00
hacking Gate-Fix: Replace Octavia hacking O349 with H216 2021-04-21 22:25:38 +00:00
image Introduce an image driver interface 2020-09-03 20:06:35 +00:00
network Fix unplugging member ports 2022-02-22 14:00:21 +01:00
policies Fix oslo policy DeprecatedRule warnings 2021-07-12 13:10:27 -05:00
statistics Refactoring amphora stats driver interface 2020-09-08 15:32:04 -07:00
tests Merge "Fix compile_amphora_details when using UDP listeners" into stable/xena 2022-06-06 23:30:39 +00:00
volume Fix new pylint errors 2020-08-21 15:00:27 +02:00
__init__.py Remove all usage of six library 2020-03-18 17:15:26 -04:00
i18n.py Remove _LI, _LW, _LE, _LC from i18n 2017-05-23 16:28:29 +07:00
opts.py Refactoring amphora stats driver interface 2020-09-08 15:32:04 -07:00
version.py Adds methods in version.py for proper oslo_reports setup 2016-06-07 11:51:26 +03:00