I am looking to set-up Redis clustering with three master nodes. I am wondering what are the specific ports required to be open for each of the master nodes for Redis clustering?
I am following the documentation on Scaling with Redis Cluster | Redis and it says each node requires two TCP ports:
- A Redis TCP port e.g. 6379
- The cluster bus port e.g. 16379
Further down on the page, it gives an example to create a cluster with the following command:
mkdir cluster-test cd cluster-test mkdir 7000 7001 7002 7003 7004 7005
Does this mean each master node must be assigned with a different Redis TCP port or can they all be using the port 6379?
Furthermore, does this mean I will need to open the corresponding cluster bus port e.g. 17000, 17001, and 17002? Or can they all be using 16379?
Thirdly, the documentation also states, “You can now interact with the cluster, the first node will start at port 30001 by default.” Does this mean the port 30001 needs to be open on all of the Redis clusters as well?
Lastly, the documentation says, " By default, the cluster bus port is set by adding 10000 to the data port (e.g., 16379); however, you can override this in the
cluster-port config." How can I change the port of the cluster bus port of each master node?