Auto discovery master or slave redis.