Chapter 10. Load Balancing Demonstration
jboss-eap-5.1/mod_cluster/demo directory.
-
/server/load-demo.war - A WAR file to be deployed in JBoss Enterprise Application Platform or JBoss Enterprise Web Server. This WAR includes a number of servlets.
-
/client/lib/mod-cluster-demo.jar - A web application that lets users launch a pool of threads, which send requests through the load balancer to
load-demo.war's primary servlet. The application displays information about which servers are handling the requests. It can also send separate requests toload-demo.war's load generation servlets, allowing the user to see how certain load conditions affect request load balancing.
Note
10.1. Set up the Demonstration Copy linkLink copied to clipboard!
Task: Start the Demo
Prerequisites
- Install and Configure the Worker Node. Refer to Section 7.2, “Install and Configure a Worker Node”
- Install and Configure the Proxy Server. Refer to Section 9.1, “Static Proxy Configuration”
Start the Proxy Server
Navigate toHTTPD_DIST/sbinand start the proxy server.[sbin]$ apachectl startStart the Worker Node
In a terminal, execute the following command:- For JBoss Enterprise Web Server:
[home]$ ./JBOSS_EWS_DIST/tomcat6/bin/startup.sh - For JBoss Enterprise Application Platform:
[home]$ ./JBOSS_EAP_DIST/bin/run.sh
Specify the Catalina Service Name
AWAITING CONFIRMATON ON JBPAPP-6550Deploy Demo Web Archive to Worker Node
Copyload-demo.warfromJBOSS-EAP_DIST/mod_cluster/demo/serverinto one of the following directories:- For JBoss Enterprise Web Server:
JBOSS_EWS_DIST/tomcat6/webapps - For JBoss Enterprise Application Platform:
JBOSS_EAP_DIST/jboss-as/server/PROFILE/deploy
Start the Demonstration
Navigate toJBOSS_EAP_DIST/mod_cluster/demo/client/, and start the demonstration.[client]$ ./run-demo.shResultThe demonstration starts, and the Load Balancing Demonstration window opens. Proceed to Task: Configure Client Control Tab Fields