neutron/neutron/agent/l3
LIU Yulong e795a3fcf8 Make the HA router state change notification more faster
HA router state change takes too much time to notify neutron server.
It takes almost 16s, by default ha_vrrp_advert_int 2s, for a single
HA router state change.

In this 16s time, assuming that a HA router meets 8 times HA router
state change. After this 16s, the first change dequeue and notify the
neutron server, then the 2nd, 3rd, and so on. Things are now becoming
interesting, after this 16 seconds if you run
`neutron l3-agent-list-hosting-router ha_router_id`, you may see the
router state in one specific agent is alternatively changing in active
and standby. It's not stay in the real state, because of the delay
notification.

This patch sets the BatchNotifier interval to ha_vrrp_advert_int (default
2s) to make the HA router state change notification more faster.

NOTE: the BatchNotifier event queue is needed, because the HA router state
change needs to be sent in a proper order. Then the neutron server could set
the HA state properly.

Closes-Bug: #1612069
Change-Id: Ife687038d31bd1e1ee264ff8b6ae1264fdd05489
2016-10-13 10:00:25 +08:00
..
__init__.py Move classes out of l3_agent.py 2014-12-10 15:19:28 -07:00
agent.py Emit router payload only during failures 2016-09-10 08:39:50 -07:00
dvr.py Merge "Fixes typos Openstack -> OpenStack" 2016-02-05 04:23:26 +00:00
dvr_edge_ha_router.py Fix wrong HA router state 2016-09-07 06:49:51 +00:00
dvr_edge_router.py Fix deprecation warnings 2016-08-26 22:16:06 -04:00
dvr_fip_ns.py Better utilize the L3 Namespace class 2016-08-09 14:51:45 -04:00
dvr_local_router.py DVR: SNAT redirect rules should be removed only on Gateway clear 2016-08-30 13:56:37 -07:00
dvr_router_base.py DVR: Clean stale snat-ns by checking its existence when agent restarts 2016-08-04 10:39:15 -07:00
dvr_snat_ns.py Fix deprecation warnings 2016-08-26 22:16:06 -04:00
fip_rule_priority_allocator.py Fix two spelling mistakes 2016-05-30 01:58:04 +00:00
ha.py Make the HA router state change notification more faster 2016-10-13 10:00:25 +08:00
ha_router.py Check for ha port to become ACTIVE 2016-08-29 19:31:22 +03:00
item_allocator.py DVR: Fix ItemAllocator class to handle exceptions 2016-07-14 13:05:45 -04:00
keepalived_state_change.py Refactoring config options of l3 agent keepalived 2016-08-11 21:48:36 +00:00
l3_agent_extension.py Add L3 agent extension API object 2016-08-31 11:15:51 -04:00
l3_agent_extension_api.py Add L3 agent extension API object 2016-08-31 11:15:51 -04:00
l3_agent_extensions_manager.py Fix bug in L3 agent extension manager 2016-08-23 14:58:32 +00:00
legacy_router.py Fix deprecation warnings 2016-08-26 22:16:06 -04:00
link_local_allocator.py spelling error: 2016-06-30 10:17:18 +08:00
namespace_manager.py DVR: Clean stale snat-ns by checking its existence when agent restarts 2016-08-04 10:39:15 -07:00
namespaces.py Fix typo in l3-agent namespace code 2016-08-09 13:15:48 -04:00
router_info.py Merge "neutron-lib: start using neutron-lib helpers" 2016-10-12 19:01:47 +00:00
router_processing_queue.py Fix module's import order 2016-01-22 06:38:42 -08:00