]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush: set_choose_tries = 100 for erasure code rulesets 4031/head
authorLoic Dachary <ldachary@redhat.com>
Wed, 17 Dec 2014 15:06:55 +0000 (16:06 +0100)
committerLoic Dachary <ldachary@redhat.com>
Tue, 17 Mar 2015 10:16:52 +0000 (11:16 +0100)
commit5fca232080c0bde50b5c65c60c133bf81311e8d3
tree7bdee767cf5d0bd5fd2015c801255ac8af009bca
parent938e03630e075af03780da139ae879b5b0377734
crush: set_choose_tries = 100 for erasure code rulesets

It is common for people to try to map 9 OSDs out of a 9 OSDs total ceph
cluster. The default tries (50) will frequently lead to bad mappings for
this use case. Changing it to 100 makes no significant CPU performance
difference, as tested manually by running crushtool on one million
mappings.

http://tracker.ceph.com/issues/10353 Fixes: #10353

Signed-off-by: Loic Dachary <ldachary@redhat.com>
(cherry picked from commit 2f87ac807f3cc7ac55d9677d2051645bf5396a62)
src/crush/CrushWrapper.cc
src/erasure-code/lrc/ErasureCodeLrc.cc