2013年6月14日星期五

关于RabbitMQ的高可用性

关于RabbitMQ的高可用性

RabbitMQ集群并不保证队列的高可用性,尽管交换机、绑定这些可以复制到集群里的任何一个节点,但是队列内容不会复制。要复制队列内容到集群里的每个节点,需要创建镜像队列。
如下是来自RabbitMQ开发组织的一个回复:
If you have set up a cluster, the only thing you need to do to create an HA queue is to pass the arguments described here:
http://www.rabbitmq.com/ha.html#genesis when declaring the queue.
How exactly to do this will the depend on the AMQP client you are using, that paragraph includes an example using the Java client.
在创建好cluster后,唯一要做的事是创建HA队列,在声明队列时使用上述URL里描述的参数。具体如何做,取决于AMQP客户端的不同,示例里用的是Java客户端。

没有评论:

发表评论