Project

General

Profile

Actions

Bug #16481

closed

$ceph osd crush tunable hammer is NOT setting tunable profile to "hammer" and "straw_calc_version" to 1

Added by Vikhyat Umrao almost 8 years ago. Updated over 7 years ago.

Status:
Won't Fix
Priority:
High
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Support
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

`$ceph osd crush tunable hammer` is NOT setting tunable profile to "hammer" and "straw_calc_version": 1

# 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
}

- Earlier I thought this could be a cosmetic bug not only setting the profile name but internally it has set the tunable to hammer.

# 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
}

- 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"

Actions

Also available in: Atom PDF