<div dir="ltr">Hi,�<div>I followed closely the rabbitmq clustering <a href="https://www.rabbitmq.com/clustering.html">documentation</a> on the site but failed for a full day to generate a cluster on EC2.�</div><div>I frequently got "The nodes provided are either offline or not running"</div>
<div>(Though I had a telnet and my cookie was the same).</div><div><br></div><div>Eventually I solved it by recording the TCP communication (upon join_cluster command) and reading it )</div><div><br></div><div><br></div><div>
<br></div><div>I saw that after the triple handshake when the first node connects to the second, <br>a packet contains a new port is transferred�</div><div><br></div><div><a href="http://i.imgur.com/FN7r2as.png">http://i.imgur.com/FN7r2as.png</a><br>
</div><div><img src="http://i.imgur.com/FN7r2as.png"><br></div><div><br></div><div>So, I really don't know what it is but I tried to open it in my security group (the firewall is down anyhow, but I need to update the port in EC2 Security Group)</div>
<div>and finally after a lot of trials it worked.�</div><div><br></div><div><br></div><div>My questions :</div><div>1. What is this port.</div><div>2. Is it a random port? How do I set it so I can control it?</div><div>3. Was I missing it in the <a href="https://www.rabbitmq.com/clustering.html">clustering guide</a>? It is kinda important. I couldnt find any document related to the rabbitmq clustering and this port.�</div>
<div><br></div><div><br></div><div>4. I did find some stuff regarding <a href="http://www.erlang.org/faq/how_do_i.html#id55090">clustering erlang. </a>and it mentioned setting�inet_dist_listen_min and�inet_dist_listen_max. Is this it?�</div>
<div>5. I need to set �it using�</div><div><br></div><div><div><span class="" style="white-space:pre">      </span>application:set_env(kernel, inet_dist_listen_min, 9100).</div><div><span class="" style="white-space:pre">   </span>application:set_env(kernel, inet_dist_listen_max, 9105).</div>
</div><div><br></div><div>How do I run configure this lines?�</div><div>Thanks.</div></div>