Last active
August 29, 2015 14:13
-
-
Save zatosource/ced433b550f9069bc1db to your computer and use it in GitHub Desktop.
sentinel1 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 redis1 | |
port 16355 | |
# | |
# 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