From 5a36f2c78090144079ce9a3f26280ebf69eb5729 Mon Sep 17 00:00:00 2001 From: Maciej Wyrzuc Date: Thu, 7 Dec 2023 11:21:22 +0000 Subject: [PATCH] Add an option to inject additional measurements to load config --- clusterloader2/testing/load/config.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/clusterloader2/testing/load/config.yaml b/clusterloader2/testing/load/config.yaml index 2a747ba8ca..a39f836db2 100644 --- a/clusterloader2/testing/load/config.yaml +++ b/clusterloader2/testing/load/config.yaml @@ -77,6 +77,8 @@ {{$latencyPodImage := DefaultParam .CL2_LATENCY_POD_IMAGE "registry.k8s.io/pause:3.9"}} {{$defaultQps := DefaultParam .CL2_DEFAULT_QPS (IfThenElse (le .Nodes 500) 10 100)}} +{{$ADDITIONAL_MEASUREMENT_MODULES := DefaultParam .CL2_ADDITIONAL_MEASURMENT_MODULES nil}} + name: load namespace: number: {{AddInt $namespaces $schedulerThroughputNamespaces}} @@ -120,6 +122,15 @@ steps: params: action: start +{{if $ADDITIONAL_MEASUREMENT_MODULES}} +{{range $ADDITIONAL_MEASUREMENT_MODULES}} +- module: + path: {{.}} + params: + action: start +{{end}} +{{end}} + {{if $ENABLE_NETWORK_POLICY_ENFORCEMENT_LATENCY_TEST}} - module: path: modules/network-policy/net-policy-enforcement-latency.yaml @@ -394,6 +405,15 @@ steps: params: action: gather +{{if $ADDITIONAL_MEASUREMENT_MODULES}} +{{range $ADDITIONAL_MEASUREMENT_MODULES}} +- module: + path: {{.}} + params: + action: gather +{{end}} +{{end}} + {{if $ENABLE_NETWORK_POLICY_ENFORCEMENT_LATENCY_TEST}} - module: path: modules/network-policy/net-policy-enforcement-latency.yaml