RabbitMQ 设置 HA 策略
RabbitMQ Set the HA Policy
我知道 HA 策略是通过以下命令设置的:
$ rabbitmqctl set_policy ha-all "" '{"ha-mode":"all","ha-sync-mode":"automatic"}'
我的问题似乎很基础:
我是否必须在每个节点或其中一个节点上发出此命令?
RabbitMQ 提供将策略分发到所有集群,因此您 select 信息将分发到其他节点的哪个节点并不重要。
请阅读这里:https://www.rabbitmq.com/clustering.html
A RabbitMQ broker is a logical grouping of one or several Erlang
nodes, each running the RabbitMQ application and sharing users,
virtual hosts, queues, exchanges, bindings, and runtime parameters.
Sometimes we refer to the collection of nodes as a cluster.
我知道 HA 策略是通过以下命令设置的:
$ rabbitmqctl set_policy ha-all "" '{"ha-mode":"all","ha-sync-mode":"automatic"}'
我的问题似乎很基础:
我是否必须在每个节点或其中一个节点上发出此命令?
RabbitMQ 提供将策略分发到所有集群,因此您 select 信息将分发到其他节点的哪个节点并不重要。
请阅读这里:https://www.rabbitmq.com/clustering.html
A RabbitMQ broker is a logical grouping of one or several Erlang nodes, each running the RabbitMQ application and sharing users, virtual hosts, queues, exchanges, bindings, and runtime parameters. Sometimes we refer to the collection of nodes as a cluster.