newbie questions about 'rabbitmq.config.example'

383 views
Skip to first unread message

jim_an...@jjajava.com

unread,
Dec 19, 2016, 11:26:09 AM12/19/16
to rabbitmq-users

I'm new with rabbitmq and have a few questions about the syntax of the example file, "rabbitmq.config.example" that is provided in the /usr/share/doc/rabbitmq-server directory. Here is a short excerpt after unzipping the .gz file:

  1 %% -*- mode: erlang -*-
  2 %% ----------------------------------------------------------------------------
  3 %% RabbitMQ Sample Configuration File.
  4 %%
  5 %% See http://www.rabbitmq.com/configure.html for details.
  6 %% ----------------------------------------------------------------------------
  7 [
  8  {rabbit,
  9   [%%
 10    %% Network Connectivity
 11    %% ====================
 12    %%



I'm using vim and when I look at this file, vim highlights anything from '%%' to the end of line as a comment. As far as I know, this is not a type of Python comment and I have not found anything yet in the rabbitmq documentation mentioning this as a comment.

Question 1) Can anyone point me to documentation describing the syntax for the 'rabbitmq.config' file?
Question 2)  Does "%%" start a comment in this file?
Question 3) Python comment? rabbitmq comment? other?


Thanks.
Jim A.

Michael Klishin

unread,
Dec 19, 2016, 11:36:03 AM12/19/16
to rabbitm...@googlegroups.com, jim_an...@jjajava.com
It's a format typically called the Erlang term format. You can think of it as JSON in JavaScript:
these are Erlang data structures in a file terminated with a dot.

> Question 2) Does "%%" start a comment in this file?

Correct.

> Question 3) Python comment? rabbitmq comment? other?

Erlang.

The same file is available on GitHub:
https://github.com/rabbitmq/rabbitmq-server/blob/stable/docs/rabbitmq.config.example
--
MK

Staff Software Engineer, Pivotal/RabbitMQ


jim_an...@jjajava.com

unread,
Dec 23, 2016, 6:38:12 PM12/23/16
to rabbitmq-users
Michael,

Thank you for the explanation. I will do a search on the erlang language. I saw the 'mode: erlang' and thought it had something to do with applying an erlang distribution to rabbitmq queuing tasks.

Jim
Reply all
Reply to author
Forward
0 new messages