We have been redesigning our test framework for better clustering support.
There are certain test scenarios which we need to think of before
finalizing the design. In test framework all cluster configuration details
(ports, hosts etc.. ) are kept in a configuration file. A sample framework
configuration is attached here with. My concern is when dealing with worker
nodes, the framework doesn't have a way to access required information like
deployed artifacts, server availability etc..because admin service APIs are
not available in worker nodes.
Is there any API to retrieve worker related details ? if not, what is the
best possible way to access worker details ?
example scenarios :
1. One work node fails and other node is still serving client requests -
How to detect whether all worker nodes are up and running in a cluster ?
2. Exception thrown in worker node console when deploying a webapp - How to
detect whether the webapp is deployed in all worker nodes.
Thanks,
--
Krishantha Samaraweera
Senior Technical Lead - Test Automation
Mobile: +94 77 7759918
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
<platform>
<!--
cluster instance details to be used to platform test execution
-->
<productGroup name="ESB" clusteringEnabled="true">
<instance name="worker001" type="worker" servicePortType="nhttpport">
<host>worker.real.wso2con.com</host>
<httpport>9763</httpport>
<webContext>/</webContext>
<httpsport>9443</httpsport>
<nhttpsport>8245</nhttpsport>
<nhttpport>8283</nhttpport>
</instance>
<!--
List of managers which will assign id the suite is directed to execute
in a clustered environment with worker manager separation
-->
<instance name="manager001" type="manager" servicePortType="nhttpport">
<host>manager.real.esb.wso2con.com</host>
<httpport>9764</httpport>
<webContext>/</webContext>
<httpsport>9444</httpsport>
<nhttpsport>8244</nhttpsport>
<nhttpport>8282</nhttpport>
</instance>
<!--Configuration of the fronted LB on a LB fronted deployment-->
<instance name="lbw001" type="lb_worker_manager">
<workerHost>esb.wso2con.com</workerHost>
<managerHost>mgt.esb.wso2con.com</managerHost>
<httpport>9763</httpport>
<httpsport>9443</httpsport>
<nhttpsport>8243</nhttpsport>
<nhttpport>8280</nhttpport>
<webContext>/</webContext>
</instance>
</productGroup>
</platform>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev