RabbitMQ unable to join cluster using consul peer discovery #10920
-
Fresh install of RabbitMQ 3.13.1 Erlang 26.2.3 default_vhost = /
default_user = guest
default_pass = guest
default_user_tags.administrator= true
default_permissions.configure = .*
default_permissions.read = .*
default_permissions.write = .*
loopback_users.guest= true
log.file.level = debug
management.tcp.ip = 192.168.169.2
#consul setup
cluster_formation.peer_discovery_backend = consul
cluster_formation.consul.host=192.168.169.2
# 8500 is used by default
cluster_formation.consul.port = 8500
# http is used by default
cluster_formation.consul.scheme = http
# rabbitmq is used by default
cluster_formation.consul.svc = rabbitmq
# do compute service address
cluster_formation.consul.svc_addr_auto = false
# compute service address using the IP address of a NIC, eno2
#cluster_formation.consul.svc_addr_nic = eno2
#cluster_formation.consul.svc_addr_use_nodename = false
cluster_formation.consul.svc_addr=192.168.169.2
# use long RabbitMQ node names?
#cluster_formation.consul.use_longname = false
# 5672 is used by default
cluster_formation.consul.svc_port = 5672
# health check interval (node TTL) in seconds
cluster_formation.consul.svc_ttl = 300
# how soon should nodes that fail their health checks be unregistered by Consul?
# this value is in seconds and must not be lower than 60 (a Consul requirement)
cluster_formation.consul.deregister_after = 90
# include node in the warning state into discovery result set
cluster_formation.consul.include_nodes_with_warnings = true
#some service tags Environment (rabbitmq-env.conf), again on all nodes the same except the IP address used: export RABBITMQ_USE_LONGNAME=true
export NODENAME[email protected]
export NODE_IP_ADDRESS=192.168.169.2
export ERL_EPMD_ADDRESS=192.168.169.2 Advanced config(advanced.config):
I stopped all three nodes and enabled the consul peer discovery plugin via Now when I start the second node, it tries to resolve the peers from consul, but fails. From debug logs I can see I really don't know what I'm missing, I attached all the debug logs from start until the first healthcheck it's done. Below it's one of the attempts logs.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
#10760