Project

General

Profile

Bug #20076

Pass empty string to clear mantle balancer

Added by Zhi Zhang 6 months ago. Updated 6 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
multi-MDS
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:
Release:
Component(FS):
Needs Doc:
No

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 6 months 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 6 months ago

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

ceph fs set cephfs balancer "" 

#4 Updated by John Spray 6 months ago

  • Status changed from New to Resolved

Also available in: Atom PDF