-
Notifications
You must be signed in to change notification settings - Fork 308
kubectl rabbitmq perf test improvements #921
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
Conversation
|
For me, the plugin stopped working with these changes: |
874e875 to
e61807b
Compare
Zerpet
left a comment
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.
Works for me ![]()
|
A couple questions from me: What's the expected method of sourcing prometheus metrics from perf test in this case? Previously there was a service created - do you get the same output from scraping the pods directly? Can we also hide the output from the compared with old: The perf-test command works fine, but the stream one doesn't out of the box. I've checked on different versions of RMQ - it seems the one on main doesn't hit this issue, but this branch does: using cluster-operator 1.10.0, example rmq: Otherwise works well for me, and I like the change, thanks! |
Unfortunately, creating a service would defeat the purpose of using a Job, namely, allowing the perf-test command to clean up after itself. Thankfully, it's possible to monitor the job using a podMonitor instead of a serviceMonitor, so I have updated the instructions with the relevant podMonitor. |
coro
left a comment
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.
Sorry to be a pain; the stream perf test command now works but the pushd/popd output is still shown, and the echo statements are now also shown:
$ ./bin/kubectl-rabbitmq perf-test billing --rate 100
/var/folders/gm/mgfz1ccs4t7_tbh12qfkprxm0000gp/T/tmp.lzJyhNZe ~/GolandProjects/cluster-operator
+ echo 'apiVersion: batch/v1'
+ echo 'kind: Job'
+ echo metadata:
+ echo ' name: perf-test'
+ echo ' labels:'
...
|
I've removed the output, at the cost of more technically incorrect bash. Unfortunately, it seems that due to the nature of kubectl plugins, it's not possible to hide |
Correct stream URI. Hide pushd/popd from output. Change serviceMonitor to podMonitor to allow prometheus scraping. Update tests to clean up perf-test job. Switch to bad bash to reduce output.
824ba86 to
a792589
Compare
Summary Of Changes
Deploys perf-test and stream-perf-test as Kubernetes Jobs, rather than running pods directly.
Additional Context
This is designed to make clean-up easier.