1. If you have created the registry database you can use it. If not you can builder database. (In here I am using reg_db that I created in last post)

2. Add mysql driver to lib

3. Update datasource in <IS_HOME>/repository/conf/datasources/master-datasources.xml

<datasource>
  <name>WSO2_CARBON_DB</name>
    <description>The datasource used for registry and user manager</description>
      <jndiConfig>
      <name>jdbc/WSO2CarbonDB</name>
      </jndiConfig>
      <definition type="RDBMS">
          <configuration>
              <url>jdbc:mysql://localhost:3306/regdb</url>
              <username>regdb_user</username>
              <password>regdb_user12!</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>

In node 1 enable clustering

<IS_HOME>/repository/conf/axis2/axis2.xml by setting the clustering element to true:

<clustering class="org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent" enable="true">

 

4. Start the server and browser Register. As I was using same registry that I tried in my last post. I can see my APIs

image

If need High availability for IS even. you can define adding new IS for server. In there you can share registry and user management. 

[NOTE]

Rather sharing full registry you can share Governance and Config. not the local as it need some local data to handle. So you can point local to H2.

IS normally used as ‘manager’ but for HA you can used it sharing registry and user manager.

 

[1] http://docs.wso2.org/display/CLUSTER420/Clustering+Identity+Server

0

Add a comment

I am
I am
Archives
Total Pageviews
Total Pageviews
2 0 5 7 7 0 6
Categories
Categories
Loading