]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/PGMap: reweight::by_utilization - skip DNE osds 17198/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 17 Aug 2017 11:15:15 +0000 (19:15 +0800)
committerAbhishek Lekshmanan <abhishek@suse.com>
Wed, 23 Aug 2017 13:48:34 +0000 (15:48 +0200)
commit30d41517064e4e25e60c7cf1ae8cef55e995bda2
tree85f33ba932b8e030d8fb29cd5670a482e5aa306d
parentc4e37e01b4eefc50609b2d2f409cd92137c3423c
mon/PGMap: reweight::by_utilization - skip DNE osds

EC could set one or more members of acting set to CRUSH_ITEM_NONE,
which as a result can cause pgs_by_osd.resize() attempt to apply
for a large amount of memory which we can not afford.

Fix the above problem by always excluding a current DNE osd from
acting set.

Fixes: http://tracker.ceph.com/issues/20970
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit 6ae96d33a84404a144e06c423796e4a3886d8e61)
src/mon/PGMap.cc