services:
- mds
with_legacy: true
+# Max number of slow ops to track
+- name: mds_op_history_slow_op_size
+ type: uint
+ level: advanced
+ desc: maximum size for list of historical slow operations
+ default: 20
+ services:
+ - mds
+ with_legacy: true
+# Track the op if over this threshold
+- name: mds_op_history_slow_op_threshold
+ type: uint
+ level: advanced
+ desc: track the op if over this threshold
+ default: 10
+ services:
+ - mds
+ with_legacy: true
# how many seconds old makes an op complaint-worthy
- name: mds_op_complaint_time
type: float
cct->_conf->mds_op_log_threshold);
op_tracker.set_history_size_and_duration(cct->_conf->mds_op_history_size,
cct->_conf->mds_op_history_duration);
+ op_tracker.set_history_slow_op_size_and_threshold(cct->_conf->mds_op_history_slow_op_size,
+ cct->_conf->mds_op_history_slow_op_threshold);
schedule_update_timer_task();
}
if (changed.count("mds_op_history_size") || changed.count("mds_op_history_duration")) {
op_tracker.set_history_size_and_duration(conf->mds_op_history_size, conf->mds_op_history_duration);
}
+ if (changed.count("mds_op_history_slow_op_size") || changed.count("mds_op_history_slow_op_threshold")) {
+ op_tracker.set_history_slow_op_size_and_threshold(conf->mds_op_history_slow_op_size, conf->mds_op_history_slow_op_threshold);
+ }
if (changed.count("mds_enable_op_tracker")) {
op_tracker.set_tracking(conf->mds_enable_op_tracker);
}