]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove rgw_rados_pool_pg_num_min and its use on pool creation 46235/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 10 Feb 2022 18:39:24 +0000 (13:39 -0500)
committerVikhyat Umrao <vikhyat@redhat.com>
Wed, 11 May 2022 21:53:34 +0000 (14:53 -0700)
use the cluster defaults for pg_num_min

Fixes: https://tracker.ceph.com/issues/52673
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 8cc82b6fe8ee266a45ffae36202b0f168bec9788)

 Conflicts:
src/common/options/rgw.yaml.in
        - not part of pacific branch
        src/common/options.cc
        - changes for src/common/options/rgw.yaml.in are present in
          this file.

src/common/options.cc
src/rgw/rgw_tools.cc

index 7fda073872332d296ec47c30df715a98c8d48eaf..7d1768b115625f1d784ea9bd5fb362a247bd6348 100644 (file)
@@ -6399,11 +6399,6 @@ std::vector<Option> get_rgw_options() {
     .set_min_max(0.01, 100000.0)
     .set_description("pg_autoscale_bias value for RGW metadata (omap-heavy) pools"),
 
-    Option("rgw_rados_pool_pg_num_min", Option::TYPE_UINT, Option::LEVEL_ADVANCED)
-    .set_default(8)
-    .set_min_max(1, 1024)
-    .set_description("pg_num_min value for RGW metadata (omap-heavy) pools"),
-
     Option("rgw_rados_pool_recovery_priority", Option::TYPE_UINT, Option::LEVEL_ADVANCED)
     .set_default(5)
     .set_min_max(-10, 10)
index 4ed742ceffcbd8762dc2138fe665bed245e160a0..4770da5f015022a2c991fe5626e07a8a3e441053 100644 (file)
@@ -78,17 +78,6 @@ int rgw_init_ioctx(const DoutPrefixProvider *dpp,
        ldpp_dout(dpp, 10) << __func__ << " warning: failed to set pg_autoscale_bias on "
                 << pool.name << dendl;
       }
-      // set pg_num_min
-      int min = g_conf().get_val<uint64_t>("rgw_rados_pool_pg_num_min");
-      r = rados->mon_command(
-       "{\"prefix\": \"osd pool set\", \"pool\": \"" +
-       pool.name + "\", \"var\": \"pg_num_min\", \"val\": \"" +
-       stringify(min) + "\"}",
-       inbl, NULL, NULL);
-      if (r < 0) {
-       ldpp_dout(dpp, 10) << __func__ << " warning: failed to set pg_num_min on "
-                << pool.name << dendl;
-      }
       // set recovery_priority
       int p = g_conf().get_val<uint64_t>("rgw_rados_pool_recovery_priority");
       r = rados->mon_command(