]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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>
Tue, 3 Aug 2021 05:54:36 +0000 (11:24 +0530)
commit433793a78239f0d1c38faa17f3cd22ba027dcc65
treed0ada87ab72490e9448c129c5cae8cc59fc5730f
parent12b6d42770032b6c53737368cad2f0427c56c1ed
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>
(cherry picked from commit 10f8b79ca3c04ae7612b297465582951a340aa6a)
src/osd/OSD.cc