HA router state change takes too much time to notify neutron server
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Low
|
LIU Yulong |
Bug Description
The ha state change BatchNotifier uses the following calculated interval.
def _calculate_
# Slave becomes the master after not hearing from it 3 times
# Keepalived takes a couple of seconds to configure the VIPs
# Give it enough slack to batch all events due to the same failure
return (detection_time + configuration_time) * 2
It takes almost 16s, by default ha_vrrp_advert_int is 2s, for a single HA router state change to notify neutron server.
Actually before this notify, the ip MonitorDaemon has already set the router to its relevant state.
So no need to wait this long time.
description: | updated |
summary: |
- HA router state change take too much time to notify neutron server + HA router state change takes too much time to notify neutron server |
tags: | added: l3-ha |
Changed in neutron: | |
importance: | Undecided → Low |
In this 16s time, assuming that a HA router meets 8 times HA router state change. list-hosting- router ha_router_id`
After this 16s, the first change dequeue and be notified to neutron server, then the 2nd, 3rd, and so on.
This now become interesting, in this 16 seconds if you use neutron
`neutron l3-agent-
you may see the router state in one agent is alternatively changing in active and standby.
It's not stay in the real state, because of the delay notification.