redis-叢集安裝(1)
阿新 • • 發佈:2019-01-06
[[email protected] config]# redis-trib.rb create --replicas 1 172.16.57.54:6379 172.16.57.54:6383 172.16.57.55:6380 172.16.57.55:6384 172.16.57.56:6381 172.16.57.56:6385 172.16.57.57:6382 172.16.57.57:6386 172.16.57.55:16379 172.16.57.57:16383 172.16.57.56:16380 172.16.57.56:16384 172.16.57.57:16381 172.16.57.54:16385 172.16.57.54:16382 172.16.57.55:16386
>>> Creating cluster
>>> Performing hash slots allocation on 16 nodes...
Using 8 masters:
172.16.57.57:6382
172.16.57.56:6381
172.16.57.55:6380
172.16.57.54:6379
172.16.57.57:6386
172.16.57.56:6385
172.16.57.55:6384
172.16.57.54:6383
Adding replica 172.16.57.56:16380 to 172.16.57.57:6382
Adding replica 172.16.57.57:16383 to 172.16.57.56:6381
Adding replica 172.16.57.54:16385 to 172.16.57.55:6380
Adding replica 172.16.57.55:16379 to 172.16.57.54:6379
Adding replica 172.16.57.56:16384 to 172.16.57.57:6386
Adding replica 172.16.57.57:16381 to 172.16.57.56:6385
Adding replica 172.16.57.54:16382 to 172.16.57.55:6384
Adding replica 172.16.57.55:16386 to 172.16.57.54:6383
M: 3ea77504768534438608cc8282409ad0380cc230 172.16.57.54:6379
slots:6144-8191 (2048 slots) master
M: adcdcd04c6d77a0dfa6fbacff68c668f42a727fb 172.16.57.54:6383
slots:14336-16383 (2048 slots) master
M: c1137994639200525ef7f561ce291b3ce38079b3 172.16.57.55:6380
slots:4096-6143 (2048 slots) master
M: 46f9543f054435dea90aded227f5a53a1383dee2 172.16.57.55:6384
slots:12288-14335 (2048 slots) master
M: a15269fef298a4e62fb10b3b1bd4ec7178760c34 172.16.57.56:6381
slots:2048-4095 (2048 slots) master
M: 450e56c837a409ac25b3aaae01fb561699654098 172.16.57.56:6385
slots:10240-12287 (2048 slots) master
M: 27dae6d2fcf9a294de7c6c5c10f10c97cb9dc44c 172.16.57.57:6382
slots:0-2047 (2048 slots) master
M: be75716373aa05a16e890427386950e59c917d1f 172.16.57.57:6386
slots:8192-10239 (2048 slots) master
S: 2f1c88c822a81d22ebeddc3a0816b62997a16dbe 172.16.57.55:16379
replicates 3ea77504768534438608cc8282409ad0380cc230
S: 2d832131cf4196c83557d0a153775ee63605ed90 172.16.57.57:16383
replicates a15269fef298a4e62fb10b3b1bd4ec7178760c34
S: ec8ea752576da5eea8bc3934544826d8730e1dfd 172.16.57.56:16380
replicates 27dae6d2fcf9a294de7c6c5c10f10c97cb9dc44c
S: 4d6ee6db3875c75fb0f44e1c93106da5b43bd5ba 172.16.57.56:16384
replicates be75716373aa05a16e890427386950e59c917d1f
S: e9b7be308399f30dd25f0d63b4befa536e91fe60 172.16.57.57:16381
replicates 450e56c837a409ac25b3aaae01fb561699654098
S: a94b11d778ffd22c3643ee0debcb0e8d52cae037 172.16.57.54:16385
replicates c1137994639200525ef7f561ce291b3ce38079b3
S: 2c3b29c266cdd2796314f785891bf7dbf39c1764 172.16.57.54:16382
replicates 46f9543f054435dea90aded227f5a53a1383dee2
S: b1ead2f5918bf1ceb71c6a34ddb57017dbffd7bd 172.16.57.55:16386
replicates adcdcd04c6d77a0dfa6fbacff68c668f42a727fb
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 172.16.57.54:6379)
M: 3ea77504768534438608cc8282409ad0380cc230 172.16.57.54:6379
slots:6144-8191 (2048 slots) master
M: adcdcd04c6d77a0dfa6fbacff68c668f42a727fb 172.16.57.54:6383
slots:14336-16383 (2048 slots) master
M: c1137994639200525ef7f561ce291b3ce38079b3 172.16.57.55:6380
slots:4096-6143 (2048 slots) master
M: 46f9543f054435dea90aded227f5a53a1383dee2 172.16.57.55:6384
slots:12288-14335 (2048 slots) master
M: a15269fef298a4e62fb10b3b1bd4ec7178760c34 172.16.57.56:6381
slots:2048-4095 (2048 slots) master
M: 450e56c837a409ac25b3aaae01fb561699654098 172.16.57.56:6385
slots:10240-12287 (2048 slots) master
M: 27dae6d2fcf9a294de7c6c5c10f10c97cb9dc44c 172.16.57.57:6382
slots:0-2047 (2048 slots) master
M: be75716373aa05a16e890427386950e59c917d1f 172.16.57.57:6386
slots:8192-10239 (2048 slots) master
M: 2f1c88c822a81d22ebeddc3a0816b62997a16dbe 172.16.57.55:16379
slots: (0 slots) master
replicates 3ea77504768534438608cc8282409ad0380cc230
M: 2d832131cf4196c83557d0a153775ee63605ed90 172.16.57.57:16383
slots: (0 slots) master
replicates a15269fef298a4e62fb10b3b1bd4ec7178760c34
M: ec8ea752576da5eea8bc3934544826d8730e1dfd 172.16.57.56:16380
slots: (0 slots) master
replicates 27dae6d2fcf9a294de7c6c5c10f10c97cb9dc44c
M: 4d6ee6db3875c75fb0f44e1c93106da5b43bd5ba 172.16.57.56:16384
slots: (0 slots) master
replicates be75716373aa05a16e890427386950e59c917d1f
M: e9b7be308399f30dd25f0d63b4befa536e91fe60 172.16.57.57:16381
slots: (0 slots) master
replicates 450e56c837a409ac25b3aaae01fb561699654098
M: a94b11d778ffd22c3643ee0debcb0e8d52cae037 172.16.57.54:16385
slots: (0 slots) master
replicates c1137994639200525ef7f561ce291b3ce38079b3
M: 2c3b29c266cdd2796314f785891bf7dbf39c1764 172.16.57.54:16382
slots: (0 slots) master
replicates 46f9543f054435dea90aded227f5a53a1383dee2
M: b1ead2f5918bf1ceb71c6a34ddb57017dbffd7bd 172.16.57.55:16386
slots: (0 slots) master
replicates adcdcd04c6d77a0dfa6fbacff68c668f42a727fb
[OK] All nodes agree about slots configuration.
>>> Check for open slots...
>>> Check slots coverage...
[OK] All 16384 slots covered.