-
Hi @mp911de I do have a Redis cluster with 1 shard (1 master, 1 Replica). I have created a RedisClusterClient, and StatefulRedisClusterConnection. I am using ReadFrom settings on connections, have some doubts -
Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If a master is down, then the command is going to timeout. If a slot is not covered, then you will experience a About |
Beta Was this translation helpful? Give feedback.
ReadFrom.MASTER
uses internally an optimization to the write-connection only. Since replicas aren't master nodes,ReadFrom.MASTER
does not create read connections to replicas. You might see connections to replicas only in two cases:MASTER
and if aMASTER
is demoted toREPLICA
, then the connection remains still open.If a master is down, then the command is going to timeout. If a slot is not covered, then you will experience a
PartitionSelectorException
exception.About
REPLICA_PREFERRED
:PREFERRED
modes prefer to use a particular type of node. We always check if the connection is open and try to use a healthy connec…