From 7b843c83bbab6de65754e7116c6b879c62ef6c4c 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 (cherry picked from commit 1b273d3faf7740834d96d127dffcc8873bd30fce) --- 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 c8a768c3164e..9d066e406073 100644 --- a/src/pybind/mgr/volumes/module.py +++ b/src/pybind/mgr/volumes/module.py @@ -206,6 +206,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.47.3