peer_discovery_backend requires module name specified (at least for Consul) #6754
-
Compiled 3.10.12 from source and configured it for use with the Consul discovery plugin per documentation, which states: "To use Consul for peer discovery, set the cluster_formation.peer_discovery_backend to consul or its module name, rabbit_peer_discovery_consul" So, this should work:
However, when booting
So clearly, it can't find the plugin. Which led me to make no other changes to my configuration, other than changing |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The configuration schema also seems to be namespaced differently? I'm groking: https://www.rabbitmq.com/cluster-formation.html which says e.g.:
However, I had to namespace everything like this based on the source code, which worked:
except |
Beta Was this translation helpful? Give feedback.
-
The configuration you have provided, that begins with In general, the documentation refers to the https://www.rabbitmq.com/cluster-formation.html#peer-discovery-consul So, in your
|
Beta Was this translation helpful? Give feedback.
The configuration you have provided, that begins with
{rabbit, [
, is in Erlang term format, and goes into theadvanced.config
file.In general, the documentation refers to the
ini
-style configuration that should be in therabbitmq.conf
file. You should be able to provide all of your Consul configuration in that file and not use the Erlang term format configuration.https://www.rabbitmq.com/cluster-formation.html#peer-discovery-consul
So, in your
/etc/rabbitmq/rabbitmq.conf
file, have the following contents: