From: Sridhar Seshasayee Date: Thu, 24 Jun 2021 13:15:33 +0000 (+0530) Subject: osd: Add a new config option to forcibly run OSD benchmark on init X-Git-Tag: v16.2.7~110^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b48d709d30d8514d9bc9242772f4b56f6bc3534e;p=ceph.git osd: Add a new config option to forcibly run OSD benchmark on init The new config option "osd_mclock_force_run_benchmark_on_init" is introduced to allow a user to force run the OSD benchmark test on every OSD boot-up even if the historical data about the OSD's iops capacity is available on the MON config store. The 'force_run_benchmark' flag is set to the value indicated by the new config option. By default this new config option is set to false. The utility of this option is to help refresh the OSD iops capacity when the underlying device's performance characteristics have changed significantly. In such cases, the OSD can be restarted with this option enabled temporarily. Once the new iops capacity is updated to the MON store, this option can be removed from the OSD's start-up config. Fixes: https://tracker.ceph.com/issues/51464 Signed-off-by: Sridhar Seshasayee (cherry picked from commit 8725a1088098aa6f389b87f8db0989693d869c1b) Conflicts: src/common/options/osd.yaml.in - Removed non-existent file: src/common/options/osd.yaml.in since the switch to yaml for config options is not available in pacific yet. - Added new config option "osd_mclock_osd_mclock_force_run_benchmark_on_init" to options.cc. --- diff --git a/src/common/options.cc b/src/common/options.cc index a53c15c12512..5eab18040e6d 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -3130,6 +3130,14 @@ std::vector