integration of primary secondary failover
Merge branch 'slohia' of https://github.com/slohia/ADS into slohia