This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
Configure Automation.xml for Different Clustering Patterns
WSO2 TAF supports automated tests in clustered environments. The configurations for the tests have to be defined in the automation.xml file which contains all the configuration details for tests. This page contains the configuration details for the different clustering patterns that exist. For more information on clustering patterns, see Worker/Manager Clustering Patterns.
Example configurations have been shown for the ESB cluster.
Worker/Manager clustering deployment pattern 1
This involves two worker nodes within a cluster.
Â
<productGroup name="ESB" clusteringEnabled="true" default="true"> <instance name="lbw001" type="lb_worker" nonBlockingTransportEnabled="true"> <hosts> <host type="default">esb.wso2con.com</host> </hosts> <ports> <port type="nhttps">8243</port> <port type="nhttp">8280</port> </ports> <properties> </properties> </instance> <instance name="esbm" type="manager" nonBlockingTransportEnabled="true"> <hosts> <host type="default">localhost</host> </hosts> <ports> <port type="nhttps">9446</port> <port type="nhttp">8280</port> </ports> <properties> </properties> </instance> </productGroup>
Worker/Manager clustering deployment pattern 2
Â
<productGroup name="ESB" clusteringEnabled="true" default="true"> <instance name="lbwm" type="lb_worker_manager" nonBlockingTransportEnabled="true"> <hosts> <host type="worker">esb.wso2con.com</host> <host type="manager">mgt.esb.wso2con.com</host> </hosts> <ports> <port type="nhttps">8243</port> <port type="nhttp">8280</port> </ports> <properties> </properties> </instance> </productGroup>
Worker/Manager clustering deployment pattern 3
This pattern has two manager nodes in a cluster and two worker nodes in a different cluster. Both clusters use their own load balancer.
The configuration for the automation.xml file is as follows:
<productGroup name="ESB" clusteringEnabled="true" default="true"> <instance name="lbw001" type="lb_worker" nonBlockingTransportEnabled="true"> <hosts> <host type="default">esb.wso2con.com</host> </hosts> <ports> <port type="nhttps">8243</port> <port type="nhttp">8280</port> </ports> <properties> </properties> </instance> <instance name="lbm001" type="lb_manager" nonBlockingTransportEnabled="true"> <hosts> <host type="default">mgt.esb.wso2con.com</host> </hosts> <ports> <port type="nhttps">8244</port> <port type="nhttp">8281</port> </ports> <properties> </properties> </instance> </productGroup>