RabbitMQ中的cluster的架构

今天对 RabbitMQ的cluster做个了结,感觉要学习的东西太多了,日后如果使用到了rabbit时,再来回顾吧。

RabbitMQ的cluster在普通模式下(注意是默认模式),吞吐大概在2w左右,但这种的模式不太实用,只要主节点一旦挂掉,整个集群就无法使用,这里不做过多的讨论。主要讨论它的镜像模式,这种模式需要设置vhost的策略(policy)

#将所有的队列设置为镜像模式
rabbitmqctl set_policy -p wanda ha-all "^" '{"ha-mode":"all"}'

这种模式下,吞吐在5000左右。但这种模式+nginx可以实现高可用。

集群的搭建可用参考:https://yq.aliyun.com/articles/68656

发表评论

电子邮件地址不会被公开。 必填项已用*标注

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>