]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: make reweight max_change default configurable
authorSage Weil <sage@redhat.com>
Thu, 3 Mar 2016 18:38:57 +0000 (13:38 -0500)
committerSage Weil <sage@redhat.com>
Thu, 10 Mar 2016 13:30:47 +0000 (08:30 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 8a9429d85bc99874dc9871b43b2d0c7ad1086803)

src/common/config_opts.h
src/mon/OSDMonitor.cc

index 1c313186e8797eb8c624dde83dcb5709b77996fe..9bb15faa1e5485fe492e875803bb2a2e01193654 100644 (file)
@@ -236,6 +236,7 @@ OPTION(mon_max_log_entries_per_event, OPT_INT, 4096)
 OPTION(mon_reweight_min_pgs_per_osd, OPT_U64, 10)   // min pgs per osd for reweight-by-pg command
 OPTION(mon_reweight_min_bytes_per_osd, OPT_U64, 100*1024*1024)   // min bytes per osd for reweight-by-utilization command
 OPTION(mon_reweight_max_osds, OPT_INT, 4)   // max osds to change per reweight-by-* command
+OPTION(mon_reweight_max_change, OPT_DOUBLE, 0.05)
 OPTION(mon_health_data_update_interval, OPT_FLOAT, 60.0)
 OPTION(mon_health_to_clog, OPT_BOOL, true)
 OPTION(mon_health_to_clog_interval, OPT_INT, 3600)
index cedf19a686b04520c907dfb3f65bbee3676f0ce4..f6ea1fbc6b2bbcc05490661eee9c8fc0960f9709 100644 (file)
@@ -6666,7 +6666,7 @@ done:
       }
       pools.insert(pool);
     }
-    double max_change = .05;
+    double max_change = g_conf->mon_reweight_max_change;
     cmd_getval(g_ceph_context, cmdmap, "max_change", max_change);
     if (max_change <= 0.0) {
       ss << "max_change " << max_change << " must be positive";