]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: disable min pg per osd warning 30352/head
authorSage Weil <sage@redhat.com>
Wed, 11 Sep 2019 22:26:52 +0000 (17:26 -0500)
committerSage Weil <sage@redhat.com>
Wed, 11 Sep 2019 22:27:24 +0000 (17:27 -0500)
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>
src/common/options.cc

index 5ccc6142046adfc7d6031d14265fb37f2d85d49d..5f5e1f2836fe9455cc74393e6204db9e2c58e5fb 100644 (file)
@@ -1565,7 +1565,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"),