-
Notifications
You must be signed in to change notification settings - Fork 607
Implement sending mixed traffic (json,proto) #3478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: arshadd-b The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Welcome @arshadd-b! |
Hi @arshadd-b. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
3465492
to
b0a394d
Compare
bytes: {{$configMapBytes}} | ||
group: {{$configMapGroup}} | ||
|
||
{{- range $i, $ct := $contentTypes }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you tested if this for loop works?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, have tested it, I passed the env variable export CL2_LIST_BENCHMARK_CONTENT_TYPE=json,proto
and it was working fine. I have highlighted json and proto log.
`I0904 12:17:41.288482 96635 exec_service.go:122] Exec service: service set up successfully!
W0904 12:17:41.288517 96635 imagepreload.go:92] No images specified. Skipping image preloading
I0904 12:17:41.291307 96635 clusterloader.go:454] Test config successfully dumped to: generatedConfig_list-benchmark.yaml
I0904 12:17:41.291315 96635 clusterloader.go:243] --------------------------------------------------------------------------------
I0904 12:17:41.291317 96635 clusterloader.go:244] Running ../testing/list/config.yaml
I0904 12:17:41.291319 96635 clusterloader.go:245] --------------------------------------------------------------------------------
I0904 12:17:41.291355 96635 simple_test_executor.go:58] AutomanagedNamespacePrefix: test-2guakh
I0904 12:17:41.324983 96635 simple_test_executor.go:162] Step "[step: 01] Setup namespace for list benchmark pods" started
I0904 12:17:41.440693 96635 simple_test_executor.go:183] Step "[step: 01] Setup namespace for list benchmark pods" ended
I0904 12:17:41.440713 96635 simple_test_executor.go:162] Step "[step: 02] Setup permissions" started
I0904 12:17:41.449398 96635 simple_test_executor.go:183] Step "[step: 02] Setup permissions" ended
I0904 12:17:41.449415 96635 simple_test_executor.go:162] Step "[step: 03] starting measurements" started
I0904 12:17:41.460559 96635 container_memory_usage.go:129] ContainerMemoryUsage: measurement already running
I0904 12:17:41.460576 96635 simple_test_executor.go:183] Step "[step: 03] starting measurements" ended
I0904 12:17:41.460583 96635 simple_test_executor.go:162] Step "[step: 04] Wait 5 minutes for json" started
[{kube-apiserver map[cpu:{{891606624 -9} {} 891606624n DecimalSI} memory:{{228081664 0} {} BinarySI}]}]
names kube-apiserver
I0904 12:18:11.461067 96635 simple_test_executor.go:183] Step "[step: 04] Wait 5 minutes for json" ended
I0904 12:18:11.461088 96635 simple_test_executor.go:162] Step "[step: 05] gathering measurements" started
I0904 12:18:11.464702 96635 container_memory_usage.go:166] ContainerMemoryUsage: measurement already running
I0904 12:18:11.464713 96635 container_memory_usage.go:177] ContainerMemoryUsage: gathering summaries
I0904 12:18:11.464719 96635 container_memory_usage.go:184] %!d(float64=0.2124176025390625): peak
I0904 12:18:11.464721 96635 container_memory_usage.go:185] %!d(float64=1): threshold
I0904 12:18:11.464727 96635 simple_test_executor.go:183] Step "[step: 05] gathering measurements" ended
I0904 12:18:11.464734 96635 simple_test_executor.go:162] Step "[step: 06] starting measurements" started
I0904 12:18:11.465408 96635 container_memory_usage.go:129] ContainerMemoryUsage: measurement already running
I0904 12:18:11.465415 96635 simple_test_executor.go:183] Step "[step: 06] starting measurements" ended
I0904 12:18:11.465419 96635 simple_test_executor.go:162] Step "[step: 07] Wait 5 minutes for proto" started
[{kube-apiserver map[cpu:{{899564744 -9} {} 899564744n DecimalSI} memory:{{226471936 0} {} 221164Ki BinarySI}]}]
names kube-apiserver
I0904 12:18:41.465856 96635 simple_test_executor.go:183] Step "[step: 07] Wait 5 minutes for proto" ended
I0904 12:18:41.465879 96635 simple_test_executor.go:162] Step "[step: 08] gathering measurements" started
I0904 12:18:41.468584 96635 container_memory_usage.go:166] ContainerMemoryUsage: measurement already running
I0904 12:18:41.468592 96635 container_memory_usage.go:177] ContainerMemoryUsage: gathering summaries
I0904 12:18:41.468600 96635 container_memory_usage.go:184] %!d(float64=0.2124176025390625): peak
I0904 12:18:41.468602 96635 container_memory_usage.go:185] %!d(float64=1): threshold
I0904 12:18:41.468606 96635 simple_test_executor.go:183] Step "[step: 08] gathering measurements" ended
I0904 12:18:41.468613 96635 simple_test_executor.go:97] ContainerMemoryUsage: {"peakMemory": %!d(float64=0.2124176025390625), "threshold": %!d(float64=1)}
I0904 12:18:41.468615 96635 simple_test_executor.go:97] ContainerMemoryUsage: {"peakMemory": %!d(float64=0.2124176025390625), "threshold": %!d(float64=1)}
I0904 12:18:51.501218 96635 simple_test_executor.go:411] Resources cleanup time: 10.032641458s
I0904 12:18:51.501232 96635 simple_test_executor.go:414] Tearing down dependencies
I0904 12:18:51.501236 96635 simple_test_executor.go:418] All dependencies torn down successfully, cleanup time: 3.667µs`
/ok-to-test |
Looking at the metric report generated by Do we know if the metrics are properly aggregated from two gather commands? Maybe the result is just overridden by second run. Could you maybe look if we could generate separate files for content types? |
sure will check this and try to add |
Hi @serathius
Please let me know if I have missed something |
What type of PR is this?
What this PR does / why we need it:
Implements sending mixed traffic by modifying contentType to accept both json and proto.
Which issue(s) this PR fixes:
Fixes # kubernetes/kubernetes#131885
Special notes for your reviewer: