Skip to content

Instantly share code, notes, and snippets.

@zatosource
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zatosource/ced433b550f9069bc1db to your computer and use it in GitHub Desktop.
Save zatosource/ced433b550f9069bc1db to your computer and use it in GitHub Desktop.
sentinel1 configuration (Redis HA w/ sentinels guide)
# 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