]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: Add mechanism to avoid running OSD benchmark on every OSD boot-up
authorSridhar Seshasayee <sseshasa@redhat.com>
Thu, 24 Jun 2021 07:53:23 +0000 (13:23 +0530)
committerSridhar Seshasayee <sseshasa@redhat.com>
Fri, 30 Jul 2021 12:46:00 +0000 (18:16 +0530)
commit10f8b79ca3c04ae7612b297465582951a340aa6a
tree2e70078d6bb6287d82ad14c78e7729a8472280dc
parent9438e5a4b6b16e7ca3276c94c05ec73541690c10
osd: Add mechanism to avoid running OSD benchmark on every OSD boot-up

Use "mon_cmd_set_config()" to store the OSD's max iops capacity to
the MON store during the first bring-up. Don't run the OSD benchmark
test on subsequent boot-ups if a previously persisted iops capacity is
available on the MON store and is different from the default iops
capacity.

Add the 'force_run_benchmark' flag to force a run of the benchmark
in case the default iops capacity cannot be determined.

Fixes: https://tracker.ceph.com/issues/51464
Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
src/osd/OSD.cc