Replies: 1 comment 4 replies
-
Hi @juancresc, rueidis follows the Redis cluster spec https://redis.io/docs/reference/cluster-spec/ and always reads from primary Redis nodes, not replicas. It is not compatible with the Ring implementation of go-redis. I would strongly recommend you to use a standard Redis cluster instead. Following the spec, rueidis will pick a node who is responsible for the requested key slot. If the node is down or removed, rueidis will find its successor through cluster protocol. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using several servers to read from:
And whenever I use the get command
res, err := client.Do(ctx, client.B().Get().Key("1234").Build()).ToString()
I'm trying to figure out which of the InitAddress was used (to have metrics). My idea is to use this to replace the Ring client from go-redis.
What is a good way to do it?
How is each address get picked?
What happens if an address is down, is it removed?
Beta Was this translation helpful? Give feedback.
All reactions