Implemented a failover mechanism for the redis output.