简体   繁体   English

Rabbit MQ的负载均衡选项

[英]Load balancing options with rabbit mq

What are the options available with rabbitMQ for load balancing. RabbitMQ提供了哪些用于负载均衡的选项。 I have already gone throght the article http://insidethecpu.com/2014/11/17/load-balancing-a-rabbitmq-cluster/ . 我已经浏览了http://insidethecpu.com/2014/11/17/load-balancing-a-rabbitmq-cluster/ Is there any alternative way that can be done? 有没有其他可以替代的方法? We have only single queue which is mirrored b/w two nodes and we need to load balance b/w them 我们只有一个队列,其镜像是两个节点的黑白,我们需要对它们进行负载平衡

AMQP guarantees message ordering. AMQP保证消息排序。 That's why a queue has a single master and many slaves, and all messages need to go through the master instance. 这就是为什么队列只有一个主节点和许多从节点,并且所有消息都需要通过主实例。

If you don't need this ordering, your best solution is to not cluster RabbitMQ nodes. 如果不需要这种排序,最好的解决方案是不对RabbitMQ节点进行集群。 Just run them independently and load-balance your clients in a round-robin manner. 只需独立运行它们,并以循环方式平衡客户端的负载即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM