]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Improve DVR scale performance
authorErik Colnick <erik.colnick@hp.com>
Fri, 23 Jan 2015 19:16:28 +0000 (12:16 -0700)
committerErik Colnick <erik.colnick@hp.com>
Thu, 19 Mar 2015 13:21:53 +0000 (07:21 -0600)
commitb96a22661290ce2ea747537512eab2fb767679e6
tree71f65bbe20621f912cfbaee3f5ab17193e92c00b
parentd0589051adec39fc3d70554aa919db0bedfd73b2
Improve DVR scale performance

Only process floating ips on a router that are relevant to the agent
hosting the router (don't process floating ips assigned to a router
if the associated vm is not hosted on the compute node requesting the
router sync). In this way, the number of database calls made during
the DVR router updates is optimized to eliminate unnecessary
duplication of calls which return the same data or are made to get
data for routers which are not relevant to the sync_routers request
from the agent.

Change-Id: I4e8477bb61ffff164d2f3bbebb94e95a25838ce0
Partial-Bug: #1413314
neutron/db/l3_dvr_db.py
neutron/db/l3_dvrscheduler_db.py
neutron/db/l3_hamode_db.py
neutron/tests/unit/db/test_l3_dvr_db.py