0

Redis n00b here.

I'm using Redis locally on Windows to test code before pushing to my server. I used this tutorial to set it up:

https://dingyuliang.me/redis-3-2-create-cluster-windows/

Before "Map slave node to master node" I ran the "cluster reset hard" command for all nodes because for some reason, all my nodeIDs were the same.

The test then ran exactly as it in the example. However, when I restart my PC nothing works anymore. Tells me that Could not connect to Redis at :0: The requested address is not valid in its context. This is how it looks in the console when checking their state:enter image description here

Everything except one master has no IP, port and is disconnected. What is going on and how can I fix this? The way to fix it was to completely wipe everything and start over so far. All Redis Services are running. My conf file is like on the tutorial.

1 Answers1

0

Well I followed the official tutorial which turned out to be better (for Linux): https://redis.io/topics/cluster-tutorial

The fact that I hard to give them a hard reset on the other one showed something did not work as planned and they all ran on the same redis.conf which probably made it weird as hell. Since the Windows Redis is only at V3, you will need an old redis-trib.rb (like here https://github.com/beebol/redis-trib.rb/blob/master/redis-trib.rb) to install the clusters. Bottom line, if you can really try to do this on Linux instead, if not what I did is hopefully good enough for the local dev environment.