Tuesday, September 29, 2015

Cluster Guide changes for wso2 BPS 3.5.0


Please follow this link as the general cluster guide for bps 3.5.0.  (yet to be released) http://nandikajayawardana.blogspot.com/2014/02/how-to-cluster-wso2-bps-320.html   But make sure you add below changes for your cluster setup, if you are trying to cluster bps 3.5.0.


1. Regarding the persistence database (BPS_DB in above blog post) ,  you will not find a database.properties file as mentioned in this new release. Therefore you need to add the configurations of your BPS_DB to   bps-datasources.xml file in <product_home>/repository/conf/datasources.

Suppose you create a MYSQL database called BPS_DB, you will need to add a similar configuration to bps-datasources.xml file. You need to change the db name, driverClassName,username,password according to your custom settings.



<datasource>
            <name>BPS_DS</name>
            <description></description>
            <jndiConfig>
                <name>bpsds</name>
            </jndiConfig>
            <definition type="RDBMS">
                <configuration>
                    <url>jdbc:mysql://localhost:3306/BPS_DB?autoReconnect=true</url>
                    <username>root</username>
                    <password>root</password>
                    <driverClassName>com.mysql.jdbc.Driver</driverClassName>
                    <testOnBorrow>true</testOnBorrow>
                    <validationQuery>SELECT 1</validationQuery>
                    <validationInterval>30000</validationInterval>
                    <useDataSourceFactory>false</useDataSourceFactory>
            <defaultAutoCommit>true</defaultAutoCommit>
             <maxActive>100</maxActive>
                    <maxIdle>20</maxIdle>
            <maxWait>10000</maxWait>
                </configuration>
            </definition>
        </datasource>

Note that this needs to be done in both master/slave nodes.

No comments:

Post a Comment