Skip to content

Commit a16b7db

Browse files
Adding info for sentinel handling failover when Redis client is acquired with master_for() method. (#3578)
Co-authored-by: Elena Kolevska <[email protected]>
1 parent 72b89c9 commit a16b7db

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

redis/asyncio/sentinel.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,8 @@ def master_for(
326326
):
327327
"""
328328
Returns a redis client instance for the ``service_name`` master.
329+
Sentinel client will detect failover and reconnect Redis clients
330+
automatically.
329331
330332
A :py:class:`~redis.sentinel.SentinelConnectionPool` class is
331333
used to retrieve the master's address before establishing a new

redis/sentinel.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,8 @@ def master_for(
349349
):
350350
"""
351351
Returns a redis client instance for the ``service_name`` master.
352+
Sentinel client will detect failover and reconnect Redis clients
353+
automatically.
352354
353355
A :py:class:`~redis.sentinel.SentinelConnectionPool` class is
354356
used to retrieve the master's address before establishing a new

0 commit comments

Comments
 (0)