]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Reduce security group db calls to neutron server
authorZHU ZHU <zhuzhubj@cn.ibm.com>
Fri, 5 Sep 2014 08:01:07 +0000 (03:01 -0500)
committerZHU ZHU <zhuzhubj@cn.ibm.com>
Sat, 11 Oct 2014 09:59:22 +0000 (04:59 -0500)
commit524981cce05a9b365036c0a1e9810036936d3d5b
tree676e2b4465489b426caafc3a1ac1d9c25b686781
parent53c91040d6e38207bf2104d2105a66a5f8830472
Reduce security group db calls to neutron server

Within ovs agent daemon loop, prepare_devices_filter will impose heavy workloads
to neutron server in order to retrieve the security groups message to apply
firewall rules. If agent is configured to use Noopfirewall driver or security
groups are disabled, there is no need for loading the rules from server and
refreshing the firewalls. This will reduce the number of db calls and improve
performance for neutron server in this case.

Change-Id: Id244aab3cac37fc6ed3dc05cbee91cdf9e34d9cc
Closes-Bug: #1365806
neutron/agent/securitygroups_rpc.py
neutron/tests/unit/test_security_groups_rpc.py