This is an automated email from the ASF dual-hosted git repository.
namelchev pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git
The following commit(s) were added to refs/heads/master by this push:
new 5b30e065f33 IGNITE-18676 [ducktests] Add ability to control the
performance statistics collecting (#10509)
5b30e065f33 is described below
commit 5b30e065f3391de9c976d89e5fb7d916e7a3f048
Author: Sergey Korotkov <[email protected]>
AuthorDate: Thu Feb 2 17:19:54 2023 +0700
IGNITE-18676 [ducktests] Add ability to control the performance statistics
collecting (#10509)
---
.../ignitetest/services/utils/control_utility.py | 43 ++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git
a/modules/ducktests/tests/ignitetest/services/utils/control_utility.py
b/modules/ducktests/tests/ignitetest/services/utils/control_utility.py
index a20c3ea6b83..10bcdee4adc 100644
--- a/modules/ducktests/tests/ignitetest/services/utils/control_utility.py
+++ b/modules/ducktests/tests/ignitetest/services/utils/control_utility.py
@@ -220,6 +220,49 @@ class ControlUtility:
raise TimeoutError(f'Failed to wait for the snapshot operation to
complete: '
f'snapshot_name={snapshot_name} in {timeout_sec}
seconds.')
+ def start_performance_statistics(self):
+ """
+ Start performance statistics collecting in the cluster.
+ """
+ output = self.__performance_statistics_cmd("start")
+
+ assert "Started." in output
+
+ return output
+
+ def stop_performance_statistics(self):
+ """
+ Stop performance statistics collecting in the cluster.
+ """
+ output = self.__performance_statistics_cmd("stop")
+
+ assert "Stopped." in output
+
+ return output
+
+ def rotate_performance_statistics(self):
+ """
+ Rotate performance statistics collecting in the cluster.
+ """
+ output = self.__performance_statistics_cmd("rotate")
+
+ assert "Rotated." in output
+
+ return output
+
+ def is_performance_statistics_enabled(self):
+ """
+ Check status of performance statistics collecting in the cluster.
+ """
+ output = self.__performance_statistics_cmd("status")
+
+ assert "Enabled." in output or "Disabled." in output
+
+ return "Enabled." in output
+
+ def __performance_statistics_cmd(self, sub_command):
+ return self.__run(f"--performance-statistics {sub_command}")
+
@staticmethod
def __tx_command(**kwargs):
tokens = ["--tx"]