简体   繁体   English

如何正确保证 WSO2 MB 配置文件集群的高可用需求?

[英]How to correctly guarantee the high availability requirement for a WSO2 MB profile cluster?

I have the following doubt relating how to correctly set up a WSO2 MB cluster respecting the requirements of high availability.我对如何正确设置 WSO2 MB 集群符合高可用性要求有以下疑问。 I am following this official guide: https://docs.wso2.com/display/EI650/Clustering+the+Message+Broker+Profile#ClusteringtheMessageBrokerProfile-Testingthecluster我正在关注这个官方指南: https : //docs.wso2.com/display/EI650/Clustering+the+Message+Broker+Profile#ClusteringtheMessageBrokerProfile-Testingthecluster

So I will have a two nodes WSO2 MB profile cluster.所以我将有一个两个节点的 WSO2 MB 配置文件集群。 Now my doubt is related to the high availability concept (basically: if a single node is not working, the cluster should still works).现在我的疑问与高可用性概念有关(基本上:如果单个节点不工作,集群应该仍然工作)。

I have two nodes cluster, each node run on a specific server having a specific IP address, something like this我有两个节点集群,每个节点都运行在具有特定 IP 地址的特定服务器上,类似这样

NODE 1 with the IP: XXX.XXX.XXX.1具有 IP 的节点 1:XXX.XXX.XXX.1

NODE 2 with the IP: XXX.XXX.XXX.2具有 IP 的节点 2:XXX.XXX.XXX.2

So lets suppose that I want publish a message into a queue defined on this cluster.因此,假设我想将消息发布到此集群上定义的队列中。 I suppose that I can send the message indifferently to one of these 2 nodes (correct me if I am doing wrong assertion).我想我可以无动于衷地将消息发送到这两个节点之一(如果我做错了断言,请纠正我)。

If this is the situation: how can I guarantee the high availability requirement?如果是这种情况:我如何保证高可用性要求? Can I simply put both my nodes under a load balancer?我可以简单地将我的两个节点都放在负载均衡器下吗? so that if one node doesn't work, the request is directed to the other这样如果一个节点不工作,请求就会被定向到另一个

Is it a correct way to handle this situation?这是处理这种情况的正确方法吗?

Yes if you have both of the EI instances with MB profile clustering where the two servers have cluster coordination configured on JDBC or Hazelcast level, with the above-mentioned approach you will guarantee the high availability of the service.是的,如果您拥有两个具有 MB 配置文件集群的 EI 实例,其中两个服务器在 JDBC 或 Hazelcast 级别配置了集群协调,那么通过上述方法,您将保证服务的高可用性。

You can make sure to follow the below provide additional precautions to make sure both servers do not go down for the same reason at ones.您可以确保遵循以下提供的额外预防措施,以确保两台服务器不会因相同的原因而停机。

  • Have the two servers in two separate instances rather than having offset in the same instance.将两台服务器放在两个不同的实例中,而不是在同一个实例中偏移。
  • You can configure the load balancer to work in Active-Passive or Active-Active mode if you are deployed on a cloud provider like AWS you can add configurations to redeploy the instances of the health check is failed for a given amount of time.如果您部署在 AWS 等云提供商上,您可以将负载均衡器配置为在主动-被动或主动-主动模式下工作,您可以添加配置以重新部署运行状况检查在给定时间内失败的实例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM