]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds/MDSRank: Add set_history_slow_op_size_and_threshold for op_tracker
authoryite.gu <yitegu0@gmail.com>
Thu, 15 Jun 2023 11:41:53 +0000 (19:41 +0800)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Tue, 28 Nov 2023 12:26:21 +0000 (19:26 +0700)
commit390d734473d05ece2f747ea74a24da91d543cf66
treef39f7d48f747247862c9fe6f63619e33a44a511e
parenta021e73ae82911eef94527f99e0e637244d8dbf2
mds/MDSRank: Add set_history_slow_op_size_and_threshold for op_tracker

void OpHistory::_insert_delayed(const utime_t& now, TrackedOpRef op)
{
...
  double opduration = op->get_duration();
...
  if (opduration >= history_slow_op_threshold.load()) {
    slow_op.insert(make_pair(op->get_initiated(), op));
    logger->inc(l_trackedop_slow_op_count);
  }
...
}
mds op_tracker have no set slow op threshold, and history_slow_op_threshold default
value is 0, cause to mds have slow op alway.

Fixes: https://tracker.ceph.com/issues/61749
Signed-off-by: Yite Gu <yitegu0@gmail.com>
(cherry picked from commit 9b88a4759b1559c16f9874e9a9493573ec799be8)
src/common/options/mds.yaml.in
src/mds/MDSRank.cc