From: Sage Weil Date: Tue, 2 Apr 2019 17:18:33 +0000 (-0500) Subject: mgr/volume: default to 16 PGs (min) for metadata pool X-Git-Tag: v15.1.0~3003^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b567b110cb6286d4676653179cb86ae1fe861f15;p=ceph.git mgr/volume: default to 16 PGs (min) for metadata pool Set the min so that the pg_autoscaler won't scale it back down. Choose something large enough that even for a large FS we'll do reasonably well distributing the metadata workload across OSDs. Signed-off-by: Sage Weil --- diff --git a/src/pybind/mgr/volumes/module.py b/src/pybind/mgr/volumes/module.py index 63f8d0764e75..163f0d0a84ba 100644 --- a/src/pybind/mgr/volumes/module.py +++ b/src/pybind/mgr/volumes/module.py @@ -131,7 +131,8 @@ class Module(orchestrator.OrchestratorClientMixin, MgrModule): r, outb, outs = self.mon_command({ 'prefix': 'osd pool create', 'pool': mdp_name, - 'pg_num': 8 + 'pg_num': 16, + 'pg_num_min': 16, }) if r != 0: return r, outb, outs