[rabbitmq-discuss] RabbitMQ Clustering
Radha Krishnan D
RadhakrishnanD at ivycomptech.com
Mon May 17 10:30:19 BST 2010
Hi,
Am trying to cluster two rabbitmq servers running on two independent
nodes,
Node 1 terminal
--------------------
[root at morungole sbin]# rabbitmqctl status
./..
Status of node rabbit at morungole ...
[{running_applications,[{rabbit,"RabbitMQ","1.7.2"},
{mnesia,"MNESIA CXC 138 12","4.4.7"},
{os_mon,"CPO CXC 138 46","2.1.8"},
{sasl,"SASL CXC 138 11","2.1.5.4"},
{stdlib,"ERTS CXC 138 10","1.15.5"},
{kernel,"ERTS CXC 138 10","2.12.5"}]},
{nodes,[rabbit at morungole]},
{running_nodes,[rabbit at morungole]}]
...done.
Node 2 terminal
--------------------------
[root at mocovir2 sbin]# rabbitmqctl -n MocovirRabbit at mocovir2 status
Status of node 'MocovirRabbit at mocovir2' ...
[{running_applications,[{rabbit,"RabbitMQ","1.7.2"},
{mnesia,"MNESIA CXC 138 12","4.4.12"},
{os_mon,"CPO CXC 138 46","2.2.4"},
{sasl,"SASL CXC 138 11","2.1.8"},
{stdlib,"ERTS CXC 138 10","1.16.4"},
{kernel,"ERTS CXC 138 10","2.13.4"}]},
{nodes,['MocovirRabbit at mocovir2']},
{running_nodes,['MocovirRabbit at mocovir2']}]
...done.
[root at mocovir2 sbin]# rabbitmqctl -n MocovirRabbit at mocovir2 stop_app
Stopping node 'MocovirRabbit at mocovir2' ...
...done.
[root at mocovir2 sbin]# rabbitmqctl -n MocovirRabbit at mocovir2 reset
Resetting node 'MocovirRabbit at mocovir2' ...
...done.
[root at mocovir2 sbin]# rabbitmqctl -n MocovirRabbit at mocovir2 cluster
rabbit at morungole
Clustering node 'MocovirRabbit at mocovir2' with [rabbit at morungole] ...
...done.
[root at mocovir2 sbin]# rabbitmqctl -n MocovirRabbit at mocovir2 start_app
Starting node 'MocovirRabbit at mocovir2' ...
...done.
[root at mocovir2 sbin]# rabbitmqctl -n MocovirRabbit at mocovir2 status
Status of node 'MocovirRabbit at mocovir2' ...
[{running_applications,[{rabbit,"RabbitMQ","1.7.2"},
{mnesia,"MNESIA CXC 138 12","4.4.12"},
{os_mon,"CPO CXC 138 46","2.2.4"},
{sasl,"SASL CXC 138 11","2.1.8"},
{stdlib,"ERTS CXC 138 10","1.16.4"},
{kernel,"ERTS CXC 138 10","2.13.4"}]},
{nodes,['MocovirRabbit at mocovir2']},
{running_nodes,['MocovirRabbit at mocovir2']}]
...done.
Even though it is telling Clustering is done. Both the rabbitmq nodes
are not able to recognize each other.
Can you please tell me where am going wrong ?\
The .erlang.cookie in $HOME was not same at the beginning . Then i
copied the .erlang.cookie content from Node 1 (rabbit at morungole) to Node
2 ( MocovirRabbit at mocovir2 )
Thanks and Regards,
D.Radhakrishnan
Trainee Engineer-Architecture
IVY Comptech Private Limited
Cyber Spazio,Road No 2, Banjara Hills,
Hyderabad-500034, Andhra Pradesh.
Phone + 91 (40) 66721000 - 4638
Mobile + 91 (0) 9030842104
This email and any attachments are confidential, legally privileged and
protected by copyright. If you are not the intended recipient,
dissemination or copying this email is prohibited. If you have received
this in error, please notify the sender by replying by email and then
delete the email completely from your system.
Any views or opinions are solely those of the sender. This
communication is not intended to form a binding contract unless
expressly indicated to the contrary and properly authorized. Any actions
taken on the basis of this email are at recipient's own risk.
This email is sent for and on behalf of Ivy Comptech Private Limited. Ivy Comptech Private Limited is a limited liability company.
This email and any attachments are confidential, and may be legally privileged and protected by copyright. If you are not the intended recipient dissemination or copying of this email is prohibited. If you have received this in error, please notify the sender by replying by email and then delete the email completely from your system.
Any views or opinions are solely those of the sender. This communication is not intended to form a binding contract on behalf of Ivy Comptech Private Limited unless expressly indicated to the contrary and properly authorised. Any actions taken on the basis of this email are at the recipient's own risk.
Registered office:
Ivy Comptech Private Limited, Cyber Spazio, Road No. 2, Banjara Hills, Hyderabad 500 033, Andhra Pradesh, India. Registered number: 37994. Registered in India. A list of members' names is available for inspection at the registered office.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20100517/67973722/attachment-0001.htm
More information about the rabbitmq-discuss
mailing list