Skip to content

Instantly share code, notes, and snippets.

@mustafaileri
Created January 3, 2017 21:42
Show Gist options
  • Save mustafaileri/4e46842c404db46ecb0761db82f7d34a to your computer and use it in GitHub Desktop.
Save mustafaileri/4e46842c404db46ecb0761db82f7d34a to your computer and use it in GitHub Desktop.
redis-sentinel master mymaster
➜ redis-sentinel-sample git:(master) redis-cli -p 26000
127.0.0.1:26000>
127.0.0.1:26000> sentinel master mymaster
1) "name"
2) "mymaster"
3) "ip"
4) "10.10.10.14"
5) "port"
6) "6379"
7) "runid"
8) ""
9) "flags"
10) "s_down,master"
11) "link-pending-commands"
12) "100"
13) "link-refcount"
14) "1"
15) "last-ping-sent"
16) "1549779"
17) "last-ok-ping-reply"
18) "1549779"
19) "last-ping-reply"
20) "1549779"
21) "s-down-time"
22) "1544751"
23) "down-after-milliseconds"
24) "5000"
25) "info-refresh"
26) "1482429294583"
27) "role-reported"
28) "master"
29) "role-reported-time"
30) "1549779"
31) "config-epoch"
32) "0"
33) "num-slaves"
34) "0"
35) "num-other-sentinels"
36) "0"
37) "quorum"
38) "2"
39) "failover-timeout"
40) "26000"
41) "parallel-syncs"
42) "1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment