octavia/releasenotes/notes/catch_validation-27ffe48ca187c46f.yaml
Mohammed Naser e0a9ba1560 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
2022-08-31 22:50:35 +08:00

9 lines
309 B
YAML

---
fixes:
- |
In order to avoid hitting the Neutron API hard
when batch update with creating many new members, we cache the
subnet validation results in batch update members API call.
We also change to validate new members only during batch update
members since subnet ID is immutable.