anchor.diff:  # The valid charset is A-z 0-9 and the three characters ".-_".
   sentinel monitor <%= @redis['master_name'] %> <%= @redis['master_ip'] %> <%= @redis['master_port'] %> <%= @sentinel['quorum'] %>
   
  +# sentinel down-after-milliseconds <master-name> <milliseconds>
  +#
  +# Number of milliseconds the master (or any attached slave or sentinel) should
  +# be unreachable (as in, not acceptable reply to PING, continuously, for the
  +# specified period) in order to consider it in S_DOWN state (Subjectively
  +# Down).
  +#
  +# Default is 30 seconds.
  +sentinel down-after-milliseconds <%= @redis['master_name'] %> <%= @sentinel['down_after_milliseconds'] %>
  +
  +# sentinel parallel-syncs <master-name> <numslaves>
  +#
  +# How many slaves we can reconfigure to point to the new slave simultaneously
  +# during the failover. Use a low number if you use the slaves to serve query
  +# to avoid that all the slaves will be unreachable at about the same
  +# time while performing the synchronization with the master.
  +# sentinel parallel-syncs localhost 1
  +
  +# sentinel failover-timeout <master-name> <milliseconds>
  +#
  +# Specifies the failover timeout in milliseconds. It is used in many ways:
  +#
  +# - The time needed to re-start a failover after a previous failover was
  +#   already tried against the same master by a given Sentinel, is two
  +#   times the failover timeout.
  +#
  +# - The time needed for a slave replicating to a wrong master according
  +#   to a Sentinel current configuration, to be forced to replicate
  +#   with the right master, is exactly the failover timeout (counting since
  +#   the moment a Sentinel detected the misconfiguration).
  +#
  +# - The time needed to cancel a failover that is already in progress but
  +#   did not produced any configuration change (SLAVEOF NO ONE yet not
  +#   acknowledged by the promoted slave).
  +#
  +# - The maximum time a failover in progress waits for all the slaves to be
  +#   reconfigured as slaves of the new master. However even after this time
  +#   the slaves will be reconfigured by the Sentinels anyway, but not with
  +#   the exact parallel-syncs progression as specified.
  +#
  +# Default is 3 minutes.
  +sentinel failover-timeout <%= @redis['master_name'] %> <%= @sentinel['failover_timeout'] %>
  +
   # sentinel auth-pass <master-name> <password>
   #
   # Set the password to use to authenticate with the master and slaves.
  
positive.code: # Example:
  #
  # sentinel client-reconfig-script mymaster /var/redis/reconfig.sh
  <%= "sentinel myid #{@sentinel['myid']}" if @sentinel['myid'] %>
  
negative.code: # unmounting filesystems.
  dir <%= %Q("#{@sentinel['dir']}") %>
  
  # sentinel myid <id>
  #
  # Unique 40 hex-characters long identification of the instance in the cluster
  # This value is spread across all sentinels and each instance keep a list of
  # "known" instances to calculate majority in a failover consensus voting.
  <%= "sentinel myid #{@sentinel['myid']}" if @sentinel['myid'] %>
  
  # sentinel monitor <master-name> <ip> <redis-port> <quorum>
  #
  # Tells Sentinel to monitor this master, and to consider it in O_DOWN
  