]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Tune _get_candidates for faster scheduling in dvr
authorSwaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Fri, 6 Nov 2015 01:00:49 +0000 (17:00 -0800)
committerSwaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Tue, 15 Dec 2015 17:54:38 +0000 (09:54 -0800)
commit411e6ff1570f9508424eb985201943e881084d7a
treea9471232849f2e19dd0279b4c5523175128560ff
parent06242d6dbfec0a3b12b992440d35669cc02bec3d
Tune _get_candidates for faster scheduling in dvr

Right now we have seen some performance issues when
dvr routers are scheduled on multiple compute nodes
with thousands of VMs on the routed subnets.

The _get_candidates call get_l3_agent_candidates with
a complete list of agents irrespective of the routers
already hosted on the agents or not.

So this fix will reduce the amount of iterations that
get_l3_agent_candidates need to process for all the
agents and would increase the control plane performance.

Closes-Bug: #1513678
Change-Id: I8f781d4cbc996ce13441303c9296e4f6ec822b94
neutron/scheduler/l3_agent_scheduler.py
neutron/tests/unit/scheduler/test_l3_agent_scheduler.py