Example Analysis of redis Cluster creating 3 Master and 3 Slave redis Cluster without reids-trib script
This article mainly introduces the example analysis of redis cluster creating 3 master and 3 slave redis cluster without reids-trib script. what is introduced in this article is very detailed and has certain reference value. Interested friends must finish it!
1. Start 126127128 3 7000 port redis (master)
/ usr/local/bin/redis-server / etc/redis/cluster/7000/redis.conf
2. Add master nodes to the redis cluster
126-7000:
Cluster meet 20.26.33.127 7000
Cluster meet 20.26.33.128 7000
3. Distribution slots 126-7000 (0-5460) 127-7000 (5461-10922) 128-7000 (10923-16383)
126-7000: modify nodes.conf 0-5460
127-7000: modified nodes.conf 5461-10922
128-7000: modify nodes.conf 10923-16383
4. Start 126127128 3 7001 port redis (slave)
/ usr/local/bin/redis-server / etc/redis/cluster/7001/redis.conf
5. Add slave nodes to the redis cluster
126-7000:
Cluster meet 20.26.33.126 7001
Cluster meet 20.26.33.127 7001
Cluster meet 20.26.33.128 7001
6. Set the slave with 3 master nodes each
Cluster replicate: sets the current node as the slave node of the node specified by node_id (viewed through cluster nodes)
126-7001:cluster replicate 733f04bdb253e1b1c3211eb34ce891f18f1088ec
127-7001:cluster replicate d6e118c3923c204f54686510465867db8518a4cc
128-7001:cluster replicate cd8c7a1542efa3f66ba4e262073d0e5bd2f4a22d
The above is all the content of the article "sample Analysis of redis Cluster creating 3 Master and 3 Slave redis Cluster without reids-trib script". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!