【转载】关于RabbitMQ的高可用性
? ? ? RabbitMQ 集群并不保證隊(duì)列的高可用性,盡管 exchange、binding 這些可以復(fù)制到集群里的任何一個(gè)節(jié)點(diǎn)(實(shí)際上是 metadata 的復(fù)制),但是 queue 內(nèi)容不會(huì)復(fù)制。要復(fù)制隊(duì)列內(nèi)容到集群里的每個(gè)節(jié)點(diǎn),需要?jiǎng)?chuàng)建鏡像隊(duì)列。
如下是來自 RabbitMQ 開發(fā)組織的一個(gè)回復(fù):
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.
? ? ? 在創(chuàng)建好 cluster 后,若要創(chuàng)建?HA queue,唯一要做的事是:在聲明隊(duì)列時(shí)使用上述 URL 里描述的參數(shù)。具體如何做,取決于 AMQP 客戶端的不同,示例里用的是 Java 客戶端。
總結(jié)
以上是生活随笔為你收集整理的【转载】关于RabbitMQ的高可用性的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: iOS屏幕旋转 浅析
- 下一篇: Hadoop分布式文件系统HDFS的工作