neutron/neutron/tests/functional/agent
LIU Yulong 0b9f4f275c Dynamically increase l3 router process queue green pool size
There is a race condition between nova-compute boots instance and
l3-agent processes DVR (local) router in compute node. This issue
can be seen when a large number of instances were booted to one
same host, and instances are under different DVR router. So the
l3-agent will concurrently process all these dvr routers in this
host at the same time.
For now we have a green pool for the router ResourceProcessingQueue
with 8 greenlet, but some of these routers can still be waiting, event
worse thing is that there are time-consuming actions during the router
processing procedure. For instance, installing arp entries, iptables
rules, route rules etc.
So when the VM is up, it will try to get meta via the local proxy
hosting by the dvr router. But the router is not ready yet in that
host. And finally those instances will not be able to setup some
config in the guest OS.

This patch adds a new measurement based on the router quantity to
indicate the L3 router process queue green pool size. The pool size
will be limit from 8 (original value) to 32, because we do not want
the L3 agent cost too much host resource on processing router in the
compute node.

Conflicts:
    neutron/tests/functional/agent/l3/test_legacy_router.py


Related-Bug: #1813787
Change-Id: I62393864a103d666d5d9d379073f5fc23ac7d114
(cherry picked from commit 837c9283ab)
2020-05-26 15:30:13 +00:00
..
l2 Ignore first local port update notification 2019-07-10 18:15:24 +00:00
l3 Dynamically increase l3 router process queue green pool size 2020-05-26 15:30:13 +00:00
linux Check the namespace is ready in test_mtu_update tests 2019-09-16 09:30:43 +00:00
windows Fix pep8 errors 2018-04-11 01:10:49 +09:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
test_dhcp_agent.py Change ip_lib network namespace code to use pyroute2 2017-10-04 21:09:28 +00:00
test_firewall.py Merge "ovs-fw: Fix firewall blink" 2018-03-23 12:11:10 +00:00
test_l2_lb_agent.py LB Trunk: Stop matching MAC of subport to port model 2017-03-01 14:10:00 +00:00
test_l2_ovs_agent.py Stop OVS agent before starting it again 2019-08-12 12:11:05 +00:00
test_ovs_flows.py of_interface: Implement bundled() method 2018-04-18 18:33:55 +09:00
test_ovs_lib.py [OVS] Add mac-table-size to be set on each ovs bridge 2018-06-08 16:26:35 +02:00