]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/PG: find_best_info - add completeness as the preferred option
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 14 Aug 2018 06:24:55 +0000 (14:24 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Fri, 31 Aug 2018 05:51:04 +0000 (13:51 +0800)
commit4068e724ce9cc1463de0174c2ad266bec3454630
treec1b7f1a0d097261be15c4b1fc2191c4e571c97ff
parent5608b1901cb19a3bbc41a50840f079a58b9435c2
osd/PG: find_best_info - add completeness as the preferred option

Async recovery peers usually have a relative complete
log history but may exist a lot of missing objects. Choosing them
as auth_log_shard and further as primary if current up_primary is
unrecoverable, say, could have a bigger chance to block client I/Os.

Among peers with identical new log history, we now consider those
who are now complete (having no missing objects) as the preferred
ones when determining auth_log_shard.

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