]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crush: set_choose_tries = 100 for erasure code rulesets 3824/head
authorLoic Dachary <ldachary@redhat.com>
Wed, 17 Dec 2014 15:06:55 +0000 (16:06 +0100)
committerLoic Dachary <ldachary@redhat.com>
Fri, 27 Feb 2015 16:18:29 +0000 (17:18 +0100)
commit1e58bb49b99118d064c1ca92e42cbfb2786fdaff
treed548b0bbb4ded4561c6ca459b48d9d0611b1ec8a
parent0820041e6515c82c41b81b9e6825e2dd5fcb8165
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)

Conflicts:
src/erasure-code/lrc/ErasureCodeLrc.cc
        safely ignored because the file does not exist
src/crush/CrushWrapper.cc
src/erasure-code/lrc/ErasureCodeLrc.cc [new file with mode: 0644]