redis sentinel python authentication

PHOTO EMBED

Fri Aug 14 2020 06:51:37 GMT+0000 (Coordinated Universal Time)

Saved by @michaeljwhite #redis #python #sentinel

from redis.sentinel import Sentinel
sentinel = Sentinel([
    ('192.168.77.130',26379),
    ('192.168.77.130',26380),
    ('192.168.77.130',26381),
],sentinel_kwargs={'password': '123456'}) 

sentinel.discover_master('lerep')
content_copyCOPY

https://github.com/andymccurdy/redis-py/issues/1256