diff options
author | antirez <antirez@gmail.com> | 2012-07-31 11:05:21 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2012-09-27 13:05:15 +0200 |
commit | 7c9bfe10367a50c44aec53a59da14f2540f82aa4 (patch) | |
tree | 1d36c9daf03886858489f359ea5a7391c3c1be84 | |
parent | 3da75e2ca42a12623d80293755eaafa780de8074 (diff) | |
download | redis-7c9bfe10367a50c44aec53a59da14f2540f82aa4.tar.gz |
Sentinel: sentinel.conf self-documenation improved.
-rw-r--r-- | sentinel.conf | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sentinel.conf b/sentinel.conf index 45c34401d..367b3de45 100644 --- a/sentinel.conf +++ b/sentinel.conf @@ -52,6 +52,27 @@ sentinel parallel-syncs mymaster 1 # Default is 15 minutes. sentinel failover-timeout mymaster 900000 +# SCRIPTS EXECTION +# +# sentinel notification-script and sentinel reconfig-script are used in order +# to configure scripts that are called to notify the system administrator +# or to reconfigure clients after a failover. The scripts are executed +# with the following rules for error handling: +# +# If script exists with "1" the execution is retried later (up to a maximum +# number of times currently set to 10). +# +# If script exists with "2" (or an higher value) the script execution is +# not retried. +# +# If script terminates because it receives a signal the behavior is the same +# as exit code 1. +# +# A script has a maximum running time of 60 seconds. After this limit is +# reached the script is terminated with a SIGKILL and the execution retried. + +# NOTIFICATION SCRIPT +# # sentinel notification-script <master-name> <script-path> # # Call the specified notification script for any sentienl event that is |