Chapter 12. Load balancing demonstration
JBOSS_EAP_DIST/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, by sending requests through the load balancer to the application's primary servlet. The application displays information about which servers are handling the requests. It can also send separate requests to the application's load-generation servlets, allowing the user to see how certain load conditions affect request load balancing.
Important
Note
12.1. Set up the demonstration
Task: Start the Demo
Prerequisites
- Install and Configure the Worker Node. Refer to Section 8.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 start
Start 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
On JBoss Enterprise Web Server, specify the Catalina Service Name
Tomcat 6 only: In$JBOSS_EWS_DIST/mod_cluster/src/demo/resources/web.xml, under the<web-app>element, append a<context-param>directive, which specifies Catalina as a service.<context-param> <param-name>service-name</param-name> <param-value>Catalina</param-value> </context-param>
Deploy 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.sh
ResultThe demonstration starts, and the Load Balancing Demonstration window opens. Proceed to Task: Configure Client Control Tab Fields


Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.