ceph bench module hotfixes after client run
Related-PROD: PROD-37028
Change-Id: Ie281746adfedc8706c26d3a27347679d070c45bb
diff --git a/cfg_checker/modules/ceph/bench.py b/cfg_checker/modules/ceph/bench.py
index 95e39bf..f5af704 100644
--- a/cfg_checker/modules/ceph/bench.py
+++ b/cfg_checker/modules/ceph/bench.py
@@ -212,7 +212,8 @@
logger_cli.info("-> Done creating agents")
# TODO: Update after implementing pooled task sending
- self.scheduled_delay = self.agent_count * 10
+ # idea is to have time to schedule task to each agent every 5 sec max
+ self.scheduled_delay = self.agent_count * 5
logger_cli.info(
"-> Schedule delay set to {} sec".format(self.scheduled_delay)
)
@@ -400,7 +401,7 @@
_fcnt = len(finished)
_tcnt = len(_sts)
if _fcnt < _tcnt:
- tw.cl_inline(" {}/{}".format(_fcnt, _tcnt))
+ tw.cl_inline("; {}/{}".format(_fcnt, _tcnt))
else:
tw.cl_flush(newline=True)
logger_cli.info("-> All agents finished run")
@@ -739,13 +740,22 @@
_j = _d["jobs"][0]
_r_bw += _j["read"]["bw_bytes"]
_r_avglat += [_j["read"]["lat_ns"]["mean"]]
- _r_95clat += [_j["read"]["clat_ns"]["percentile"]["95.000000"]]
_r_iops += _j["read"]["iops"]
_w_bw += _j["write"]["bw_bytes"]
_w_avglat += [_j["write"]["lat_ns"]["mean"]]
- _w_95clat += \
- [_j["write"]["clat_ns"]["percentile"]["95.000000"]]
_w_iops += _j["write"]["iops"]
+ # check for percentiles
+ if "percentile" in _j["read"]["clat_ns"]:
+ _r_95clat += \
+ [_j["read"]["clat_ns"]["percentile"]["95.000000"]]
+ else:
+ _r_95clat += []
+ if "percentile" in _j["write"]["clat_ns"]:
+ _w_95clat += \
+ [_j["write"]["clat_ns"]["percentile"]["95.000000"]]
+ else:
+ _w_95clat += []
+
# Save storage class name
if "storage_class" not in _totals:
_totals["storage_class"] = \