]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Improve l3-agent performance and prevent races in it.
authorNachi Ueno <nachi@ntti3.com>
Fri, 12 Jul 2013 19:21:46 +0000 (12:21 -0700)
committerNachi Ueno <nachi@ntti3.com>
Tue, 16 Jul 2013 13:05:17 +0000 (06:05 -0700)
commit57e1fa32648a28ae83e3c3033258fe08de2e5fca
tree090e6a1b3e8ddafd1e62a559037b0f22f720f24e
parentbd18990d787b6c8b2e762bc9ec60d26714c2e1cb
Improve l3-agent performance and prevent races in it.

Fixes bug 1194026
Fixes bug 1200749

Introduce a looping call for performing synchronization with
neutron server.
The sync will be performed only if router changes are notified
via rpc. Only affected routers will be synchronized.

Changes will be implemented by the l3 agent spawning a
distinct greenthread for each router - iptables will
be executed only once using iptables_manager.defer_apply_on.

This patch will prevent the occurence of the following issues:
- Out-of-order rpc message processing
- Long processing time for router changes due to serial execution
- Occasional and expected RPC blocks for long periods
- Unnecessary processing of multiple requests

Change-Id: I0978d1c38ac5c38c4548e5b1877857bb5cac3b81
neutron/agent/l3_agent.py
neutron/api/rpc/agentnotifiers/l3_rpc_agent_api.py
neutron/db/agentschedulers_db.py
neutron/db/l3_db.py
neutron/scheduler/l3_agent_scheduler.py
neutron/tests/unit/openvswitch/test_agent_scheduler.py
neutron/tests/unit/test_l3_agent.py