From 1b273d3faf7740834d96d127dffcc8873bd30fce Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 2 Apr 2019 12:20:15 -0500 Subject: [PATCH] mgr/volume: set cephfs metadata bias at 4x Count cephfs metadata at 4x regular rate so that the metadata pool scales more aggressively than data pools. Signed-off-by: Sage Weil --- src/pybind/mgr/volumes/module.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/pybind/mgr/volumes/module.py b/src/pybind/mgr/volumes/module.py index 163f0d0a84b..0b2588a8684 100644 --- a/src/pybind/mgr/volumes/module.py +++ b/src/pybind/mgr/volumes/module.py @@ -137,6 +137,16 @@ class Module(orchestrator.OrchestratorClientMixin, MgrModule): if r != 0: return r, outb, outs + # count fs metadata omap at 4x usual rate + r, outb, outs = self.mon_command({ + 'prefix': 'osd pool set', + 'pool': mdp_name, + 'var': "pg_autoscale_bias", + 'val': "4.0", + }) + if r != 0: + return r, outb, outs + r, outb, outs = self.mon_command({ 'prefix': 'osd pool create', 'pool': dp_name, -- 2.39.5