From 73c362c307bc4eda76acbd4dcdaf2b37112c4592 Mon Sep 17 00:00:00 2001 From: Andrey Berezin Date: Fri, 22 Dec 2023 11:33:41 +0300 Subject: [PATCH] [#153] Fix stat calculation and add error threshold Signed-off-by: Andrey Berezin --- src/frostfs_testlib/load/interfaces/summarized.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frostfs_testlib/load/interfaces/summarized.py b/src/frostfs_testlib/load/interfaces/summarized.py index bca9822d..a0059636 100644 --- a/src/frostfs_testlib/load/interfaces/summarized.py +++ b/src/frostfs_testlib/load/interfaces/summarized.py @@ -84,7 +84,8 @@ class SummarizedStats: target.rate += operation.rate target.latencies.by_node[node_key] = operation.latency target.throughput += operation.throughput - if metrics.write.failed_iterations: + target.errors.threshold = load_params.error_threshold + if operation.failed_iterations: target.errors.by_node[node_key] = operation.failed_iterations for operation in summarized.values():