Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crush: add chooseleaf_stable tunable #6572

Merged
merged 9 commits into from Dec 23, 2015

Conversation

liewegas
Copy link
Member

No description provided.

@liewegas
Copy link
Member Author

@Sandy4999 I separated this out into separate patches to improve review, added tests, and made a few fixes to the feature bits. Please review!

@dachary Would be great if you could take a look too. Thanks!

@ghost ghost self-assigned this Nov 13, 2015
@SandyXSD
Copy link

@liewegas LGTM, thank you for the help!
Again to avoid the failure, we probably need newly encoded test CRUSHMaps/OSDMaps for test/encoding/readable.sh, or maybe just move the encode & decode steps of this new tunable to the end of all the other tunables.

@liewegas
Copy link
Member Author

@Sandy4999 Oh right, yep.. repushed!

@ghost
Copy link

ghost commented Nov 15, 2015

crushtool: error reading '/home/jenkins/workspace/ceph/LABELS/ceph-centos-7-jenkins/src/test/cli/crushtool/test-map-hammer-tunables.crushmap': can't open /home/jenkins/workspace/ceph/LABELS/ceph-centos-7-jenkins/src/test/cli/crushtool/test-map-hammer-tunables.crushmap: (2) No such file or directory

@ghost ghost assigned SandyXSD and unassigned ghost Nov 16, 2015
liewegas and others added 7 commits November 25, 2015 14:47
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Add a tunable to fix the bug that chooseleaf may cause unnecessary pg
migrations when some device fails.

Signed-off-by: Sangdi Xu <xu.sangdi@h3c.com>
Signed-off-by: Sangdi Xu <xu.sangdi@h3c.com>
Signed-off-by: Sangdi Xu <xu.sangdi@h3c.com>
Signed-off-by: Sangdi Xu <xu.sangdi@h3c.com>
Set chooseleaf_stable = 1

Signed-off-by: Sage Weil <sage@redhat.com>
@ghost ghost self-assigned this Dec 3, 2015
@ghost
Copy link

ghost commented Dec 14, 2015

@liewegas it would be good to have a unit test verifying the expected difference between stable == 0 & stable == 1. The change is enough :-) There should also be an associated ceph-qa-suite test to verify it behaves as expected during upgrades ?

Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
@liewegas
Copy link
Member Author

@dachary that's what the jewel test mapping is supposed to show, although I just check it and I had made a mistake (chooseleaf_stable = 1 wasn't set in the jewel map). Fixing that now.

@liewegas
Copy link
Member Author

We don't have a good strategy for testing that the feature bits are enforced during upgrades. :/

@ghost ghost added the needs-qa label Dec 14, 2015
@ghost
Copy link

ghost commented Dec 14, 2015

Reviewed-by: Loic Dachary <ldachary@redhat.com>

liewegas added a commit that referenced this pull request Dec 23, 2015
crush: add chooseleaf_stable tunable

Reviewed-by: Loic Dachary <ldachary@redhat.com>
@liewegas liewegas merged commit 44a3dbb into ceph:master Dec 23, 2015
@liewegas liewegas deleted the wip-crush-chooseleaf-stable branch December 23, 2015 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants