Skip to content

Commit

Permalink
mgr/volume: set cephfs metadata bias at 4x
Browse files Browse the repository at this point in the history
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 1b273d3)
  • Loading branch information
liewegas authored and ajarr committed Jun 13, 2019
1 parent edce31f commit 7b843c8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/pybind/mgr/volumes/module.py
Expand Up @@ -206,6 +206,16 @@ def _cmd_fs_volume_create(self, inbuf, cmd):
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,
Expand Down

0 comments on commit 7b843c8

Please sign in to comment.