]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove rgw_rados_pool_pg_num_min and its use on pool creation 46234/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:47:17 +0000 (14:47 -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)

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

index ac7f6ac1b6e60a22b591c67ef49fe6bbec33711a..a561a3b1239bad75dca33bf94fd12e3d05a4d318 100644 (file)
@@ -1157,15 +1157,6 @@ options:
   - rgw
   min: 0.01
   max: 100000
-- name: rgw_rados_pool_pg_num_min
-  type: uint
-  level: advanced
-  desc: pg_num_min value for RGW metadata (omap-heavy) pools
-  default: 8
-  services:
-  - rgw
-  min: 1
-  max: 1_K
 - name: rgw_rados_pool_recovery_priority
   type: uint
   level: advanced
index 105fcc0579c1a90e14a667056ed18ca225bdb694..ed0f872108ef1ca5db6566e98ef29c36b3396b06 100644 (file)
@@ -80,17 +80,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(