[rabbitmq-discuss] rabbitMq use of the setcookie option
rtrlists at googlemail.com
Wed Feb 16 09:46:10 GMT 2011
On Tue, Feb 15, 2011 at 5:48 PM, Michael De Courci <mdecourci at googlemail.com
> We are trying to understand how cookies are used with Rabbit MQ, from my
> 1) Rabbit MQ servers (rabbitmq-server or rabbitmq-server.bat) can be
> started without the "setcookie" option, in this case they will use the
> cookie defined in the .erlang.cookie file in the user home folder. If all
> Rabbit MQ servers share the same cookie or .erlang.cookie file, then they
> can communicate
> 2) Rabbit MQ servers (rabbitmq-server or rabbitmq-server.bat) can be
> started with the same "setcookie" option, for example, setcookie "FREDABC",where "
> FREDABC" is the shared cookie used to communicate.
> Q) What happens when servers use setcookie cookie, see
> http://www.rabbitmq.com/clustering.html#setup, is cookie a variable in the
> script, or is this a misunderstanding ?
Cookies in Erlang are used by the distributed communication system between
nodes; that is, in Erlang, not AMQP. If you start several Erlang nodes, then
they can only "see" each other and send messages to each other if their
It is something that sits underneath RabbitMQ as part of the Erlang
If you want to delve deeper, you can find more information here:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss