]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/volume: set cephfs metadata bias at 4x
authorSage Weil <sage@redhat.com>
Tue, 2 Apr 2019 17:20:15 +0000 (12:20 -0500)
committerSage Weil <sage@redhat.com>
Tue, 2 Apr 2019 17:20:44 +0000 (12:20 -0500)
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>
src/pybind/mgr/volumes/module.py

index 163f0d0a84bae7d7a59a406ac740ff532336f3f0..0b2588a8684825d5ce7441ebd7dcb3d726428b48 100644 (file)
@@ -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,