130655cdb98f493d0ceda72e2c3a0649c3d9024d

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 Closes-Bug: #1923161 Change-Id: I0ab836ac09225f4f3ad435e9ceaf315018855d52
OpenStack Neutron
Neutron is an OpenStack project to provide "network connectivity as a service" between interface devices (e.g., vNICs) managed by other OpenStack services (e.g., Nova).
To learn more about neutron:
- Documentation: https://docs.openstack.org/neutron/latest/
- Features: https://specs.openstack.org/openstack/neutron-specs
- Defects: https://launchpad.net/neutron
- Release notes: https://docs.openstack.org/releasenotes/neutron/index.html
- Source: https://opendev.org/openstack/neutron
Get in touch via email. Use [Neutron] in your subject.
To learn how to contribute, please read the CONTRIBUTING.rst file.
Description
Languages
Python
99.7%
Shell
0.3%