You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Polling CLUSTER NODES and monitoring changes in the list of nodes(considering configEpoch). This approach doesn't depend on Redisson.
Polling changes in org.redisson.api.redisnode.RedisCluster#getMasters.
Is there any API in Redisson to detect a failover event? Unfortunately, I've not found anything fit.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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