octavia/octavia
Mohammed Naser b8fe15b649 Cache subnets validation for batch member update
At the moment, we are actually going ahead and sending
an API request for every single member when doing a batch
update, this can be very expensive in large number of
members and will cause a big hit against the Neutron API,
it potentially also makes those API calls timeout.

This patch instead implements a simple cache (per batch
call) to simply store the subnets which are considered valid
which means that it will make significantly less calls,
potentially even one.

It also adjusts the behaviour so that it only runs this on newly
added members which should avoid running it for deleted and
updated members which won't have an effect in this change.

Change-Id: I24ec7dc3b18111c126bcfdaa0780bfd7993020fb
(cherry picked from commit e0a9ba1560)
2022-09-01 17:29:47 +00:00
..
amphorae Set sensible nf_conntrack_max value in amphora 2022-06-24 10:26:34 +02:00
api Cache subnets validation for batch member update 2022-09-01 17:29:47 +00:00
certificates Fix pep8 failures in gate 2020-11-16 18:54:48 +00:00
cmd Fix pep8 failures in gate 2020-11-16 18:54:48 +00:00
common Reject invalid whitespace in HM url_path value 2022-05-05 18:13:30 +02:00
compute Fix pep8 failures in gate 2020-11-16 18:54:48 +00:00
controller Fix HealthMonitorToErrorOnRevertTask revert method 2022-07-19 17:32:53 +02:00
db Optimize CountPoolChildrenForQuota task in amphorav2 2021-05-17 09:37:49 +02:00
distributor Fix new pylint errors 2020-08-21 15:00:27 +02:00
hacking Use unittest.mock instead of mock 2020-06-09 11:25:00 -04:00
image Introduce an image driver interface 2020-09-03 20:06:35 +00:00
network Fix unplugging member ports 2022-02-22 14:04:13 +01:00
policies Add amphora delete API 2020-09-03 13:34:07 -07:00
statistics Refactoring amphora stats driver interface 2020-09-08 15:32:04 -07:00
tests Cache subnets validation for batch member update 2022-09-01 17:29:47 +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