amazon ec2 - Configuring cluster rabbitMQ on EC2 - nodes provided are either offline or not running Error -
i followed closely rabbitmq clustering documentation on site failed full day generate cluster on ec2.
got
the nodes provided either offline or not running
(though had telnet , cookie same).
eventually solved recording tcp communication (upon join_cluster command) , reading )
i saw after triple handshake when first node connects second,
packet contains new port transferred
so, don't know tried open in security group
(the firewall down anyhow, need update port in ec2 security group)
, after lot of trials worked.
my questions :
1. port.
2. random port? how set can control it?
3. missing in clustering guide? kinda important. couldnt find document related rabbitmq clustering , port.
- i did find stuff regarding clustering erlang. , mentioned setting inet_dist_listen_min , inet_dist_listen_max. it?
i need set using
application:set_env(kernel, inet_dist_listen_min, 9100). application:set_env(kernel, inet_dist_listen_max, 9105).
how run configure lines? thanks.
i had same issue. - found way create , configure rabbitmq cluster mirrored queues.
via aws - create security group: test-rabbit open ports are: 4369,5672,15672,25672,55672 and... tcp ports (0-65535) custom ip test-rabbit (meaning between nodes tcp ports opened)
the last 1 key problem had. noticed there various ports opened not written in rabbitmq documention , different on different machines, opening tcp traffic betweeen nodes using security group - solved anything.
don't forget make sure earlang cookie same between nodes , reboot machines after changing cookie.
Comments
Post a Comment