Skip to content

Correct expectations for cluster connection/command failover. #1757

Answered by mp911de
jdeppe-pivotal asked this question in Q&A
Discussion options

You must be logged in to vote

Failover is a quite broad topic, so let me add a bit of my perspective here.

Redis Cluster doesn't provide an active notification mechanism for cluster reconfiguration, instead, a client can either poll the cluster topology or react to certain events. Topology polling is available in Lettuce through periodic topology refresh. Other events are modeled as adaptive refresh triggers.

We generally assume if a node is down, that it will eventually come back again (because it has crashed, network partition). We do not assume that it was removed from the cluster in the first place. Therefore, commands sent to a node (either by slot routing or because it was manually routed there) stick with the t…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@jdeppe-pivotal
Comment options

Answer selected by jdeppe-pivotal
Comment options

You must be logged in to vote
5 replies
@mp911de
Comment options

@mp911de
Comment options

@mp911de
Comment options

@jdeppe-pivotal
Comment options

@jdeppe-pivotal
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants