问题
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.
- 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
)
Thank you.
回答1:
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) Yes, DAS writes summarized data to that DB, and APIM dashboards read data from the same DB.
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
.
来源:https://stackoverflow.com/questions/40282637/wso2-api-manager-as-2-instance-all-in-one-setup