a proof of concept application that shows how one can autoscale rabbitmq consumers on kubernetes
scales the number of consumers available based on the queue length.
produces 50 strings of random length strings filled with periods and submits them to a rabbitmq queue ie:
........ ............. ......... ......
consumes the string sin the queue, timing out for one second for every '.' in the string
kubeconfig
file to the application directory ie cp $KUBECONFIG .
helm install stable/rabbitmq
, follow the instructions to reveal the user and passwordrabbit-secret.yaml
docker build . -t consumermq-k8s -f consumer/Dockerfile
docker build . -t scalermq-k8s -f scaler/Dockerfile
docker tag consumermq-k8s my-private-registry.azurecr.io/consumermq-k8s
docker tag scalermq-k8s my-private-registry/azurecr.io/scalermq-k8s
docker push my-private-registry.azurecr.io/consumermq-k8s
docker push my-private-registry/azurecr.io/scalermq-k8s