Cluster Replication and Failover in Garnet - Single Master Node Issue #1030
-
I'm working on setting up Cluster Replication and Failover in Garnet. My question is whether it’s possible to use a single master node with all slots (0-16383) on a single node, or do I need at least three master nodes, similar to the Redis cluster setup? Currently, when attempting to use a single master node on Windows, I encounter the following error: (error) ERR I don't know about node Has anyone encountered this issue, or does anyone know how to resolve this? Any insights would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
it is possible, the doc in https://microsoft.github.io/garnet/docs/cluster/overview only gives instruction of using redis-cli --cluster command, which does not work with only a single node (the cli has a validation for minimum 3 master nodes). but you can achieve it by using the CLUSTER RESP commands manually. start garnet using the --cluster flag (if both primary and replica is on single machine, then make sure to use different data dir, and either different --bind address (e.g. 127.0.0.2 and 127.0.0.3) or --port number for the two.
EDIT, actually, I just realized it's documented here: https://microsoft.github.io/garnet/docs/cluster/replication |
Beta Was this translation helpful? Give feedback.
-
The IP address (127.0.0.1) should be used during clustering instead of 'localhost'. It is working now. |
Beta Was this translation helpful? Give feedback.
it is possible,
the doc in https://microsoft.github.io/garnet/docs/cluster/overview only gives instruction of using redis-cli --cluster command, which does not work with only a single node (the cli has a validation for minimum 3 master nodes).
but you can achieve it by using the CLUSTER RESP commands manually.
start garnet using the --cluster flag (if both primary and replica is on single machine, then make sure to use different data dir, and either different --bind address (e.g. 127.0.0.2 and 127.0.0.3) or --port number for the two.