Files
SpecterOps-Nemesis/docs/rabbitmq.md
T
Lee Christensen fe4e0d70a4 commited for life
2023-08-09 13:14:44 -07:00

1.1 KiB

Design decisions

  • Didn't go with the RabbitMQ operator because it doesn't play nicely with skaffold and is a fairly simple wrapper for the statefulset
    • Doesn't delete pods/statefulsets during shutdown
  • Didn't go with just the docker container because to scale up you need to deploy them one at a time (so used a statefulset).

Data persistence

Uncomment the PeristentVolume and PersistentVolumeClaim at the end of ./kubernetes/rabbitmq/statefulset.yaml.

Scaling

Rabbitmq scales vertifcally better (so give it more CPU + RAM) Add more replicas by editing ./kubernetes/rabbitmq/statefulset.yaml.

Performance testing

kubectl run perf-test -it --rm  --image=pivotalrabbitmq/perf-test -- --uri amqp://rabbit:Qwerty12345@nemesis-rabbitmq-svc

Plumber example usage:

plumber read rabbit --address="amqp://nemesis:Qwerty12345@192.168.230.42:5672" --queue-name="file_data" --exchange-name="nemesis" --binding-key=" " --queue-durable -f

References