Auto discover redis's role