]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
DVR: notify specific agent when creating floating ip
authorOleg Bondarev <obondarev@mirantis.com>
Mon, 5 Oct 2015 14:34:45 +0000 (17:34 +0300)
committerOleg Bondarev <obondarev@mirantis.com>
Mon, 12 Oct 2015 12:19:40 +0000 (12:19 +0000)
commit865dc46bc5687813c746ad490be6f534f46f518d
treeedabad412e0a8d74ac3093652f795c37da869699
parent396a5b4e5050df444e3d2fcadd5540d37b2fa4fa
DVR: notify specific agent when creating floating ip

Currently when floating ip is created, a lot of useless action
is happening: floating ip router is scheduled, all l3 agents where
router is scheduled are notified about router update, all agents
request full router info from server. All this becomes a big
performance problem at scale with lots of compute nodes.

In fact on (associated) Floating IP creation we really need
to notify specific l3 agent on compute node where associated
VM port is located and do not need to schedule router and
bother other agents where rourter is scheduled. This should
significally decrease unneeded load on neutron server at scale.

Partial-Bug: #1486828
Change-Id: I0cbe8c51c3714e6cbdc48ca37135b783f8014905
neutron/api/rpc/agentnotifiers/l3_rpc_agent_api.py
neutron/db/l3_db.py
neutron/db/l3_dvr_db.py
neutron/tests/functional/services/l3_router/test_l3_dvr_router_plugin.py