How to set properly failover ?