Redis Cluster failover detection #5197
Unanswered
anton-mednikov
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I'm interested in the Redis Cluster failover detection using the Redisson client:
I've got a Redis Cluster with a single replica. Suppose the master fails, and the replica gets promoted. I want to detect this event.
I've considered the following options:
CLUSTER NODES
and monitoring changes in the list of nodes(consideringconfigEpoch
). This approach doesn't depend on Redisson.org.redisson.api.redisnode.RedisCluster#getMasters
.Is there any API in Redisson to detect a failover event? Unfortunately, I've not found anything fit.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions