首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何设置数据服务服务器集群

问如何设置数据服务服务器集群
EN

Stack Overflow用户
提问于 2013-12-11 13:53:49
回答 1查看 268关注 0票数 0

是否有关于如何设置群集的详细教程。

我遵循了指南http://docs.wso2.org/pages/viewpage.action?pageId=29918203,但它不是专门为决策支持系统。

我也有一些关于这个指南的问题。

  1. 在“建立数据库”一节中,我们需要创建多少个数据库?carbondb,wso2conum_db还是wso2conreg_db?我只找到了创建wso2conum_db或wso2conreg_db的过程,但没有找到创建carbondb的过程。
  2. 是否需要在"ESB_MGR_HOME/repository/conf/datasoruces/master-datasources.xml"?中配置用户管理数据库、共享注册表数据库和中央数据库?
EN

回答 1

Stack Overflow用户

发布于 2013-12-13 22:19:32

集群数据服务类似于集群应用服务器http://docs.wso2.org/display/CLUSTER420/Clustering+Application+Server

用于数据库配置

你只需要两个数据库。

1) wso2conreg_db --存储注册表数据(您可以任意命名)

2) wso2conum_db --存储与用户管理相关的数据。(您可以随意命名)。

这些数据源需要按照如下所示的数据库凭据在master- data ources.xml中定义。

将注册表安装到ESB节点(主-数据源)

代码语言:javascript
复制
<datasource>
 <name>WSO2_REG_DB</name>
 <description>The datasource used for registry</description>
 <jndiConfig>
    <name>jdbc/WSO2_REG_DB</name>
 </jndiConfig>
 <definition type="RDBMS">
  <configuration>
    <url>jdbc:mysql://localhost:3306/wso2conreg_db</url>
    <username>root</username>
    <password>root</password>
    <driverClassName>com.mysql.jdbc.Driver</driverClassName>
    <maxActive>50</maxActive>
    <maxWait>60000</maxWait>
    <testOnBorrow>true</testOnBorrow>
    <validationQuery>SELECT 1</validationQuery>
    <validationInterval>30000</validationInterval>
  </configuration>
 </definition>
</datasource>

配置用户管理数据库主-Dataources.xml

代码语言:javascript
复制
<datasource>
 <name>WSO2_UM_DB</name>
 <description>The datasource used for registry and user manager</description>
 <jndiConfig>
  <name>jdbc/WSO2UmDB</name>
 </jndiConfig>
 <definition type="RDBMS">
 <configuration>
  <url>jdbc:mysql://localhost:3306/wso2conum_db</url>
  <username>root</username>
  <password>root</password>
  <driverClassName>com.mysql.jdbc.Driver</driverClassName>
  <maxActive>50</maxActive>
  <maxWait>60000</maxWait>
  <testOnBorrow>true</testOnBorrow>
  <validationQuery>SELECT 1</validationQuery>
  <validationInterval>30000</validationInterval>
 </configuration>
</definition>
</datasource>

将注册表安装到ESB节点- registry.xml

代码语言:javascript
复制
<dbConfig name="remote_registry">
    <dataSource>jdbc/WSO2_REG_DB</dataSource>
  </dbConfig>

<remoteInstance url="https://localhost:9445/registry">
    <id>instanceid</id>
    <dbConfig>remote_registry</dbConfig>
    <readOnly>false</readOnly>
    <enableCache>true</enableCache>
    <registryRoot>/</registryRoot>
    </remoteInstance>

    <mount path="/_system/config" overwrite="true">
    <instanceId>instanceid</instanceId>
    <targetPath>/_system/esbnodes</targetPath>
    </mount>
    <mount path="/_system/governance" overwrite="true">
    <instanceId>instanceid</instanceId>
    <targetPath>/_system/governance</targetPath>
    </mount>

在user-mgt.xml中指定用户存储区。

代码语言:javascript
复制
<Property name=”dataSource”>jdbc/WSO2UmDB</Property>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20520982

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档