]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: prefer acting osds in calc_acting()
authorSage Weil <sage@inktank.com>
Thu, 23 Aug 2012 20:27:26 +0000 (13:27 -0700)
committerSage Weil <sage@inktank.com>
Thu, 23 Aug 2012 20:27:26 +0000 (13:27 -0700)
commit1c3111f25bb8c61dd7c3b15cbe3e65c97f7e827f
tree4c4b7143108ecef80c8962768b1112d80ff48d95
parentfed8aea662bf919f35a5a72e4e2a2a685af2b2ed
osd: prefer acting osds in calc_acting()

We currently prefer up osds, and then pull sequentially from peer_info
(strays we know about at the time).  This adds an additional preference
for the current acting, which means we can avoid changes to acting when
they are largely useless.

In particular, I observed that we chose [5,3] and later (when recovery
completed) chose [5,1] because we had since heard about an eligible stray
on 1.  That switch was basically a waste...

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
src/osd/PG.cc