WSO2 API Manager 作为 2 实例多合一设置 [英] WSO2 API Manager as 2 instance all-in-one setup

查看:31
本文介绍了WSO2 API Manager 作为 2 实例多合一设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将 WSO2 API Manager (2.0.0) 部署为 2 实例多合一集群(使用 Hazelcast AWS 方案),其中 mysql 数据源在此 链接

I have recently deployed WSO2 API Manager (2.0.0) as 2 instance all-in-one clustered (using Hazelcast AWS scheme) with mysql datasource as specified in this link

因此,无法找到此设置的完整分步安装指南.我想澄清几个我不太确定的领域.

Since, not able to find a complete step by step installation guide for this setup. I would like to clarify few areas that I am not too sure of.

  1. 通过 SVN 进行部署同步 - 因为这将是管理器到管理器节点(而不是管理器到工作节点),所以两者都将具有 <AutoCommit>true</AutoCommit>.我们应该对此有任何顾虑吗?
  2. DAS - 将 DAS 作为单独的节点,WSO2AM 和 WSO2DAS 是否应该共享相同的 WSO2AM_STATS_DB 数据库?
  3. 发布者 - 我们可以同时使用两个发布者(即一次一个).注意到一旦我们发布了一个 API,其他发布者需要时间将状态同步到 published(即使新 API 几乎立即在其他发布者上显示为 created)
  1. Depsync via SVN - since this will be manger to manger nodes (instead of manager to worker nodes) both will have <AutoCommit>true</AutoCommit>. Should we have any concern on this?
  2. DAS - Having DAS as separate node, should both WSO2AM and WSO2DAS share the same WSO2AM_STATS_DB database?
  3. Publisher - Can we use both publishers (i.e one at a time). Noticed once we published an API, it takes time for other publisher to sync the state to published (even if the new API appears almost immediate on other publisher as created)

谢谢.

推荐答案

1) 如果在两个节点都开启true,如果有的话会导致svn冲突从 2 个节点并行发布.相反,您可以从发布者发布到多个网关.为此,您可以在 api-manager.xml

1) If you enable <AutoCommit>true</AutoCommit> in both nodes, it can cause svn conflicts if there are parallel publishing from 2 nodes. Instead, you can publish to multiple gateways from the publisher. For that, you can configure multiple environments in <Environments> section in api-manager.xml

2) 是的,DAS 将汇总数据写入该数据库,APIM 仪表板从同一数据库读取数据.

2) Yes, DAS writes summarized data to that DB, and APIM dashboards read data from the same DB.

3) 所有发布者/存储节点应该在同一个集群中.然后只有他们可以就 API 状态更改等进行通信.要在同一个集群上,所有这些节点都应该具有相同的集群域.您可以在 axis2.xmlclustering 部分进行配置.

3) All publisher/store nodes should be in the same cluster. Then only they can communicate about API state changes etc. To be on the same cluster, all these nodes should have the same clustering domain. You can configure that in clustering section of axis2.xml.

这篇关于WSO2 API Manager 作为 2 实例多合一设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆