esdc rabbitmq

Richard Kellner edited this page May 9, 2017 · 4 revisions

RabbitMQ

RabbitMQ is open source message broker software that implements the Advanced Message Queuing Protocol (AMQP) standard. It is used by Celery as a message broker.
http://www.rabbitmq.com/

Note: This guide is made for a development environment based on CentOS 7.

Install

We will use the epel repository and install the newest version (3.3):

yum install epel-release

yum install rabbitmq-server

Configure

Start rabbitmq, create a rabbitmq user with custom password, create a rabbitmq vhost and set permissions. Adjust the firewall.

RABBITMQPASS="S3cr3tP4ssw0rd"

rabbitmqctl add_user esdc ${RABBITMQPASS}
rabbitmqctl add_vhost esdc
rabbitmqctl set_permissions -p esdc esdc ".*" ".*" ".*"

# edit iptables to add line for opening RabbitMQ port
# add following line:
# -A INPUT -m state --state NEW -m tcp -p tcp --dport 5672 -j ACCEPT
vim /etc/sysconfig/iptables 
systemctl restart iptables  # allow port 5672 for compute nodes

# in case you use firewalld, ignore above and run commands below:
firewall-cmd --add-port=5672/tcp --permanent
firewall-cmd --reload

Run

systemctl enable rabbitmq-server
systemctl start rabbitmq-server

Use

Not used directly. Used by Celery, which uses it via Kombu.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.