From 91e4fc24e785a25884125df6762ab2304bf8908b Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 3 Sep 2019 10:54:47 -0500 Subject: [PATCH] common: default pg_autoscale_mode=on for new pools Signed-off-by: Sage Weil --- PendingReleaseNotes | 7 +++++++ src/common/options.cc | 2 +- src/test/cli/osdmaptool/clobber.t | 4 ++-- src/test/cli/osdmaptool/create-print.t | 4 ++-- src/test/cli/osdmaptool/create-racks.t | 4 ++-- 5 files changed, 14 insertions(+), 7 deletions(-) diff --git a/PendingReleaseNotes b/PendingReleaseNotes index 1f819531271..6e42ef314cf 100644 --- a/PendingReleaseNotes +++ b/PendingReleaseNotes @@ -135,3 +135,10 @@ * New OSD daemon command dump_scrub_reservations which reveals the scrub reservations that are held for local (primary) and remote (replica) PGs. + +* The ``pg_autoscale_mode`` is now set to ``on`` by default for newly + created pools, which means that Ceph will automatically manage the + number of PGs. To change this behavior, or to learn more about PG + autoscaling, see :ref:`pg-autoscaler`. Note that existing pools in + upgraded clusters will still be set to ``warn`` by default. + diff --git a/src/common/options.cc b/src/common/options.cc index 5ccc6142046..e5bca3c1841 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -2625,7 +2625,7 @@ std::vector