Commit 9b88a47
committed
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 <[email protected]>1 parent 3fbfd18 commit 9b88a47
2 files changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1166 | 1166 | | |
1167 | 1167 | | |
1168 | 1168 | | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
1169 | 1187 | | |
1170 | 1188 | | |
1171 | 1189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
550 | 550 | | |
551 | 551 | | |
552 | 552 | | |
| 553 | + | |
| 554 | + | |
553 | 555 | | |
554 | 556 | | |
555 | 557 | | |
| |||
3849 | 3851 | | |
3850 | 3852 | | |
3851 | 3853 | | |
| 3854 | + | |
| 3855 | + | |
| 3856 | + | |
3852 | 3857 | | |
3853 | 3858 | | |
3854 | 3859 | | |
| |||
0 commit comments