neutron/neutron/tests/unit/agent
Kevin Benton d7aeb8dd4b De-dup conntrack deletions before running them
During a lot of port deletions, the OVS agent will
build up a lot of remote security group member updates
for a single device. Once the call to delete all
of the removed remote IP conntrack state gets issued,
there will be many duplicated entries for the same
device in the devices_with_updated_sg_members dicionary
of lists.

This results in many duplicated calls to remove conntrack
entries that are just a waste of time. The longer it takes
to remove conntrack entries, the more of these duplicates
build up for other pending changes, to the point where there
can be hundreds of duplicate calls for a single device.

This just adjusts the conntrack manager clearing logic to
make sure it de-duplicates all of its delete commands before
it issues them.

In a local test on a single host I have 11 threads create
11 ports each, plug them into OVS, and then delete them.
Here are the number of conntrack delete calls issued:

Before this patch - ~232000
With this patch - ~5200

While the remaining number still seems high, the agent is now
fast enough to keep up with all of the deletes.

Closes-Bug: #1513765
Change-Id: Icba88ab47ee17bf5d6ccdfc0f78bec911987ca90
2016-03-16 01:27:46 -07:00
..
common Make run_ofctl check for socket error 2016-03-01 13:42:50 -08:00
dhcp DHCP: Downgrade 'network has been deleted' logs 2016-03-10 17:04:44 -08:00
l2 QOS: get rid of warnings for unit tests 2016-02-16 01:26:54 -08:00
l3 Add fip nat rules even if router disables shared snat 2016-03-08 09:21:34 +00:00
linux De-dup conntrack deletions before running them 2016-03-16 01:27:46 -07:00
metadata Stop using non-existent method of Mock 2016-02-18 11:32:49 +08:00
ovsdb ovsdb: attempt to enable connection_uri for native impl on startup 2015-06-25 10:09:42 +02:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
test_rpc.py Deprecate new= argument from create_connection 2015-11-06 13:27:37 +01:00
test_securitygroups_rpc.py Merge "Add address scopes support to the L3 agent" 2016-02-09 04:00:14 +00:00