Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
786 views
in Technique[技术] by (71.8m points)

wso2 - 如何正确保证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为XXX.XXX.XXX.1的节点1)

NODE 2 with the IP: XXX.XXX.XXX.2

(IP为XXX.XXX.XXX.2的节点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?

(这是处理这种情况的正确方法吗?)

  ask by AndreaNobili translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.

(是的,如果您的两个EI实例都具有MB配置文件集群,并且两个服务器在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.

    (如果将您的负载平衡器配置为在主动-被动或主动-主动模式下工作,则可以在给定的时间内添加配置以重新部署运行状况检查实例失败的配置,以在Active-Passive或Active-Active模式下工作。)

Thanks,

(谢谢,)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...