The New and Old Config File Formats

162 views
Skip to first unread message

vineeth mohan

unread,
Jun 18, 2019, 4:00:01 AM6/18/19
to rabbitmq-users
Hi,

I am trying to implement Cluster Formation and Peer Discovery in Rabbitmq. I have enabled the plugin 'rabbitmq_peer_discovery_aws'.

Now I wanted to modify the rabbitmq.config file to add the below settings. I am using the config file with Old Config File Formats, but the below is in New format I think. How can I include the below setting in my config file. PLease can someone help?

cluster_formation.peer_discovery_backend = rabbit_peer_discovery_aws
cluster_formation.aws.region = us-xxxx-2
cluster_formation.aws.access_key_id = someaccesskey
cluster_formation.aws.secret_key = randomsecretkey
cluster_formation.aws.use_autoscaling_group = true

Vineeth 




 

Luke Bakken

unread,
Jun 18, 2019, 10:24:42 AM6/18/19
to rabbitmq-users
Hi Vineeth,

I'm assuming that you're using a recent version of RabbitMQ (3.7.X).

If you have a mix of old-style and new configuration settings you should do the following:

* Save the configuration you posted below to /etc/rabbitmq/rabbitmq.conf

* Rename /etc/rabbitmq/rabbitmq.config to /etc/rabbitmq/advanced.config

* Restart RabbitMQ

Please check the startup log messages to ensure that RabbitMQ is reading both of the above configuration files.

Thanks,
Luke
Message has been deleted

Michael Klishin

unread,
Jun 30, 2019, 5:43:06 PM6/30/19
to rabbitmq-users
It would be much easier to recommend something specific if you posted actual file names and their contents, and any paths used
with RABBITMQ_CONFIG_FILE and such.

You cannot put new style configuration in rabbitmq.config. The file must be named rabbitmq.conf [1].
If you want to add some settings on top in the classic config format, use advanced.config (which is an additional file to rabbitmq.conf).


On Thu, Jun 27, 2019 at 7:43 AM Rajesh Bhimalingam <b.rajes...@gmail.com> wrote:
Hi Luke

 i have rabbitmq 3.7 and erl 20.3 
its working fine if i have rabbitmq.config .  but i i build new ec2 instance with rabbitmq.cong with the new format i m getting errors  like 

C:\erl9.3\erts-9.3\bin\erlsrv: Service RabbitMQ added to system. {"init terminating in do_boot",{{case_clause,{error,tokens}},[{file,consult_stream,3,[{file,"file.erl"},{line,1380}]},{file,consult,1,[{file,"file.erl"},{line,989}]},{rabbit_prelaunch,get_config,1,[{file,"src/rabbit_prelaunch.erl"},{line,108}]},{rabbit_prelaunch,dist_port_set_check,0,[{file,"src/rabbit_prelaunch.erl"},{line,92}]},{rabbit_prelaunch,start,0,[{file,"src/rabbit_prelaunch.erl"},{line,46}]},{init,start_em,1,[{file,"init.erl"},{line,1085}]},{init,do_boot,3,[{file,"init.erl"},{line,793}]}]}}

any ideas 

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/aed05a8b-c9e9-45bb-8c76-f57158711bd7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
MK

Staff Software Engineer, Pivotal/RabbitMQ
Reply all
Reply to author
Forward
0 new messages