Install Setting Redis Cluster in Linux

Let's Join Us

Install Setting Redis Cluster in Linux

 

redis-cli –cluster create 0.0.0.0:8177 0.0.0.0:8178 0.0.0.0:8179

>>> Performing hash slots allocation on 3 nodes…
Master[0] -> Slots 0 – 5460
Master[1] -> Slots 5461 – 10922
Master[2] -> Slots 10923 – 16383
M: 677a2a03d2e3aee6db5916c79e36e5d9d3f52159 0.0.0.0:8177
slots:[0-5460] (5461 slots) master
M: b8e04ced525695880287d2574ec6c505597d3733 0.0.0.0:8178
slots:[5461-10922] (5462 slots) master
M: b2946579354cdf0343374b1f05291111c7eeddfd 0.0.0.0:8179
slots:[10923-16383] (5461 slots) master
Can I set the above configuration? (type ‘yes’ to accept): yes
>>> Nodes configuration updated
>>> Assign a different config epoch to each node
>>> Sending CLUSTER MEET messages to join the cluster
Waiting for the cluster to join
..
>>> Performing Cluster Check (using node 0.0.0.0:8177)
M: 677a2a03d2e3aee6db5916c79e36e5d9d3f52159 0.0.0.0:8177
slots:[0-5460] (5461 slots) master
M: b2946579354cdf0343374b1f05291111c7eeddfd 127.0.0.1:8179
slots:[10923-16383] (5461 slots) master
M: b8e04ced525695880287d2574ec6c505597d3733 127.0.0.1:8178
slots:[5461-10922] (5462 slots) master
[OK] All nodes agree about slots configuration.
>>> Check for open slots…
>>> Check slots coverage…
[OK] All 16384 slots covered.

 

redis-cli –cluster add-node 0.0.0.0:8174 0.0.0.0:8177 –cluster-slave –cluster-master-id 677a2a03d2e3aee6db5916c79e36e5d9d3f52159

a2a03d2e3aee6db5916c79e36e5d9d3f52159
>>> Adding node 0.0.0.0:8174 to cluster 0.0.0.0:8177
>>> Performing Cluster Check (using node 0.0.0.0:8177)
M: 677a2a03d2e3aee6db5916c79e36e5d9d3f52159 0.0.0.0:8177
slots:[0-5460] (5461 slots) master
M: b2946579354cdf0343374b1f05291111c7eeddfd 127.0.0.1:8179
slots:[10923-16383] (5461 slots) master
M: b8e04ced525695880287d2574ec6c505597d3733 127.0.0.1:8178
slots:[5461-10922] (5462 slots) master
[OK] All nodes agree about slots configuration.
>>> Check for open slots…
>>> Check slots coverage…
[OK] All 16384 slots covered.
>>> Send CLUSTER MEET to node 0.0.0.0:8174 to make it join the cluster.
Waiting for the cluster to join

>>> Configure node as replica of 0.0.0.0:8177.
[OK] New node added correctly.

 

redis-cli –cluster add-node 0.0.0.0:8175 0.0.0.0:8179 –cluster-slave –cluster-master-id b2946579354cdf0343374b1f05291111c7eeddfd

946579354cdf0343374b1f05291111c7eeddfd
>>> Adding node 0.0.0.0:8175 to cluster 0.0.0.0:8179
>>> Performing Cluster Check (using node 0.0.0.0:8179)
M: b2946579354cdf0343374b1f05291111c7eeddfd 0.0.0.0:8179
slots:[10923-16383] (5461 slots) master
S: f2af85f2bb95f632575247a596af94dae4de49b4 127.0.0.1:8174
slots: (0 slots) slave
replicates 677a2a03d2e3aee6db5916c79e36e5d9d3f52159
M: b8e04ced525695880287d2574ec6c505597d3733 127.0.0.1:8178
slots:[5461-10922] (5462 slots) master
M: 677a2a03d2e3aee6db5916c79e36e5d9d3f52159 127.0.0.1:8177
slots:[0-5460] (5461 slots) master
1 additional replica(s)
[OK] All nodes agree about slots configuration.
>>> Check for open slots…
>>> Check slots coverage…
[OK] All 16384 slots covered.
>>> Send CLUSTER MEET to node 0.0.0.0:8175 to make it join the cluster.
Waiting for the cluster to join

 

redis-cli –cluster add-node 0.0.0.0:8176 0.0.0.0:8178 –cluster-slave –cluster-master-id b8e04ced525695880287d2574ec6c505597d3733

04ced525695880287d2574ec6c505597d3733
>>> Adding node 0.0.0.0:8176 to cluster 0.0.0.0:8178
>>> Performing Cluster Check (using node 0.0.0.0:8178)
M: b8e04ced525695880287d2574ec6c505597d3733 0.0.0.0:8178
slots:[5461-10922] (5462 slots) master
S: f2af85f2bb95f632575247a596af94dae4de49b4 127.0.0.1:8174
slots: (0 slots) slave
replicates 677a2a03d2e3aee6db5916c79e36e5d9d3f52159
M: 677a2a03d2e3aee6db5916c79e36e5d9d3f52159 127.0.0.1:8177
slots:[0-5460] (5461 slots) master
1 additional replica(s)
M: b2946579354cdf0343374b1f05291111c7eeddfd 127.0.0.1:8179
slots:[10923-16383] (5461 slots) master
1 additional replica(s)
S: 54b251f7d9ffa11cc68783bf867c6e7f80839e8a 127.0.0.1:8175
slots: (0 slots) slave
replicates b2946579354cdf0343374b1f05291111c7eeddfd

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x