]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/volume: set cephfs metadata bias at 4x 28429/head
authorSage Weil <sage@redhat.com>
Tue, 2 Apr 2019 17:20:15 +0000 (12:20 -0500)
committerRamana Raja <rraja@redhat.com>
Thu, 13 Jun 2019 15:42:27 +0000 (21:12 +0530)
Count cephfs metadata at 4x regular rate so that the metadata pool scales
more aggressively than data pools.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 1b273d3faf7740834d96d127dffcc8873bd30fce)

src/pybind/mgr/volumes/module.py

index c8a768c3164e7ecbd5d91f99bc62af6bc019b022..9d066e406073fd1af042e1429746900a3b5656f5 100644 (file)
@@ -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,