Skip to content

Instantly share code, notes, and snippets.

@matetsu
Created December 28, 2012 04:00
Show Gist options
  • Save matetsu/4394319 to your computer and use it in GitHub Desktop.
Save matetsu/4394319 to your computer and use it in GitHub Desktop.
監視設定などを埋め込むためのsentinel設定ファイルテンプレート。
daemonize yes
pidfile /var/run/redis-sentinel.pid
loglevel notice
logfile /var/log/redis-sentinel.log
port 26379
sentinel monitor __MASTER_HOST__-cluster __MASTER_HOST__ 6379 1
sentinel auth-pass __MASTER_HOST__-cluster [masterauth]
sentinel down-after-milliseconds __MASTER_HOST__-cluster 30000
sentinel can-failover __MASTER_HOST__-cluster yes
sentinel parallel-syncs __MASTER_HOST__-cluster yes
sentinel failover-timeout __MASTER_HOST__-cluster 900000
#sentinel notification-script __MASTER_HOST__-cluster /usr/local/sbin/redis-notification.py
sentinel client-reconfig-script __MASTER_HOST__-cluster /usr/local/sbin/redis-failover.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment