neutron/neutron/tests/unit/db
yangjianfeng 99f4495c94 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.

Related-Bug: #1760047
Change-Id: I255caa0571c42fb012fe882259ef181070beccef
2019-01-28 07:26:45 +00:00
..
metering use metering api def from neutron-lib 2017-11-03 14:03:20 -06:00
quota Adopt hacking 1.1.0 2018-07-05 11:31:40 +09:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
test__utils.py remove common db alaises to db utils 2018-05-01 14:13:24 -06:00
test_agents_db.py Use publish for AGENT AFTER_CREATE/AFTER_UPDATE 2018-12-19 10:26:05 +01:00
test_agentschedulers_db.py Improve port dhcp Provisioning 2019-01-28 07:26:45 +00:00
test_allowedaddresspairs_db.py use addr pairs api def from lib 2017-11-13 11:56:32 -07:00
test_db_base_plugin_common.py Replace to_dict() calls with a function decorator 2015-08-03 11:42:25 +03:00
test_db_base_plugin_v2.py Merge "Add test cases: invalidate CIDR" 2019-01-26 12:37:59 +00:00
test_dvr_mac_db.py use payloads for AGENT BEFORE_DELETE callbacks 2018-10-03 09:59:24 +00:00
test_extraroute_db.py l3 flavor: more events/notifications and callback priority 2018-05-18 00:14:33 +00:00
test_ipam_backend_mixin.py Switch to use _get_subnet_object() in ipam_backend_mixin module 2017-12-18 14:59:17 +01:00
test_ipam_pluggable_backend.py Use constant IP_VERSION_4/6 in unit tests 2018-08-27 21:45:39 +00:00
test_l3_db.py Fix incorrectly passing ext_ips as gateway ips 2018-10-30 08:59:28 +08:00
test_l3_dvr_db.py Merge "Check port VNIC type when associating a floating IP" 2018-12-20 04:08:41 +00:00
test_l3_hamode_db.py Prevent some L3 ports change IP address 2018-12-13 14:24:23 +00:00
test_migration.py Use oslo_log instead of alembic.util in functional tests 2018-12-21 23:03:24 +01:00
test_portsecurity_db.py use service type constants from neutron_lib plugins 2017-06-27 15:16:05 -06:00
test_portsecurity_db_common.py use neutron-lib port security api-def 2017-05-01 11:45:42 -06:00
test_provisioning_blocks.py Adopt Port OVO for tests/unit/db/test_provisioning_blocks.py 2018-07-06 11:43:43 -04:00
test_rbac_db_mixin.py Use RBACBaseObject OVO in neutron/db/rbac_db_mixin.py 2018-11-08 13:41:36 +00:00
test_securitygroups_db.py Fix performance regression adding rules to security groups 2019-01-23 18:30:54 +00:00
test_segments_db.py Change passing session to context in segments db functions 2016-12-23 16:47:41 +04:00
test_sqlalchemytypes.py Use oslo_db.sqlalchemy.test_fixtures 2018-02-19 20:53:14 -05:00
test_standard_attr.py Allow sub-resources to have standard attributes 2018-07-04 20:52:37 +00:00