【转载】关于RabbitMQ的高可用性
生活随笔
收集整理的這篇文章主要介紹了
【转载】关于RabbitMQ的高可用性
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
? ? ? RabbitMQ 集群并不保證隊列的高可用性,盡管 exchange、binding 這些可以復制到集群里的任何一個節點(實際上是 metadata 的復制),但是 queue 內容不會復制。要復制隊列內容到集群里的每個節點,需要創建鏡像隊列。
如下是來自 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 queue,唯一要做的事是:在聲明隊列時使用上述 URL 里描述的參數。具體如何做,取決于 AMQP 客戶端的不同,示例里用的是 Java 客戶端。
總結
以上是生活随笔為你收集整理的【转载】关于RabbitMQ的高可用性的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: iOS屏幕旋转 浅析
- 下一篇: OpenSSH 6.7 发布 开源ssh