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')
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter