Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
23023fc6
Commit
23023fc6
authored
Jul 25, 2012
by
mrb
Browse files
Some cleanup in sentinel.conf
parent
9e5bef38
Changes
1
Hide whitespace changes
Inline
Side-by-side
sentinel.conf
View file @
23023fc6
# Example sentinel.conf
# Example sentinel.conf
# sentinel monitor <name> <ip> <port> quorum. Tells Sentinel to monitor this
# port <sentinel-port>
# slave, and to consider it in O_DOWN (Objectively Down) state only if at
# The port that this sentinel instance will run on
# least <quorum> sentinels agree.
port
26379
# sentinel monitor <name> <ip> <redis-port> <quorum>
# Tells Sentinel to monitor this slave, and to consider it in O_DOWN
# (Objectively Down) state only if at least <quorum> sentinels agree.
#
#
# Note: master name should not include special characters or spaces.
# Note: master name should not include special characters or spaces.
# The valid charset is A-z 0-9 and the three characters ".-_".
# The valid charset is A-z 0-9 and the three characters ".-_".
sentinel
monitor
mymaster
127
.
0
.
0
.
1
6379
2
sentinel
monitor
mymaster
127
.
0
.
0
.
1
6379
2
# sentinel down-after-milliseconds <mymaster> <milliseconds>
# Number of milliseconds the master (or any attached slave or sentinel) should
# Number of milliseconds the master (or any attached slave or sentinel) should
# be unreachable (as in, not acceptable reply to PING, continuously, for the
# be unreachable (as in, not acceptable reply to PING, continuously, for the
# specified period) in order to consider it in S_DOWN state (Subjectively
# specified period) in order to consider it in S_DOWN state (Subjectively
...
@@ -16,15 +21,18 @@ sentinel monitor mymaster 127.0.0.1 6379 2
...
@@ -16,15 +21,18 @@ sentinel monitor mymaster 127.0.0.1 6379 2
# Default is 30 seconds.
# Default is 30 seconds.
sentinel
down
-
after
-
milliseconds
mymaster
30000
sentinel
down
-
after
-
milliseconds
mymaster
30000
# sentinel can-failover <mymaster> <yes|no>
# Specify if this Sentinel can start the failover for this master.
# Specify if this Sentinel can start the failover for this master.
sentinel
can
-
failover
mymaster
yes
sentinel
can
-
failover
mymaster
yes
# sentinel parallel-syncs <mymaster> <numslaves>
# How many slaves we can reconfigure to point to the new slave simultaneously
# How many slaves we can reconfigure to point to the new slave simultaneously
# during the failover. Use a low number if you use the slaves to serve query
# during the failover. Use a low number if you use the slaves to serve query
# to avoid that all the slaves will be unreachable at about the same
# to avoid that all the slaves will be unreachable at about the same
# time while performing the synchronization with the master.
# time while performing the synchronization with the master.
sentinel
parallel
-
syncs
mymaster
1
sentinel
parallel
-
syncs
mymaster
1
# sentinel failover-timeout <mymaster> <milliseconds>
# Specifies the failover timeout in milliseconds. When this time has elapsed
# Specifies the failover timeout in milliseconds. When this time has elapsed
# without any progress in the failover process, it is considered concluded by
# without any progress in the failover process, it is considered concluded by
# the sentinel even if not all the attached slaves were correctly configured
# the sentinel even if not all the attached slaves were correctly configured
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment