From 9feb8135e381b601fa9fca2104ddd09dad1daa0f Mon Sep 17 00:00:00 2001 From: "m.malygina" Date: Wed, 27 Sep 2023 16:32:29 +0300 Subject: [PATCH] local scenario Signed-off-by: m.malygina --- src/frostfs_testlib/load/load_metrics.py | 1 + src/frostfs_testlib/storage/constants.py | 1 + src/frostfs_testlib/storage/dataclasses/frostfs_services.py | 3 +++ 3 files changed, 5 insertions(+) diff --git a/src/frostfs_testlib/load/load_metrics.py b/src/frostfs_testlib/load/load_metrics.py index 6b44de0..5cec8ea 100644 --- a/src/frostfs_testlib/load/load_metrics.py +++ b/src/frostfs_testlib/load/load_metrics.py @@ -165,6 +165,7 @@ class S3Metrics(MetricsBase): class LocalMetrics(MetricsBase): _WRITE_SUCCESS = "local_obj_put_total" _WRITE_ERRORS = "local_obj_put_fails" + _WRITE_LATENCY = "local_obj_put_duration" _READ_SUCCESS = "local_obj_get_total" _READ_ERRORS = "local_obj_get_fails" diff --git a/src/frostfs_testlib/storage/constants.py b/src/frostfs_testlib/storage/constants.py index 6deedfb..dbaac5a 100644 --- a/src/frostfs_testlib/storage/constants.py +++ b/src/frostfs_testlib/storage/constants.py @@ -4,6 +4,7 @@ class ConfigAttributes: WALLET_PATH = "wallet_path" WALLET_CONFIG = "wallet_config" CONFIG_PATH = "config_path" + SHARD_CONFIG_PATH = "shard_config_path" LOCAL_WALLET_PATH = "local_wallet_path" LOCAL_WALLET_CONFIG = "local_config_path" ENDPOINT_DATA_0 = "endpoint_data0" diff --git a/src/frostfs_testlib/storage/dataclasses/frostfs_services.py b/src/frostfs_testlib/storage/dataclasses/frostfs_services.py index ccb30d5..ac2885b 100644 --- a/src/frostfs_testlib/storage/dataclasses/frostfs_services.py +++ b/src/frostfs_testlib/storage/dataclasses/frostfs_services.py @@ -138,6 +138,9 @@ class StorageNode(NodeBase): ) return health_metric in output + def get_shard_config_path(self) -> str: + return self._get_attribute(ConfigAttributes.SHARD_CONFIG_PATH) + def get_control_endpoint(self) -> str: return self._get_attribute(ConfigAttributes.CONTROL_ENDPOINT)