Skip to content

Instantly share code, notes, and snippets.

@gimenete
Created August 2, 2012 13:20
Show Gist options
  • Save gimenete/3237060 to your computer and use it in GitHub Desktop.
Save gimenete/3237060 to your computer and use it in GitHub Desktop.
Minor aesthetic proposal for sentinel configuration

This is the current pattern for configuration options

port 26379
sentinel monitor mymaster 127.0.0.1 6379 2
sentinel down-after-milliseconds mymaster 5000
sentinel failover-timeout mymaster 900000
sentinel can-failover mymaster yes
sentinel parallel-syncs mymaster 1

I think this is much more legible since all options begin in the same character column

port 26379
sentinel mymaster monitor 127.0.0.1 6379 2
sentinel mymaster down-after-milliseconds 5000
sentinel mymaster failover-timeout 900000
sentinel mymaster can-failover yes
sentinel mymaster parallel-syncs 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment