Skip to content

Instantly share code, notes, and snippets.

@TemporaryJam
Created September 20, 2013 07:51
Show Gist options
  • Save TemporaryJam/6634480 to your computer and use it in GitHub Desktop.
Save TemporaryJam/6634480 to your computer and use it in GitHub Desktop.
RabbitMQ clustering guide
#To tell RabbitMQ to instruct Erlang to communicate on a certain range of ports, create a file at /etc/rabbitmq/rabbitmq.config with the following contents:
[
{kernel, [{inet_dist_listen_min, 9100},{inet_dist_listen_max, 9105}]}
].
#Now for the iptables configuration. Update /etc/sysconfig/iptables with the following rules:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 5672 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 4369 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 9100:9105 -j ACCEPT
Now follow the RabbitMQ clustering guide http://www.rabbitmq.com/clustering.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment