Project

General

Profile

Actions

Bug #20076

closed

Pass empty string to clear mantle balancer

Added by Zhi Zhang almost 7 years ago. Updated about 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% 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:
Crash signature (v1):
Crash signature (v2):

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.

Actions

Also available in: Atom PDF