Load Balance in Windows
When the ESB has only stateless mediators
Use the system specific load balancers. No additional configuration at the ESB level.
When stateful mediators are deployed in the ESB
Example of stateful mediators:
- cache mediator
- throttling mediator
- stateful load-balancing mediator
Axis2 Session Replication Configuration
In ESB_HOME/conf/axis2.conf, uncomment the following block:
<cluster class="org.apache.axis2.clustering.tribes.TribesClusterManager">
...
</cluster>
Common Registry
If all the nodes in a cluster need to have a common-registry, few configuration need to be done:
1. Change in server.xml
In ESB_HOME/webapp/WEB-INF/classes/conf/server.xml, change to:
<Registry>
<importRoot>file:registry</importRoot>
<type>remote</type>
<configuration>
<url>http://localhost:8081/wso2registry</url>
<username>admin</username>
<password>admin</password>
</configuration>
</Registry>
2. Change in synapse.xml
Add the following entry:
<registry provider="org.wso2.esb.registry.WSO2Registry">
</registry>
Detailed Clustering Guide
Download the PDF from here:
http://wso2.org/library/articles/wso2-esb-apache-synapse-clustering-guide
|