]> git.saurik.com Git - redis.git/commit
Sentinel: Sentinel-side support for slave priority.
authorantirez <antirez@gmail.com>
Tue, 28 Aug 2012 15:45:01 +0000 (17:45 +0200)
committerantirez <antirez@gmail.com>
Tue, 28 Aug 2012 15:45:01 +0000 (17:45 +0200)
commit3ec701e0597cd59d63835fc1b8e1ebeec78e9788
tree72820d9cf99658601b688c659293f83023beead0
parent169a44cbd6b6a143b282206d754b71cd3af0c963
Sentinel: Sentinel-side support for slave priority.

The slave priority that is now published by Redis in INFO output is
now used by Sentinel in order to select the slave with minimum priority
for promotion, and in order to consider slaves with priority set to 0 as
not able to play the role of master (they will never be promoted by
Sentinel).

The "slave-priority" field is now one of the fileds that Sentinel
publishes when describing an instance via the SENTINEL commands such as
"SENTINEL slaves mastername".
src/sentinel.c