redis failover scripts