Project

General

Profile

Bug #20076

Pass empty string to clear mantle balancer

Added by Zhi Zhang almost 2 years ago. Updated 12 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
05/25/2017
Due date:
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
multimds
Pull request ID:

Description

Currently we can use "ceph fs set cephfs balancer <lua_conf_file>" to set mantle balancer. Then MDS balancer will try to use this mantle balancer firstly if MDS finds its balancer is not empty when handling hearbeat. If we want to switch back to old balancer, we need to set balancer to some strings which means an non-existed lua file to let MDS failing to reload it. But MDS still has to try reloading this non-existed lua file from OSD every time.

So we add a "clear_balancer" sub-command to clear mantle balancer, then MDS will see its balancer is empty again and won't send read OP to OSD every time.

History

#2 Updated by Zhi Zhang almost 2 years ago

  • Subject changed from mantle: add clear_balancer sub-command to unset mantle balancer to Pass empty string to clear mantle balancer

#3 Updated by Zhi Zhang almost 2 years ago

Changes have been made to use following command to clear mantle balancer

ceph fs set cephfs balancer "" 

#4 Updated by John Spray almost 2 years ago

  • Status changed from New to Resolved

#5 Updated by Patrick Donnelly 12 days ago

  • Category deleted (90)
  • Labels (FS) multimds added

Also available in: Atom PDF