Wso2 如何设置Data Services服务器群集
是否有关于如何设置Data Services服务器群集的详细教程 我遵循了指南,但它不是专门针对DSS的 关于这个指南,我也有一些问题Wso2 如何设置Data Services服务器群集,wso2,cluster-computing,wso2dss,Wso2,Cluster Computing,Wso2dss,是否有关于如何设置Data Services服务器群集的详细教程 我遵循了指南,但它不是专门针对DSS的 关于这个指南,我也有一些问题 在“设置数据库”一节中,我们需要创建多少个数据库?碳数据库、wso2conum\u数据库或wso2conreg\u数据库? 我只找到了创建wso2conum_数据库或wso2conreg_数据库的过程,但没有找到创建carbondb的过程 我是否需要在“ESB_MGR_HOME/repository/conf/datasoruces/master datasou
群集数据服务类似于群集应用程序服务器 用于数据库配置 您只需要两个数据库 1) wso2conreg_db-存储注册表数据的数据库(您可以提供任何您喜欢的名称) 2) wso2conum_db-存储与用户管理相关的数据。(您可以给出您喜欢的任何名称) 需要根据数据库凭据在master-datasources.xml中定义这些数据源,如下所示 将注册表装载到ESB节点(master datasources.xml)
WSO2_REG_DB
用于注册表的数据源
jdbc/WSO2_REG_DB
jdbc:mysql://localhost:3306/wso2conreg_db
根
根
com.mysql.jdbc.Driver
50
60000
真的
选择1
30000
配置用户管理数据库master datasources.xml
<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>
<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>
<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>
<Property name=”dataSource”>jdbc/WSO2UmDB</Property>
WSO2_UM_DB
用于注册表和用户管理器的数据源
jdbc/WSO2UmDB
jdbc:mysql://localhost:3306/wso2conum_db
根
根
com.mysql.jdbc.Driver
50
60000
真的
选择1
30000
将注册表装载到ESB节点-Registry.xml
<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>
<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>
<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>
<Property name=”dataSource”>jdbc/WSO2UmDB</Property>
jdbc/WSO2_REG_DB
实例ID
远程注册
假的
真的
/
实例ID
/_系统/ESB节点
实例ID
/_系统/治理
在user mgt.xml中指定userstore
<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>
<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>
<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>
<Property name=”dataSource”>jdbc/WSO2UmDB</Property>
jdbc/WSO2UmDB
谢谢。我试着像你写的那样,但不起作用。以下是错误信息。“java.sql.SQLException:可用连接的总数小于提交的连接的总数”恐怕我在master-datasources.xml和registry.xml中写错了什么。您能给我看一下这两个文件的完整内容吗?上面我只解释了数据库端(注册表装载和用户管理),如果您想为DSS配置集群,请参考此