neutron/neutron/api/rpc/agentnotifiers
Oleg Bondarev 48b30783c0 DHCP notification optimization
DHCP notification is done after each create/update/delete for
network, subnet and port.
This notification currently has to retrieve network from DB almost
every time, which is a quite heavy DB request and hence affects
performance of port and subnet CRUD.

This patch suggests 2 optimizations:
- do not fetch network if not needed (only fetch when schedule needed)
- for port and subnet AFTER_CREATE event pass network dict from plugin

According to Rally tests these changes improve performance:
- port create ~20%
- port update ~20%
- subnet create ~15%
- port delete and subnet update/delete - not tested

Conflicts:
     neutron/api/rpc/agentnotifiers/dhcp_rpc_agent_api.py

Closes-Bug: #1923161
Change-Id: I0ab836ac09225f4f3ad435e9ceaf315018855d52
(cherry picked from commit 130655cdb9)
2021-04-23 10:02:14 +00:00
..
__init__.py Remove invalid copyright headers under API module 2014-04-02 11:09:03 -07:00
dhcp_rpc_agent_api.py DHCP notification optimization 2021-04-23 10:02:14 +00:00
l3_rpc_agent_api.py remove neutron.common.rpc 2019-02-06 11:05:55 -07:00
metering_rpc_agent_api.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
utils.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00