How to start a rabbitmq cluster with IP addresses and DNS record?

I am trying to create a rabbitmq cluster, the nodes used do not have a DNS record. Although I added the appropriate entries to / etc / hosts, the cluster always fails with the error below.

$ rabbitmqctl join_cluster rabbit @ pcomdvsns1 Clustering node rabbit @ pcomdvsns2 with rabbit @ pcomdvsns1 ... Error: {cannot_discover_cluster, "The provided nodes are either stand-alone or do not work"}

Is a DNS record required to start?

+4
source share
2 answers

Make sure that /etc/hosts has an entry for pcomdvsns1 pointing to the correct IP address, then check if you can reach your node using:

 rabbitmqctl status -n rabbit@pcomdvsns1 

Then check if you have the same erlang files on both servers.

+5
source

I think you want the cluster to use rabbitmqctl.

Have you checked if the elrang cookie is the same or not between these machines?

If you have not done so, the message you told us shows us.

0
source

Source: https://habr.com/ru/post/1492312/


All Articles