neutron/neutron/tests/unit/db
Oleg Bondarev 342814db72 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:01:20 +00:00
..
metering Add source_ip_prefix and destination_ip_prefix to metering label rules 2020-09-30 12:26:01 +00:00
quota Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
test__utils.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_agents_db.py Set process name for agents 2020-07-01 12:28:29 +02:00
test_agentschedulers_db.py DHCP notification optimization 2021-04-23 10:01:20 +00:00
test_allowedaddresspairs_db.py Switch to new engine facade in test_allowedaddresspairs_db module 2020-03-20 02:18:04 +01:00
test_db_base_plugin_common.py Replace to_dict() calls with a function decorator 2015-08-03 11:42:25 +03:00
test_db_base_plugin_v2.py Auto-remove floating agent gw ports on net/subnet delete 2021-01-26 10:55:25 +00:00
test_dvr_mac_db.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_extraroute_db.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_ipam_backend_mixin.py [OVN] Allow IP allocation with different segments for OVN service ports 2020-07-22 07:38:49 +00:00
test_ipam_pluggable_backend.py [OVN] Allow IP allocation with different segments for OVN service ports 2020-07-22 07:38:49 +00:00
test_l3_db.py Remove _router_exists method 2020-07-07 18:03:14 +00:00
test_l3_dvr_db.py Revert "DVR: Remove control plane arp updates for DVR" 2021-03-09 13:07:17 +00:00
test_l3_hamode_db.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_migration.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_ovn_hash_ring_db.py ovn: Always use UTC for Hash ring timestamps 2020-09-08 12:09:48 -04:00
test_ovn_revision_numbers_db.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_portsecurity_db.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_portsecurity_db_common.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_provisioning_blocks.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_rbac_db_mixin.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_securitygroups_db.py Don't try to create default SG when security groups are disabled 2021-02-08 10:31:04 +00:00
test_segments_db.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00