Last active
March 8, 2024 09:55
-
-
Save Zerpet/1a106575fe63a4917f2706c592302b72 to your computer and use it in GitHub Desktop.
RabbitMQ Perf Test deployment in Kubernetes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: perf-test-deployment | |
labels: | |
app: perf-test | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: perf-test | |
template: | |
metadata: | |
labels: | |
app: perf-test | |
spec: | |
containers: | |
- name: perf-test | |
image: pivotalrabbitmq/perf-test:latest | |
command: ["sleep", "10000"] |
@Zerpet Thanks for sharing. In addition. the uri format could be: "amqp://[username]:[password]@[rabbitmq-cluster-service-name]:5672",
Ex: amqp://guest:guest@rabbitmq:5672
.
The other simpler way is:
# kubectl run perf-test --image=pivotalrabbitmq/perf-test -- --uri <...> <more-options>
The idea of this snippet and the command in my comment is to get a shell session, and try different combinations of Perf-Test arguments interactively.
Yes, your idea has already helped me. Just share something not found in official documentations :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Useful to deploy the Perf Test image in a Pod controlled by a Deployment and run perf test manually. Use this command to get a Bash session into the Pod:
Then run Perf Test from the command line using: