Skip to content

Instantly share code, notes, and snippets.

Avatar

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

View GitHub Profile
@zatosource
zatosource / sentinel3.conf
Created Jan 13, 2015
sentinel3 configuration (Redis HA w/ sentinels guide)
View sentinel3.conf
# 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 Jan 13, 2015
sentinel2 configuration (Redis HA w/ sentinels guide)
View sentinel2.conf
# 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 Aug 29, 2015
sentinel1 configuration (Redis HA w/ sentinels guide)
View sentinel1.conf
# 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 Jan 13, 2015
node3 configuration (Redis HA w/ sentinels guide)
View node3.conf
# 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 Jan 13, 2015
node2 configuration (Redis HA w/ sentinels guide)
View node2.conf
# 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 Jan 13, 2015
node1 configuration (Redis HA w/ sentinels guide)
View node1.conf
# Host and port we will listen for requests on
bind redis1
port 16300
# Database location
dir .