[rabbitmq-discuss] Problem with RabbitMQ HA cluster on EC2 (Windows)
Tim Watson
tim at rabbitmq.com
Wed Oct 17 11:31:11 BST 2012
On 10/16/2012 04:34 PM, Richard Urwin wrote:
>
> Hi Tim,
>
> Thanks for the rapid response!
>
You're welcome - I had to think a bit longer about this second one
though! ;)
> OK, so I added the following into each hosts file:
>
> IP-0AF23E1E 10.XX.XX.XX
>
> IP-0AD25792 10.XX.XX.XX
>
> The names now match everywhere and are correctly mapped to the private
> IPs.
>
> Now when I run:
>
> C:\Program Files (x86)\RabbitMQ
> Server\rabbitmq_server-2.8.7\sbin>rabbitmqctl cluster rabbit at IP-0AF23E1E
>
> I have success:
>
> Clustering node 'rabbit at IP-0AD25792' with ['rabbit at IP-0AF23E1E'] ...
>
> ...done.
>
> ...and checking the cluster status with:
>
> C:\Program Files (x86)\RabbitMQ
> Server\rabbitmq_server-2.8.7\sbin>rabbitmqctl cluster_status
>
> ...gives:
>
> Cluster status of node 'rabbit at IP-0AD25792' ...
>
> [{nodes,[{disc,['rabbit at IP-0AF23E1E']},{ram,['rabbit at IP-0AD25792']}]},
>
> {running_nodes,['rabbit at IP-0AF23E1E','rabbit at IP-0AD25792']}]
>
> ...done.
>
Great!
> BUT:
>
> I had to open all of the ports within the EC2 security group and
> Windows firewall.
>
> As mentioned, I have this (and only this) in my rabbit.config:
>
> [{kernel, [{inet_dist_listen_min, 55700}, {inet_dist_listen_max,
> 55800}]}].
>
> But it doesn't appear to be restricting the ports (since when I
> restrict the firewalls back to that range, it can't cluster.)
>
> Can you see what's wrong?
>
Hmn. If you set these net_kernel parameters for an Erlang node, then you
need to restart epmd on that host IIRC. The routing is usually thus
$ rabbitmqctl stop
$ epmd -names
epmd: up and running on port 4369 with data:
$ epmd -kill
Then restart your rabbit (on that node!) and you *should* be good to go.
Note that if `epmd -names` returns some running erlang nodes on that
host then you'll need to stop/kill them before stopping epmd itself.
Cheers,
Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20121017/91966a28/attachment.htm>
More information about the rabbitmq-discuss
mailing list