Skip to content

Instantly share code, notes, and snippets.

View zatosource's full-sized avatar

ESB, SOA, REST, APIs and Cloud Integrations in Python zatosource

View GitHub Profile
@zatosource
zatosource / sentinel3.conf
Created January 13, 2015 21:36
sentinel3 configuration (Redis HA w/ sentinels guide)
# 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.
#
@zatosource
zatosource / sentinel2.conf
Created January 13, 2015 21:35
sentinel2 configuration (Redis HA w/ sentinels guide)
# Host and port we will listen for requests on
bind redis2
port 26355
#
# 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.
@zatosource
zatosource / sentinel1.conf
Last active August 29, 2015 14:13
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.
@zatosource
zatosource / node3.conf
Created January 13, 2015 21:32
node3 configuration (Redis HA w/ sentinels guide)
# Host and port we will listen for requests on
bind redis3
port 36300
# Database location
dir .
# Where to replicate from
slaveof redis1 16300
@zatosource
zatosource / node2.conf
Created January 13, 2015 21:31
node2 configuration (Redis HA w/ sentinels guide)
# Host and port we will listen for requests on
bind redis2
port 26300
# Database location
dir .
# Where to replicate from
slaveof redis1 16300
@zatosource
zatosource / node1.conf
Created January 13, 2015 21:30
node1 configuration (Redis HA w/ sentinels guide)
# Host and port we will listen for requests on
bind redis1
port 16300
# Database location
dir .