The ha state change BatchNotifier uses the following calculated interval.
def _calculate_batch_duration(self):
# Slave becomes the master after not hearing from it 3 times detection_time = self.conf.ha_vrrp_advert_int * 3
# Keepalived takes a couple of seconds to configure the VIPs configuration_time = 2
# Give it enough slack to batch all events due to the same failure
return (detection_time + configuration_time) * 2
It takes almost 16s 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.
The ha state change BatchNotifier uses the following calculated interval.
def _calculate_ batch_duration( self):
detection_ time = self.conf. ha_vrrp_ advert_ int * 3
# Slave becomes the master after not hearing from it 3 times
# Keepalived takes a couple of seconds to configure the VIPs
configuration_ time = 2
# Give it enough slack to batch all events due to the same failure
return (detection_time + configuration_time) * 2
It takes almost 16s 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.