2

I have a worker that uses RabbitMq as the message queue

I want to configure the worker to scale depending on the number of messages in the queue

Am using cloudamqp how do I add a custom scaling trigger in elastic beanstalk

user2388404
  • 121
  • 1
  • 12

1 Answers1

0

You can poll the RabbitMQ HTTP API: https://raw.githack.com/rabbitmq/rabbitmq-management/rabbitmq_v3_5_6/priv/www/api/index.html

eg. curl https://user:pass@srv1.rmq.cloudamqp.com/api/queues/myvhost?columns=name,messages

Carl Hörberg
  • 5,973
  • 5
  • 41
  • 47