]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds/MDSRank: Add set_history_slow_op_size_and_threshold for op_tracker 52081/head
authoryite.gu <yitegu0@gmail.com>
Thu, 15 Jun 2023 11:41:53 +0000 (19:41 +0800)
committeryite.gu <yitegu0@gmail.com>
Tue, 20 Jun 2023 13:09:50 +0000 (21:09 +0800)
commit9b88a4759b1559c16f9874e9a9493573ec799be8
tree50e79b86acc13b3a3fb74d2cedf6902271e0b317
parent3fbfd18fe96adfc57eedb9601cb9dd05013d0d81
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>
src/common/options/mds.yaml.in
src/mds/MDSRank.cc