Comment 0 for bug 1612069

Revision history for this message
LIU Yulong (dragon889) wrote : HA router state change take too much time to notify neutron server

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.