Comment 10 for bug 1513678

Reviewed: https://review.openstack.org/258403
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=5bbff07beb5e22ba365c3073043e0c1f03811c99
Submitter: Jenkins
Branch: stable/liberty

commit 5bbff07beb5e22ba365c3073043e0c1f03811c99
Author: Swaminathan Vasudevan <email address hidden>
Date: Thu Nov 5 17:00:49 2015 -0800

    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

    Conflicts:

     neutron/scheduler/l3_agent_scheduler.py

    Change-Id: I8f781d4cbc996ce13441303c9296e4f6ec822b94
    (cherry picked from commit 411e6ff1570f9508424eb985201943e881084d7a)