neutron/neutron/tests/unit/agent
yangjianfeng 056e049e2b Improve port dhcp Provisioning
Currently, the dhcp Provisioning of ports is the crucial bottleneck
of that concurrently boot multiple VM.

The root cause is that these ports will be processed one by one by dhcp
agent when they belong to the same network, And the 'Provisioning complete'
port is still blocked other port's processing in other dhcp agents. The
patch aim to optimize the dispatch strategy of the port cast to agent to
improve the Provisioning process.

In server side, I classify messages to multi levels. Especially, I classify
the port_update_end or port_create_end message to two levels, the high-level
message only cast to one agent, the low-level message cast to all agent. In
agent side I put these messages to `resource_processing_queue`, with the queue,
We can delete `_net_lock` and process these messages in order of priority.

Additonally, I modified the `resource_processing_queue` for my demand. I update
`_queue` from LIST to PriorityQueue in `ExclusiveResourceProcessor`, by this
way, we can sort all message which cached in `ExclusiveResourceProcessor` by
priority.

Conflicts:
    neutron/tests/unit/agent/dhcp/test_agent.py

Related-Bug: #1760047
Change-Id: I255caa0571c42fb012fe882259ef181070beccef
(cherry picked from commit 99f4495c94)
2019-04-06 07:32:01 +00:00
..
common Rename router processing queue code to be more generic 2019-04-03 12:23:55 +02:00
dhcp Improve port dhcp Provisioning 2019-04-06 07:32:01 +00:00
l2 Clear residual qos rules after l2-agent restarts. 2019-01-22 12:59:24 +00:00
l3 Rename router processing queue code to be more generic 2019-04-03 12:23:55 +02:00
linux Check if process' cmdline is "space separarated" 2019-03-27 09:43:54 +00:00
metadata Switch isolated metadata proxy to bind to 169.254.169.254 2019-02-12 10:30:25 +00:00
ovsdb Merge "Kill _connection_to_manager_uri dummy" 2018-02-22 00:30:24 +00:00
windows Fix neutron-openvswitch-agent Windows support 2018-08-28 06:53:11 +00:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
test_agent_extensions_manager.py Refactoring config options for l2 agent ext opts 2016-11-21 19:45:04 +00:00
test_resource_cache.py Merge "Fix race condition with enabling SG on many ports at once" 2018-01-27 10:36:37 +00:00
test_rpc.py Add binding activation to OVS agent 2018-07-18 11:59:33 -05:00
test_securitygroups_rpc.py Adopt hacking 1.1.0 2018-07-05 11:31:40 +09:00