neutron/neutron/tests/unit/agent/l3
Oleg Bondarev 0e97feb0f3 L3 agent: paginate sync routers task
In case there are thousands of routers attached to thousands of
networks, sync_routers request might take a long time and lead to timeout
on agent side, so agent initiate another resync. This may lead to an endless
loop causing server overload and agent not being able to sync state.

This patch makes l3 agent first check how many routers are assigned to
it and then start to fetch routers by chunks.
Initial chunk size is set to 256 but may be decreased dynamically in case
timeouts happen while waiting response from server.

This approach allows to reduce the load on server side and to speed up
resync on agent side by starting processing right after receiving
the first chunk.

Closes-Bug: #1516260
Change-Id: Id675910c2a0b862bfb9e6f4fdaf3cd9fe337e52f
2016-01-12 12:56:45 +03:00
..
__init__.py Move extra routes processing to router classes 2015-02-05 10:25:45 -05:00
test_agent.py L3 agent: paginate sync routers task 2016-01-12 12:56:45 +03:00
test_dvr_fip_ns.py Merge "Remove deprecated namespace deletion options" 2015-10-23 15:45:28 +00:00
test_dvr_local_router.py Use the constant HOST_ID instead of 'binding:host_id' 2015-12-20 14:00:29 +00:00
test_fip_rule_priority_allocator.py Preserve DVR FIP rule priority over Agent restarts 2015-08-12 15:52:19 -05:00
test_ha_router.py Merge "Remove deprecated use_namespaces option" 2015-11-19 14:45:43 +00:00
test_item_allocator.py Use assertIn and assertNotIn 2015-10-05 20:47:18 +02:00
test_legacy_router.py Delete gateway conntrack state when remove external gateway 2015-09-09 09:24:40 +08:00
test_link_local_allocator.py Preserve DVR FIP rule priority over Agent restarts 2015-08-12 15:52:19 -05:00
test_namespace_manager.py Remove deprecated use_namespaces option 2015-11-18 19:17:29 +01:00
test_router_info.py Remove deprecated use_namespaces option 2015-11-18 19:17:29 +01:00
test_router_processing_queue.py Document self.assertEqual(expected, observed) pattern 2015-10-06 01:03:53 +02:00