diff options
author | antirez <antirez@gmail.com> | 2012-08-28 17:53:18 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2012-08-30 15:05:00 +0200 |
commit | 62c8fa38a9a136f8c086b88c5c1731f90fff4994 (patch) | |
tree | b256a833eb5491abc62de07bb775df7847be9e24 | |
parent | dfdbb2272dc556fa313602aab7e8b3ac5d9a6980 (diff) | |
download | redis-62c8fa38a9a136f8c086b88c5c1731f90fff4994.tar.gz |
Sentinel: added documentation about slave-priority in redis.conf
-rw-r--r-- | redis.conf | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/redis.conf b/redis.conf index d407ea23d..8482a9ed0 100644 --- a/redis.conf +++ b/redis.conf @@ -150,6 +150,21 @@ slave-serve-stale-data yes # # repl-timeout 60 +# The slave priority is an integer number published by Redis in the INFO output. +# It is used by Redis Sentinel in order to select a slave to promote into a +# master if the master is no longer working correctly. +# +# A slave with a low priority number is considered better for promotion, so +# for instance if there are three slaves with priority 10, 100, 25 Sentinel will +# pick the one wtih priority 10, that is the lowest. +# +# However a special priority of 0 marks the slave as not able to perform the +# role of master, so a slave with priority of 0 will never be selected by +# Redis Sentinel for promotion. +# +# By default the priority is 100. +slave-priority 100 + ################################## SECURITY ################################### # Require clients to issue AUTH <PASSWORD> before processing any other |