【发布时间】:2017-03-01 16:35:20
【问题描述】:
When the master node comes up and we make it the mirror of newly elected master.
是否有配置或方法来重新排队那些在 master 宕机时没有复制到镜像的消息?。
我不想丢失这些消息。我使用 ack=1 因为我不想在生产者延迟上妥协。我可以接受延迟发送未复制的消息。
【问题讨论】:
标签: rabbitmq
When the master node comes up and we make it the mirror of newly elected master.
是否有配置或方法来重新排队那些在 master 宕机时没有复制到镜像的消息?。
我不想丢失这些消息。我使用 ack=1 因为我不想在生产者延迟上妥协。我可以接受延迟发送未复制的消息。
【问题讨论】:
标签: rabbitmq
例如使用automatic in ha-sync-mode:
rabbitmqctl set_policy ha-all "" '{"ha-mode":"all", ,"ha-sync-mode":"automatic"}'
【讨论】:
"ha-sync-mode":"automatic" 消息会自动镜像。您以何种方式丢失消息?