Monday, September 29, 2014

Creating a WSO2 IS cluster



Do the registry mounting as described in previous blog (

http://susinda.blogspot.com/2014/09/is-moving-user-db-registry-and-local.html)

Create another IS Node, by copy pasting the Node we created at previous blog, B

Configure the shared registry database and mounting details in another node (lets say Node2), And create another database called REGISTRY_LOCAL2 and configure that as the local registry for Node2 

In Node2 Do following configs

is_home/repository/conf/registry.xml of the worker node as shown below:

Set ReadOnly true for the shared registry


    instanceid

    sharedregistry

    true


Set embedded false for EmbeddedLDAP
In embedded-ldap.xml make embedded false since this will use nodeA's ldap
  
    true

Point node 2 to the default user store of node1. 
You need to configure the connection URL in user-mgt.xml of node2 as given below (default port is 10389). By default, the connection URL given in the file is ldap://localhost:${Ports.EmbeddedLDAP.LDAPServerPort}.

    <------------>
    ldap://[IP_of_node1]:10389




Manager node do the Following Configurations

1.In axis2.xml

Enable clustering






Set membership sceme


wka


set domain


wso2.is.domain


set sub domain as "mgt"



   
   
   



Set localmemberHost


127.0.0.1


set localmember port


4000


Add ELB as a member in memebers section, use ELBs group_mgt_port as the port



        127.0.0.1
        4500




2. In carbon.xml do the following

Set host name
 wso2.is.com

Set management host name
 wso2.is.com

3. In catalina-server.xml set proxyports in http and https respectively
proxyPort="80"
proxyPort="443"


Configure ELB
1. Edit loadbalacer.conf as follows
services {
    identity {
    domains {
         wso2.is.domain {
            tenant_range *;
            group_mgt_port 4500;
            mgt{
                hosts wso2.is.com;
            }
        }
    }
}
}


2.In axis2.xml configure following

Enable clustering


Set membership sceme
wka

set domain
wso2.lb.domain

set localmember port
4200




Running the cluster
  1. Start the ELB (you need to be the superuser of that computer to start ELB since we are running ELB on default ports) and the IS nodes.
  2. Now you can access the management console using the following URL: https://wso2.is.com/carbon/

No comments: