-
|
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.MASTERuses internally an optimization to the write-connection only. Since replicas aren't master nodes,ReadFrom.MASTERdoes not create read connections to replicas. You might see connections to replicas only in two cases:MASTERand if aMASTERis 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
PartitionSelectorExceptionexception.About
REPLICA_PREFERRED:PREFERREDmodes prefer to use a particular type of node. We always check if the connection is open and try to use a healthy connec…