WSO2 API Manager作为2实例多合一设置 [英] WSO2 API Manager as 2 instance all-in-one setup
问题描述
我最近已将WSO2 API Manager(2.0.0)部署为具有此链接
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.
- 通过SVN进行同步-由于这将管理到管理节点(而不是管理者到工作节点),所以两者都将具有
<AutoCommit>true</AutoCommit>
.我们对此应该担心吗? - DAS-将DAS作为单独的节点,WSO2AM和WSO2DAS是否应该共享相同的WSO2AM_STATS_DB数据库?
- 发布者-我们可以同时使用两个发布者吗?注意,一旦我们发布了API,其他发布者就需要花一些时间将状态同步到
published
(即使新的API在其他发布者上几乎立即显示为created
)
- 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? - DAS - Having DAS as separate node, should both WSO2AM and WSO2DAS share the same WSO2AM_STATS_DB database?
- 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 ascreated
)
谢谢.
推荐答案
1)如果在两个节点中都启用<AutoCommit>true</AutoCommit>
,则如果有来自2个节点的并行发布,则可能导致svn冲突.相反,您可以从发布者发布到多个网关.为此,您可以在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.xml
的clustering
部分中进行配置.
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屋!