问题描述
我正在聊天应用程序。我有两个ejabberd节点[email protected]和[email protected]如果我将在节点之间进行主 - 主集群,每个节点都有自己的riak服务器,如果node1 riak服务器关闭,那么node1如何将请求转发到node2?请建议我解决方案。这不是它应该如何工作。如果您使用Riak进行部署,那么您应该有专门的Riak基础设施。此外,只有两个Riak节点是没有意义的:您需要至少5个Riak节点才能开始使用Riak(在冗余/数据可用性方面)的好处。
应该将ijabberd称为Riak群集,单个DNS名称作为Riak应该配置一个负载均衡器,例如HAProxy:
I am working on chat app. I have two ejabberd nodes [email protected] and [email protected] if i will do master-master clustering between nodes and each nodes have their own riak server if node1 riak server goes down then how node1 transfer request to node2? Please suggest me solution.
This is not how it is supposed to work. If you deploy with Riak, you are supposed to have a dedicated Riak infrastructure. Moreover, having only two Riak nodes does not make sense: You need at least 5 Riak nodes to start getting the benefits of using Riak (In term of redundancy / Availability of data).
ejabberd is supposed to refer to the Riak cluster as a whole, single DNS name as Riak is supposed to be configured with a load balancer, like for example HAProxy: http://docs.basho.com/riak/latest/ops/advanced/configs/load-balancing-proxy/
这篇关于ejabberd是否支持NOSQL RIak上的数据库级别集群?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!