neutron/neutron/tests/unit/api
yangjianfeng dd5e89e717 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/api/rpc/agentnotifiers/dhcp_rpc_agent_api.py

Related-Bug: #1760047
Change-Id: I255caa0571c42fb012fe882259ef181070beccef
(cherry picked from commit 99f4495c94)
(cherry picked from commit 740295d94d)
2019-04-10 16:17:29 +00:00
..
rpc Improve port dhcp Provisioning 2019-04-10 16:17:29 +00:00
v2 use callback payloads for REQUEST/RESPONSE events 2017-12-24 07:27:11 +00:00
__init__.py Send DHCP notifications regardless of agent status 2013-12-19 07:08:19 +00:00
test_api_common.py Add a new configuration variable for api links. 2017-04-18 15:16:41 +00:00
test_extensions.py Update neutron files for new over-indentation hacking rule (E117) 2019-02-02 10:48:26 +00:00
test_versions.py Drop the web_framework option 2017-09-13 15:11:38 -07:00