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
{{ message }}
Repository navigation
Does the client work for Elasticache cluster mode enabled #20
I believe the default behavior should be primary accepting writes and reads and replica is accepting only reads, even without specifying policy. This is the behavior of redis cluster mode.
Activity
funny-falcon commentedon Mar 8, 2022
Why do you think it doesn't maintain slot to node mapping?
rediscluster folder is explicitly for that.
abinavv20 commentedon Mar 9, 2022
Our redis metrics indicate that only the primary is accepting writes and replica is accepting reads. The primary usually accepts writes and reads. Does it have to do with this line of code here? https://github.com/joomcode/redispipe/blob/master/rediscluster%2Fcluster.go#L436-L441
funny-falcon commentedon Mar 9, 2022
You can set policy with Cluster.WithPolicy:
redispipe/rediscluster/rw_policy.go
Line 26 in 1283dc7
I don't get which way read commands go to replica if you didn't specify policy, since you correctly mention MasterOnly is primary policy.
abinavv20 commentedon Mar 10, 2022
I will try this out.
I believe the default behavior should be primary accepting writes and reads and replica is accepting only reads, even without specifying policy. This is the behavior of redis cluster mode.
Can I bring this up as an issue for bug fix?