Add copyright info to all python files and bump version
Related-PROD: PROD-36846
Change-Id: I47c25d81d4173286e1729cef7a1cc321a495316f
diff --git a/cfg_checker/modules/ceph/bench.py b/cfg_checker/modules/ceph/bench.py
index c0877db..fbb0a13 100644
--- a/cfg_checker/modules/ceph/bench.py
+++ b/cfg_checker/modules/ceph/bench.py
@@ -1,3 +1,5 @@
+# Author: Alex Savatieiev (osavatieiev@mirantis.com; a.savex@gmail.com)
+# Copyright 2019-2022 Mirantis, Inc.
import csv
import os
import json
@@ -697,18 +699,23 @@
_totals = data["totals"]
_r_bw = 0
_r_avglat = []
+ _r_95clat = []
_r_iops = 0
_w_bw = 0
_w_avglat = []
+ _w_95clat = []
_w_iops = 0
for _a, _d in data["agents"].items():
# Hardcoded number of jobs param :(
_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"]
# Save storage class name
if "storage_class" not in _totals:
@@ -726,10 +733,14 @@
_totals["read_bw_bytes"] = _r_bw
_totals["read_avg_lat_us"] = \
(sum(_r_avglat) / len(_r_avglat)) / 1000
+ _totals["read_95p_clat_us"] = \
+ (sum(_r_95clat) / len(_r_95clat)) / 1000
_totals["read_iops"] = _r_iops
_totals["write_bw_bytes"] = _w_bw
_totals["write_avg_lat_us"] = \
(sum(_w_avglat) / len(_w_avglat)) / 1000
+ _totals["write_95p_clat_us"] = \
+ (sum(_w_95clat) / len(_w_95clat)) / 1000
_totals["write_iops"] = _w_iops
def calculate_ceph_stats(self):