[rabbitmq-discuss] Auto-configuration of a cluster

Filip Tepper filip at tepper.pl
Wed Jan 27 11:08:43 GMT 2010


I have 2 RabbitMQ nodes on separate machines: 

rabbit at rabbitmq-1a.srv 
rabbit at rabbitmq-1b.srv 

Both with default configs. 

I've added /etc/rabbitmq/rabbitmq_cluster.config: 

["rabbit at brabbitmq-1a.atm", "rabbit at rabbitmq-1b.atm"]. 

After running rabbitmq-server on rabbitmq-1a.srv I get the following error: 

node          : rabbit at rabbitmq-1a 
app descriptor: /usr/lib/rabbitmq/lib/rabbitmq_server-1.7.0/sbin/../ebin/rabbit.app 
home dir      : /var/lib/rabbitmq 
cookie hash   : 9aG9gSiHJja8V0QJ/HNdzg== 
log           : /var/log/rabbitmq/rabbit.log 
sasl log      : /var/log/rabbitmq/rabbit-sasl.log 
database dir  : /var/lib/rabbitmq/mnesia/rabbit 

starting database             ...{"init terminating in do_boot",{{nocatch,{error,{cannot_start_application,rabbit,{{ 
unable_to_join_cluster,["rabbit at rabbitmq-1a.atm","rabbit at rabbitmq-1b.atm"],{function_clause,[{gen_server,d 
o_abcast,[["rabbit at rabbitmq-1a.atm","rabbit at rabbitmq-1b.atm"],mnesia_controller,{'$gen_cast',{merging_sche 
ma,'rabbit at rabbitmq-1a'}}]},{mnesia_controller,connect_nodes2,2}]}},{rabbit,start,[normal,[]]}}}}},[{init,start 
_it,1},{init,start_em,1}]}} 

=INFO REPORT==== 27-Jan-2010::11:46:58 === 
    application: rabbit 
    exited: {{unable_to_join_cluster,["rabbit at rabbitmq-1a.srv", 
                                      "rabbit at rabbitmq-1b.srv"], 
                                     {function_clause, 
                                         [{gen_server, 
                                              do_abcast, 
                                              [["rabbit at rabbitmq-1a.srv", 
                                                "rabbit at rabbitmq-1b.srv"], 
                                               mnesia_controller, 
                                               {'$gen_cast', 
                                                   {merging_schema, 
                                                       'rabbit at rabbitmq-1a'}}]}, 
                                          {mnesia_controller,connect_nodes2,2}]}}, 
             {rabbit,start,[normal,[]]}} 
    type: temporary 

Any ideas how to make it work? Thanks in advance! 

-- 
Filip Tepper


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20100127/fcf131a3/attachment.htm 


More information about the rabbitmq-discuss mailing list