Qpid是基于AMQP的实现。
安装的c++的broker,测试了一下集群的性能。比activeMQ的集群的处理能力强大多了,完全不在一个层次上。
Qpid的集群编译的时候就需要安装好openais这里在一篇文章里已经提到过了。
High Availability Messaging Clusters provide fault tolerance by ensuring that every broker in a cluster has the same queues, exchanges, messages, and bindings, and allowing a client to fail over to a new broker and continue without any loss of messages if the current broker fails or becomes unavailable. Because all brokers are automatically kept in a consistent state, clients can connect to and use any broker in a cluster. Any number of messaging brokers can be run as one cluster, and brokers can be added to or removed from a cluster while it is in use.
记得修改/etc/ais/openais.conf的配置,并且开发出其中boardcast的端口5405,iptables里开放出来,要不cluster将出现问题。