From: Sage Weil Date: Tue, 2 Apr 2019 17:20:15 +0000 (-0500) Subject: mgr/volume: set cephfs metadata bias at 4x X-Git-Tag: v14.2.2~54^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7b843c83bbab6de65754e7116c6b879c62ef6c4c;p=ceph.git 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) --- 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,