diff options
author | antirez <antirez@gmail.com> | 2012-07-23 12:54:52 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2012-07-23 13:14:44 +0200 |
commit | 6b5daa2df2a0711a25746cb025927dc3deb7717e (patch) | |
tree | 61a91d0834b0d327f4de9fe56d842303a730b9fc /sentinel.conf | |
parent | 03f412ddef44726ac32fa2f33a40037adb1b1b13 (diff) | |
download | redis-6b5daa2df2a0711a25746cb025927dc3deb7717e.tar.gz |
First implementation of Redis Sentinel.
This commit implements the first, beta quality implementation of Redis
Sentinel, a distributed monitoring system for Redis with notification
and automatic failover capabilities.
More info at http://redis.io/topics/sentinel
Diffstat (limited to 'sentinel.conf')
-rw-r--r-- | sentinel.conf | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/sentinel.conf b/sentinel.conf new file mode 100644 index 000000000..0e7a95429 --- /dev/null +++ b/sentinel.conf @@ -0,0 +1,41 @@ +# Example sentienl.conf + +# sentinel monitor <name> <ip> <port> quorum. Tells Sentinel to monitor this +# slave, and to consider it in O_DOWN (Objectively Down) state only if at +# least two sentinels agree. +# +# Note: master name should not include special characters or spaces. +# The valid charset is A-z 0-9 and the three characters ".-_". +sentinel monitor mymaster 127.0.0.1 6379 2 + +# Number of milliseconds the master (or any attached slave or sentinel) should +# be unreachable (as in, not acceptable reply to PING, continuously, for the +# specified period) in order to consider it in S_DOWN state (Subjectively +# Down). +# +# Default is 30 seconds. +sentinel down-after-milliseconds mymaster 30000 + +# Specify if this Sentinel can start the failover for this master. +sentinel can-failover mymaster yes + +# 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 +# to avoid that all the slaves will be unreachable at about the same +# time while performing the synchronization with the master. +sentinel parallel-syncs mymaster 1 + +# Specifies the failover timeout in milliseconds. When this time has elapsed +# without any progress in the failover process, it is considered concluded by +# the sentinel even if not all the attached slaves were correctly configured +# to replicate with the new master (however a "best effort" SLAVEOF command +# is sent to all the slaves before). +# +# Also when 25% of this time has elapsed without any advancement, and there +# is a leader switch (the sentinel did not started the failover but is now +# elected as leader), the sentinel will continue the failover doing a +# "takeover". +# +# Default is 15 minutes. +sentinel failover-timeout mymaster 900000 + |