Created
January 13, 2015 21:36
-
-
Save zatosource/a135f5973d43a5d5ede7 to your computer and use it in GitHub Desktop.
sentinel3 configuration (Redis HA w/ sentinels guide)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Host and port we will listen for requests on | |
bind redis3 | |
port 36355 | |
# | |
# Our initial master is called redis-ha, there is a quorum of 2 sentinels | |
# needed for failover, after 10 seconds we declare a node to | |
# be down in our opinion, only 1 standby (slave) node can replicate with | |
# new master after failover and we don't allow for the same master to be failed over | |
# more often than once in 3 minutes. | |
# | |
sentinel monitor redis-ha redis1 16300 2 | |
sentinel down-after-milliseconds redis-ha 10000 | |
sentinel parallel-syncs redis-ha 1 | |
sentinel failover-timeout redis-ha 180000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment