Redis failover and master election manager