fix(core): Telemetry oload 94/37794/1
authorpmikus <peter.mikus@protonmail.ch>
Mon, 12 Dec 2022 11:26:27 +0000 (11:26 +0000)
committerpmikus <peter.mikus@protonmail.ch>
Mon, 12 Dec 2022 11:26:27 +0000 (11:26 +0000)
Signed-off-by: pmikus <peter.mikus@protonmail.ch>
Change-Id: I1c13afd8cb377c76d65f7099b9652b96613ad087

resources/libraries/python/TelemetryUtil.py
resources/libraries/robot/performance/performance_actions.robot
resources/libraries/robot/performance/performance_utils.robot

index 70efa13..63d0bf6 100644 (file)
@@ -26,20 +26,20 @@ class TelemetryUtil:
 
     @staticmethod
     def _run_telemetry(
-            node, profile, sid=None, spath=None, oload="", export=False):
+            node, profile, sid=None, spath=None, rate="", export=False):
         """Get telemetry read on node.
 
         :param node: Node in the topology.
         :param profile: Telemetry configuration profile.
         :param sid: Socket ID used to describe recipient side of socket.
         :param spath: Socket path.
-        :param oload: Telemetry offered load, unique within the test (optional).
+        :param rate: Telemetry load, unique within the test (optional).
         :param export: If false, do not attempt JSON export (default false).
         :type node: dict
         :type profile: str
         :type sid: str
         :type spath: str
-        :type oload: str
+        :type rate: str
         :type export: bool
         """
         config = ""
@@ -68,23 +68,23 @@ class TelemetryUtil:
         prefix += f"hostname=\"{hostname}\","
         if sid:
             prefix += f"hook=\"{sid}\","
-        prefix += f"oload=\"{oload}\","
+        prefix += f"rate=\"{rate}\","
         for line in stdout.splitlines():
             if line and not line.startswith("#"):
                 append_telemetry(
                     prefix.join(line.rsplit("{", 1)).replace("\"", "'")
                 )
 
-    def run_telemetry_on_all_duts(self, nodes, profile, oload="", export=False):
+    def run_telemetry_on_all_duts(self, nodes, profile, rate="", export=False):
         """Get telemetry read on all DUTs.
 
         :param nodes: Nodes in the topology.
         :param profile: Telemetry configuration profile.
-        :param oload: Telemetry offered load, unique within the test (optional).
+        :param rate: Telemetry load, unique within the test (optional).
         :param export: If false, do not attempt JSON export (default false).
         :type nodes: dict
         :type profile: str
-        :type oload: str
+        :type rate: str
         :type export: bool
         """
         for node in nodes.values():
@@ -93,7 +93,7 @@ class TelemetryUtil:
                     for sid, spath in node["sockets"]["CLI"].items():
                         self._run_telemetry(
                             node, profile=profile, sid=sid, spath=spath,
-                            oload=oload, export=export
+                            rate=rate, export=export
                         )
                 except IndexError:
                     pass
index 0404ce2..96d46c5 100644 (file)
@@ -95,7 +95,7 @@
 | | ... | ramp_up_rate=${ramp_up_rate}
 | | Run Telemetry On All DUTs
 | | ... | ${nodes} | profile=vppctl_runtime.yaml
-| | ... | oload=${telemetry_oload} | export=${True}
+| | ... | rate=${telemetry_rate} | export=${True}
 | | Stop traffic on tg
 
 | Additional Statistics Action For bpf-runtime
 | | ... | ramp_up_rate=${ramp_up_rate}
 | | Run Telemetry On All DUTs
 | | ... | ${nodes} | profile=bpf_runtime.yaml
-| | ... | oload=${telemetry_oload} | export=${False}
+| | ... | rate=${telemetry_rate} | export=${False}
 | | Stop traffic on tg
 
 | Additional Statistics Action For perf-stat-runtime
 | | ... | ramp_up_rate=${ramp_up_rate}
 | | Run Telemetry On All DUTs
 | | ... | ${nodes} | profile=perf_stat_runtime.yaml
-| | ... | oload=${telemetry_oload} | export=${False}
+| | ... | rate=${telemetry_rate} | export=${False}
 | | Stop traffic on tg
 
 | Additional Statistics Action For vpp-runtime-iperf3
 | | | ... | affinity=${iperf_client_affinity}
 | | Run Telemetry On All DUTs
 | | ... | ${nodes} | profile=vppctl_runtime.yaml
-| | ... | oload=${telemetry_oload} | export=${True}
+| | ... | rate=${telemetry_rate} | export=${True}
 | | iPerf Client Stop Remote Exec | ${nodes['${iperf_client_node}']} | ${pids}
 
 | Additional Statistics Action For noop
index 1eb6710..ddd8133 100644 (file)
 | | ... | ${average} | ${stdev}
 | | Set Test Variable | \${rate for teardown} | ${lower}
 | | # Stats at the discovered critical rate.
-| | Set Test Variable | ${telemetry_oload} | plr
+| | Set Test Variable | ${telemetry_rate} | plr
 | | Send traffic at specified rate
 | | ... | rate=${lower}
 | | ... | trial_duration=${1.0}
 | | ${pdr} = | Set Variable | ${result[1].measured_low.target_tr}
 | | ${ndr} = | Set Variable | ${result[0].measured_low.target_tr}
 | | # We expect NDR and PDR to have different-looking stats.
-| | Set Test Variable | ${telemetry_oload} | pdr
+| | Set Test Variable | ${telemetry_rate} | pdr
 | | Send traffic at specified rate
 | | ... | rate=${pdr}
 | | ... | trial_duration=${1.0}
 | | ... | trial_multiplicity=${1}
 | | ... | use_latency=${use_latency}
 | | ... | duration_limit=${1.0}
-| | Set Test Variable | ${telemetry_oload} | ndr
+| | Set Test Variable | ${telemetry_rate} | ndr
 | | Run Keyword If | ${ndr} != ${pdr}
 | | ... | Send traffic at specified rate
 | | ... | rate=${ndr}
 | | ${unit} = | Set Variable If | """_cps""" in """${transaction_type}"""
 | | ... | cps | pps
 | | # The following also sets \${rate_for_teardown}
-| | Set Test Variable | ${telemetry_oload} | mrr
+| | Set Test Variable | ${telemetry_rate} | mrr
 | | ${results} = | Send traffic at specified rate
 | | ... | rate=${max_rate}
 | | ... | trial_duration=${trial_duration}