Installation guide

in something other than a HT TP 200 response.
This section shows you how to configure and start using the demo.
Task: Interact with t he Demonstrat ion
Complete this task to test the effects of changing load-balancing parameters.
Prerequisit es
Complete T ask: Start the Demo.
Complete T ask: Configure Client Control T ab Fields.
1. Click on the Request Balancing tab to see how many requests are going to each of the worker
nodes.
2. Click on the Session Balancing tab to see how many active sessions are being hosted by each
of the worker nodes.
3. Stop some of the worker nodes, or undeploy load-demo.war, and observe the effect that this has
on request and session balancing.
4. Restart some of the worker nodes, or re-deploy the load-demo.war to some of the workers, and
observe the effect that this has on request and session balancing.
5. Experiment with adding artificial load to one or more worker nodes and observe the effects on load
and session balancing. (See Section 12.3.1, ā€œGenerate artificial loadā€ for details.)
12.3.1. Generate artificial load
You can use the Load Balancing Demonstration to instruct your worker nodes to generate various types
of load, and then track how that load affects request and session balancing. Load generation is
controlled in the Server Load Control tab:
Targe t Hostname, T arge t Port
The hostname and port number of the server on which to generate load. T here are two
strategies for setting these values:
1. Use the hostname and port of the proxy server. T he proxy will route the load to a worker
node. However, the client does not maintain a session cookie for these requests, so
subsequent generated load will not necessarily be routed to the same worker.
2. If the worker nodes are running the HttpConnector and the AJP connector, you can
specify the IP address and port on which a worker's HttpConnector is listening. (The
default is 8080.)
Load Creation Action
Specifies the type of load the worker node should generate.
Available Actions
Active Sessions
Generates server load by causing session creation on the target server.
Da ta source Use
Generates server load by taking connections from the java:DefaultDS datasource
for a set time.
Connection Pool Use
Generates server load by blocking threads in the webserver connections pool for a set
time.
Heap Memory Pool Use
Generates server load by filling 50% of free heap memory for a set time.
CPU Use
Generates server CPU load by initiating a tight loop in a thread.
Server Receive T raffic
Generates server traffic receipt load by POSTing a large byte array to the server once
JBoss Enterprise Application Platform 5 HTTP Connectors Load Balancing Guide 47