Skip to content

Instantly share code, notes, and snippets.

@72squared
Created December 4, 2014 22:54
Show Gist options
  • Save 72squared/df7760716a4e8203d319 to your computer and use it in GitHub Desktop.
Save 72squared/df7760716a4e8203d319 to your computer and use it in GitHub Desktop.
$ redis-trib check :7000
Connecting to node :7000: OK
Connecting to node 172.31.14.27:7001: OK
Connecting to node 172.31.12.228:7001: [ERR] Sorry, can't connect to node 172.31.12.228:7001
OK
Connecting to node 172.31.12.228:7002: [ERR] Sorry, can't connect to node 172.31.12.228:7002
OK
Connecting to node 172.31.12.228:7000: [ERR] Sorry, can't connect to node 172.31.12.228:7000
OK
Connecting to node 172.31.14.27:7000: OK
Connecting to node 172.31.14.27:7002: OK
Connecting to node 172.31.13.86:7001: OK
Connecting to node 172.31.13.86:7002: OK
>>> Performing Cluster Check (using node :7000)
S: d4171a0f7aa3d3c40d31ddbd860ce4e23541a8ad :7000
slots: (0 slots) slave
replicates 8db494c01d808ddc7483e783241cbc7fa6a28930
M: c58472f6762a38c32b37295fdab7f976c1705bbf 172.31.14.27:7001
slots:5461-10922 (5462 slots) master
1 additional replica(s)
M: 8db494c01d808ddc7483e783241cbc7fa6a28930 172.31.14.27:7000
slots:0-5460 (5461 slots) master
1 additional replica(s)
M: 5154a993ff43ada8bc7c69750441fb1af615293d 172.31.14.27:7002
slots:10923-16383 (5461 slots) master
1 additional replica(s)
S: a3b100ece4f7f388bf237993b2c71cf775c6f288 172.31.13.86:7001
slots: (0 slots) slave
replicates c58472f6762a38c32b37295fdab7f976c1705bbf
S: e532b340aad8540c4473461dfe095bfc43a273e0 172.31.13.86:7002
slots: (0 slots) slave
replicates 5154a993ff43ada8bc7c69750441fb1af615293d
[OK] All nodes agree about slots configuration.
>>> Check for open slots...
>>> Check slots coverage...
[OK] All 16384 slots covered.
$
$ redis-cli -h 172.31.14.27 -p 7000 cluster nodes
a3b100ece4f7f388bf237993b2c71cf775c6f288 172.31.13.86:7001 slave c58472f6762a38c32b37295fdab7f976c1705bbf 0 1417733625993 5 connected
8db494c01d808ddc7483e783241cbc7fa6a28930 172.31.14.27:7000 myself,master - 0 0 4 connected 0-5460
d4171a0f7aa3d3c40d31ddbd860ce4e23541a8ad 172.31.13.86:7000 slave 8db494c01d808ddc7483e783241cbc7fa6a28930 0 1417733626997 4 connected
c58472f6762a38c32b37295fdab7f976c1705bbf 172.31.14.27:7001 master - 0 1417733624963 5 connected 5461-10922
e39849f88934ea23c97206487fc74927e5d64bc2 172.31.12.228:7002 handshake - 0 0 0 connected
6d21735e4a8268db2b77ff07c06617a01e8c441e 172.31.12.228:7001 handshake - 0 0 0 connected
d0590ded8d951b87900d82420b5b7a3b273d38cc 172.31.12.228:7000 handshake - 0 0 0 connected
e532b340aad8540c4473461dfe095bfc43a273e0 172.31.13.86:7002 slave 5154a993ff43ada8bc7c69750441fb1af615293d 0 1417733623963 6 connected
5154a993ff43ada8bc7c69750441fb1af615293d 172.31.14.27:7002 master - 0 1417733622960 6 connected 10923-16383
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment