From edce31fdeaa18b6b0ff18e5bb72edeaf9c498c4d Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 2 Apr 2019 12:18:33 -0500 Subject: [PATCH] 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 (cherry picked from commit b567b110cb6286d4676653179cb86ae1fe861f15) --- src/pybind/mgr/volumes/module.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pybind/mgr/volumes/module.py b/src/pybind/mgr/volumes/module.py index 4085fba7083c0..c8a768c3164e7 100644 --- a/src/pybind/mgr/volumes/module.py +++ b/src/pybind/mgr/volumes/module.py @@ -200,7 +200,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 -- 2.39.5