rabbitmq3.8.16 configure cluster with peer_discovery_backend

56 views
Skip to first unread message

yang.li

unread,
May 19, 2021, 9:04:41 AM5/19/21
to rabbitmq-users
Hi,
    In CentOS7.9, I want to use rabbitmq.3.8.16 to create a cluster with 3 nodes. But I have some troubles.
1.  rabbitmq3.8.16 does not have rabbitmq.conf confure file in /etc/rabbitmq. However rabbitmq-defaults have few contents. Where can am I find the configure file template of rabbitmq.conf ?
2. Continue 1, according to rabbitmq.conf I found with Google, I made few changes for cluster configuration:
listeners.tcp.default = 5672
default_user = rabbitmq
default_pass = kpYlooMJ
loopback_users.guest = false
cluster_partition_handling = pause_minority
management.listener.port = 15672
heartbeat = 120

cluster_formation.peer_discovery_backend = rabbit_peer_discovery_classic_config
cluster_formation.classic_config.nodes.1 = rabbit@host1
cluster_formation.classic_config.nodes.2 = rabbit@host2
cluster_formation.classic_config.nodes.3 = rabbit@host3
When I run "rabbitmq-server", after some minutes, the cluster_status never change. How should I do configure cluster with peer_discovery_backend in rabbitmq3.8.16?
Example host1:
[root@host1 ~]# rabbitmqctl cluster_status
Cluster status of node rabbit@host1 ...
Basics

Cluster name: rabbit@host1

Disk Nodes

rabbit@host1

Running Nodes

rabbit@host1

Versions

rabbit@host1: RabbitMQ 3.8.16 on Erlang 23.3.1

Maintenance status

Node: rabbit@host1, status: not under maintenance

Alarms

(none)

Network Partitions

(none)

Listeners

Node: rabbit@host1, interface: [::], port: 25672, protocol: clustering, purpose: inter-node and CLI tool communication
Node: rabbit@host1, interface: [::], port: 5672, protocol: amqp, purpose: AMQP 0-9-1 and AMQP 1.0

Feature flags

Flag: implicit_default_bindings, state: enabled
Flag: maintenance_mode_status, state: enabled
Flag: quorum_queue, state: enabled
Flag: user_limits, state: enabled
Flag: virtual_host_metadata, state: enabled

Thanks & Regards
Reply all
Reply to author
Forward
0 new messages