]> git-server-git.apps.pok.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, 3 Mar 2016 18:49:06 +0000 (13:49 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/common/config_opts.h
src/mon/OSDMonitor.cc

index 5ebe5fb65022fd65f8001a7798052b6cd9a6766d..8463a238ecc15a40e4a413e3669d77851e504b67 100644 (file)
@@ -282,6 +282,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 38dc58c6f832f74f5fe334a1b2d1e2821f8be548..6a22f991768234bf0795ed069ade959aadce548d 100644 (file)
@@ -7516,7 +7516,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";