Bug #16481
Updated by Vikhyat Umrao almost 8 years ago
`$ceph osd crush tunable hammer` is NOT setting tunable profile to "hammer" and "straw_calc_version": 1 <pre> # ceph osd crush tunables hammer # ceph osd crush show-tunables { "choose_local_tries": 0, "choose_local_fallback_tries": 0, "choose_total_tries": 50, "chooseleaf_descend_once": 1, "chooseleaf_vary_r": 1, "straw_calc_version": 0, <-------------------- "allowed_bucket_algs": 54, "profile": "unknown", <-------------------- "optimal_tunables": 0, "legacy_tunables": 0, "require_feature_tunables": 1, "require_feature_tunables2": 1, "require_feature_tunables3": 1, "has_v2_rules": 1, "has_v3_rules": 0, "has_v4_buckets": 1 } </pre> <\pre> - Earlier I thought this could be a cosmetic bug not only setting the profile name but internally it has set the tunable to hammer. <pre> # ceph osd crush tunables optimal adjusted tunables profile to optimal # ceph osd crush show-tunables { "choose_local_tries": 0, "choose_local_fallback_tries": 0, "choose_total_tries": 50, "chooseleaf_descend_once": 1, "chooseleaf_vary_r": 1, "straw_calc_version": 1, <------------------- "allowed_bucket_algs": 54, "profile": "hammer", <------------------- "optimal_tunables": 0, "legacy_tunables": 0, "require_feature_tunables": 1, "require_feature_tunables2": 1, "require_feature_tunables3": 1, "has_v2_rules": 1, "has_v3_rules": 0, "has_v4_buckets": 1 } </pre> <\pre> - But I have cross verified with setting *optimal* tunable and directly giving *hammer* tunable name has a difference which is nothing but as given in $subject. "$ceph osd crush tunable hammer is NOT setting tunable profile to "hammer" and "straw_calc_version" to 1"