]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/PG: perfer async_recovery_targets in reverse order of cost 21578/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Fri, 20 Apr 2018 10:29:26 +0000 (18:29 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Sat, 21 Apr 2018 00:52:52 +0000 (08:52 +0800)
commit1118b44361f184ad7ea4c391962da8814b231bb6
tree5fd3db3dfa5a7adbfbf5a7a3268a1a01fc43cc39
parent5981f7bcb3588c068558408017bc4c43a730f802
osd/PG: perfer async_recovery_targets in reverse order of cost

Theoretically peers which have a longer list of objects to recover
shall equivalently take a longer time to recover and hence have a
bigger chance to block client ops.

Also, to minimize the risk of data loss, we want to bring those broken
(inconsistent) peers back to normal as soon as possible. Putting them
into the async_recovery_targets queue, however, did quite the oppsite.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/PG.cc