RabbitMQ集羣模式簡介

Mirror模式(鏡像模式)

1.png

[root@node171 rabbitmq]# rabbitmqctl set_policy ha-all "^" '{"ha-mode":"all"}'html

Setting policy "ha-all" for pattern "^" to "{"ha-mode":"all"}" with priority "0" for vhost "/" ...node

命令用法參見ide

https://www.rabbitmq.com/ha.htmlspa

Shovel (遠程模式)

image.png

Federation

image.png



對比Shovel配置簡單,多用於異地多活3d

三種的區別

image.png

相關文章
相關標籤/搜索