]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: disable min pg per osd warning 34618/head
authorSage Weil <sage@redhat.com>
Wed, 11 Sep 2019 22:26:52 +0000 (17:26 -0500)
committerNeha Ojha <nojha@redhat.com>
Fri, 17 Apr 2020 16:57:49 +0000 (09:57 -0700)
Now that the pg_autoscaler is on by default, it is "normal" (and okay) to
have a small number of PGs in the cluster if the overall cluster usage is
also low.  This setting just results in a health warning out of the box
when you create a pool and haven't written any data yet.

Fixes: https://tracker.ceph.com/issues/41735
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 1ac34a5ea3d1aca299b02e574b295dd4bf6167f4)

src/common/options.cc

index 304135391320f343c107c1fab4613ea37b260113..4074f00b05039644facea48135ad480c134eeee6 100644 (file)
@@ -1597,7 +1597,7 @@ std::vector<Option> get_global_options() {
     .add_service("mgr"),
 
     Option("mon_pg_warn_min_per_osd", Option::TYPE_UINT, Option::LEVEL_ADVANCED)
-    .set_default(30)
+    .set_default(0)
     .add_service("mgr")
     .set_description("minimal number PGs per (in) osd before we warn the admin"),