About WSO2 API Manager data sources

杀马特。学长 韩版系。学妹 提交于 2020-01-15 05:24:07

问题


I'm performing WSO2 API manager + Analytics 2.0 POC now. When i change datasource from H2 to Oracle, in wso2am-2.0.1-SNAPSHOT, there are 2 data source config files: master-datasources.xml & metrics-datasources.xml, according Installing and configuring the databases, there should be WSO2AM_DB, WSO2UM_DB and the WSO2REG_DB datasource configurations, but i just find WSO2_CARBON_DB & WSO2AM_DB, so my questions are

  1. Is WSO2_CARBON_DB = WSO2UM_DB + WSO2REG_DB?
  2. for WSO2_METRICS_DB, according Enabling Metrics and Storage Types, if we enable JDBC storage, can we store all components metrics information in one shared db or it needs one db per component(local)?
  3. What's WSO2_MB_STORE_DB used for? from the scripts, it's for Message Store and Andes Context Store. Can we keep to use H2 in prod. cluster env.?

When i config wso2am-analytics-2.0.0-SNAPSHOT, i have below questions:

  1. Can we share WSO2_CARBON_DB setting for both APIMGRT related components and analytics? or it's better to not share?
  2. For WSO2AM_STATS_DB, is analytics resposible to aggregate and write to it, APIMGRT responsible to read? Which APIMGRT components need to read it?
  3. For analytics related store, it supports RDBMS, Cassandra, HBase, but it does not support mongodb, right?
  4. for GEO_LOCATION_DATA, What's this used for? Can we just use H2 in prod. env.?

回答1:


APIM:

1) In default pack, yes. But in a production environment, it is recommended to separate them as WSO2_CARBON_DB, WSO2UM_DB and WSO2REG_DB (Please note you need WSO2_CARBON_DB too, to store local data. And this can be an h2 database)

2) You can have a shared DB

3) WSO2_MB_STORE_DB is required only if you use Advanced Throttling. Tables for this are created by APIM itself. So you don't need to run any scripts on it.

APIM Analytics:

1) You can share WSO2UM_DB and WSO2REG_DB. But don't share (local) WSO2_CARBON_DB.

2) Store and Publisher

3) See WSO2 DAS with MongoDB

4) GEO_LOCATION_DATA is used for Geolocation Based Statistics. H2 is not recommended.



来源:https://stackoverflow.com/questions/38734196/about-wso2-api-manager-data-sources

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!