From 5b4507181c98373b4de6968955c674c8ae32a996 Mon Sep 17 00:00:00 2001 From: Guna K Kambalimath Date: Fri, 4 Jul 2025 11:54:21 +0530 Subject: [PATCH 1/4] Support for pod, CR resource type for benchmark Listing --- clusterloader2/testing/list/config.yaml | 39 +++++++++++++++++++++++-- clusterloader2/testing/list/pod.yaml | 14 +++++++++ 2 files changed, 50 insertions(+), 3 deletions(-) create mode 100644 clusterloader2/testing/list/pod.yaml diff --git a/clusterloader2/testing/list/config.yaml b/clusterloader2/testing/list/config.yaml index 7fcd7a5d4d..8e6a47cb90 100644 --- a/clusterloader2/testing/list/config.yaml +++ b/clusterloader2/testing/list/config.yaml @@ -2,6 +2,8 @@ {{$configMapBytes := DefaultParam .CL2_LIST_CONFIG_MAP_BYTES 100000}} {{$configMapNumber := DefaultParam .CL2_LIST_CONFIG_MAP_NUMBER 10000}} {{$configMapGroup := DefaultParam .CL2_LIST_CONFIG_MAP_GROUP "list-configmap"}} +{($podsNumber := DefaultParam .CL2_LIST_PODS_NUMBER 100000)} +{{$podGroup := DefaultParam .CL2_LIST_POD_GROUP "list-pods"}} {{$listReplicas := DefaultParam .CL2_LIST_BENCHMARK_PODS 1}} {{$contentType := DefaultParam .CL2_LIST_BENCHMARK_CONTENT_TYPE "json"}} @@ -64,17 +66,17 @@ steps: uri: /api/v1/configmaps?resourceVersion=0 namespaced: false contentType: {{$contentType}} -- module: +- module: &startMeasurements path: /modules/measurements.yaml params: action: start - name: Wait 5 minutes - measurements: + measurements: &waitMeasurements - Identifier: Wait Method: Sleep Params: duration: 5m -- module: +- module: &gatherMeasurements path: /modules/measurements.yaml params: action: gather @@ -83,3 +85,34 @@ steps: params: namePrefix: "list-configmaps-" replicas: 0 + +- name: Create pods + phases: + - namespaceRange: + min: 1 + max: 1 + tuningSet: Sequence + replicasPerNamespace: {{$podsNumber}} + objectBundle: + - basename: {{$podGroup}} + objectTemplatePath: pod.yaml + templateFillMap: + group: {{$podGroup}} + +- module: + path: modules/list-benchmark.yaml + params: + namePrefix: "list-pods-" + replicas: {{$listReplicas}} + uri: /api/v1/pods?resourceVersion=0 + namespaced: false + contentType: {{$contentType}} +- module: *startMeasurements +- name: Wait 5 minutes + measurements: *waitMeasurements +- module: *gatherMeasurements +- module: + path: modules/list-benchmark.yaml + params: + namePrefix: "list-pods-" + replicas: 0 diff --git a/clusterloader2/testing/list/pod.yaml b/clusterloader2/testing/list/pod.yaml new file mode 100644 index 0000000000..6961fd93d6 --- /dev/null +++ b/clusterloader2/testing/list/pod.yaml @@ -0,0 +1,14 @@ +{{$group := DefaultParam .group .Name}} + +apiVersion: v1 +kind: Pod +metadata: + name: {{.Name}} + labels: + app: {{$group}} +spec: + containers: + - name: nginx-container + image: nginx + ports: + - containerPort: 80 \ No newline at end of file From 0397ffe7bc3bc544b0ec2f7da384452efc5c7b05 Mon Sep 17 00:00:00 2001 From: GunaKKIBM <92353386+GunaKKIBM@users.noreply.github.com> Date: Wed, 9 Jul 2025 10:52:53 +0530 Subject: [PATCH 2/4] Update clusterloader2/testing/list/pod.yaml Co-authored-by: Kishen Viswanathan --- clusterloader2/testing/list/pod.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clusterloader2/testing/list/pod.yaml b/clusterloader2/testing/list/pod.yaml index 6961fd93d6..b30c49540c 100644 --- a/clusterloader2/testing/list/pod.yaml +++ b/clusterloader2/testing/list/pod.yaml @@ -11,4 +11,4 @@ spec: - name: nginx-container image: nginx ports: - - containerPort: 80 \ No newline at end of file + - containerPort: 80 From 638681bacb86ec2de45b2682194b2e9eb322cc0c Mon Sep 17 00:00:00 2001 From: Guna K Kambalimath Date: Tue, 19 Aug 2025 21:28:11 +0530 Subject: [PATCH 3/4] Adding scheduler and controlling pod data --- clusterloader2/testing/list/config.yaml | 2 ++ clusterloader2/testing/list/pod.yaml | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/clusterloader2/testing/list/config.yaml b/clusterloader2/testing/list/config.yaml index 8e6a47cb90..cf54cf2948 100644 --- a/clusterloader2/testing/list/config.yaml +++ b/clusterloader2/testing/list/config.yaml @@ -4,6 +4,7 @@ {{$configMapGroup := DefaultParam .CL2_LIST_CONFIG_MAP_GROUP "list-configmap"}} {($podsNumber := DefaultParam .CL2_LIST_PODS_NUMBER 100000)} {{$podGroup := DefaultParam .CL2_LIST_POD_GROUP "list-pods"}} +{{$podBytes := DefaultParam .CL2_LIST_POD_BYTES 10000}} {{$listReplicas := DefaultParam .CL2_LIST_BENCHMARK_PODS 1}} {{$contentType := DefaultParam .CL2_LIST_BENCHMARK_CONTENT_TYPE "json"}} @@ -97,6 +98,7 @@ steps: - basename: {{$podGroup}} objectTemplatePath: pod.yaml templateFillMap: + bytes: {{$podBytes}} group: {{$podGroup}} - module: diff --git a/clusterloader2/testing/list/pod.yaml b/clusterloader2/testing/list/pod.yaml index b30c49540c..72c42c086d 100644 --- a/clusterloader2/testing/list/pod.yaml +++ b/clusterloader2/testing/list/pod.yaml @@ -1,4 +1,5 @@ {{$group := DefaultParam .group .Name}} +{{$bytes := .bytes}} apiVersion: v1 kind: Pod @@ -7,8 +8,12 @@ metadata: labels: app: {{$group}} spec: + schedulerName: non-existing-scheduler containers: - name: nginx-container image: nginx + env: + - name: RANDOM_PAYLOAD + value: "{{RandData $bytes}}" ports: - containerPort: 80 From 86c5acf61f3a6c4bfea54202b33ad75e4a751385 Mon Sep 17 00:00:00 2001 From: Guna K Kambalimath Date: Thu, 21 Aug 2025 15:13:57 +0530 Subject: [PATCH 4/4] podsNumber definition update --- clusterloader2/testing/list/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clusterloader2/testing/list/config.yaml b/clusterloader2/testing/list/config.yaml index cf54cf2948..b1c89ac564 100644 --- a/clusterloader2/testing/list/config.yaml +++ b/clusterloader2/testing/list/config.yaml @@ -2,7 +2,7 @@ {{$configMapBytes := DefaultParam .CL2_LIST_CONFIG_MAP_BYTES 100000}} {{$configMapNumber := DefaultParam .CL2_LIST_CONFIG_MAP_NUMBER 10000}} {{$configMapGroup := DefaultParam .CL2_LIST_CONFIG_MAP_GROUP "list-configmap"}} -{($podsNumber := DefaultParam .CL2_LIST_PODS_NUMBER 100000)} +{{$podsNumber := DefaultParam .CL2_LIST_PODS_NUMBER 100000}} {{$podGroup := DefaultParam .CL2_LIST_POD_GROUP "list-pods"}} {{$podBytes := DefaultParam .CL2_LIST_POD_BYTES 10000}}