Closed
Description
Hello 👋,
I am using the Redis-py package to connect to a Redis cluster with Sentinel. I have a question about the best practice for discovering the master node.
Should I:
-
Use
sentinel.master_for
each time I execute a command to ensure I'm always talking to the current master? -
Discover the master once at startup and cache it, only re-discovering it periodically or upon errors? Do you have an example for this case?
Thank you for your help!
Metadata
Metadata
Assignees
Labels
No labels