How do you set up celery (and rabbit) so that they can communicate over an EC2 instance?
Rabbit is running on the instance, on user rabbitmq. I need to send messages to the instance from other computers off the instance, in this case I’m testing with computer.
I’ve configured celery to work on my computer with a local installation of rabbit.
Furthermore, I’ve followed these settings to generate the incantation:
http://docs.celeryq.org/en/latest/configuration.html#broker-settings
This is a redhat instance.
The issue here was that rabbit was not accepting messages on the EC2 instance.
To find out if this your error, view the logs after you start / restart rabbit at rabbit@rabbit.log (located at /var/log/rabbbitmq), and you should see an error something like:
To correct this, you need to change the value in /etc/rabbitmq/rabbitmq.config to:
Note that the period is important at the end.
The actual value of mem_relative you will need to adjust based on your needs and how much memory you actually have.