← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1923161] [NEW] DHCP notification could be optimized

 

Public bug reported:

DHCP notification is done after each create/update/delete for
network, subnet and port [1].

This notification currently has to retrieve network from DB each time,
which is a quite heavy DB request and hence affects performance of
port and subnet CRUD [2].

2 proposals:
- not fetch network when it's not needed
- pass network dict from plugin

[1]
https://github.com/openstack/neutron/blob/bdd661d21898d573ef39448316860aa4c692b834/neutron/api/rpc/agentnotifiers/dhcp_rpc_agent_api.py#L111-L120

[2]
https://github.com/openstack/neutron/blob/bdd661d21898d573ef39448316860aa4c692b834/neutron/api/rpc/agentnotifiers/dhcp_rpc_agent_api.py#L200

** Affects: neutron
     Importance: Wishlist
     Assignee: Oleg Bondarev (obondarev)
         Status: In Progress


** Tags: loadimpact

** Changed in: neutron
       Status: New => In Progress

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1923161

Title:
  DHCP notification could be optimized

Status in neutron:
  In Progress

Bug description:
  DHCP notification is done after each create/update/delete for
  network, subnet and port [1].

  This notification currently has to retrieve network from DB each time,
  which is a quite heavy DB request and hence affects performance of
  port and subnet CRUD [2].

  2 proposals:
  - not fetch network when it's not needed
  - pass network dict from plugin

  [1]
  https://github.com/openstack/neutron/blob/bdd661d21898d573ef39448316860aa4c692b834/neutron/api/rpc/agentnotifiers/dhcp_rpc_agent_api.py#L111-L120

  [2]
  https://github.com/openstack/neutron/blob/bdd661d21898d573ef39448316860aa4c692b834/neutron/api/rpc/agentnotifiers/dhcp_rpc_agent_api.py#L200

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1923161/+subscriptions


Follow ups