]> 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>
Thu, 27 Sep 2012 11:05:49 +0000 (13:05 +0200)
commit161e137c55b1404b7fb2250b280c34379072d036
treeea58b3a5e925c76aca442cc3537c11f2372c1543
parentd480b9ce7facab3aa96d8a4ef951fccc45930055
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