]> git.saurik.com Git - redis.git/commitdiff
Sentinel: Redis-side support for slave priority.
authorantirez <antirez@gmail.com>
Tue, 28 Aug 2012 15:20:26 +0000 (17:20 +0200)
committerantirez <antirez@gmail.com>
Fri, 31 Aug 2012 08:30:29 +0000 (10:30 +0200)
A Redis slave can now be configured with a priority, that is an integer
number that is shown in INFO output and can be get and set using the
redis.conf file or the CONFIG GET/SET command.

This field is used by Sentinel during slave election. A slave with lower
priority is preferred. A slave with priority zero is never elected (and
is considered to be impossible to elect even if it is the only slave
available).

A next commit will add support in the Sentinel side as well.


No differences found