
Test the Configuration
Follow these steps to make sure that client requests are balanced among the application servers:
1. Start the Web service in the web-server computer.
2. Start the application server in each of the application-server computers and run the following
commands on both:
$ cd /Library/JBoss/Logs
$ tail -f localhost_access<today's_date_YYYY-MM-DD>.log
3.
In the web-server computer, connect to http://<host_name>/petstore/index.jsp. The first
node should show a log entry similar to this:
17.203.255.255 - - [26/Sep/2003:15:56:58 -0800] "GET /petstore/index.jsp HTTP/1.1"
200 2769
4. Now, access the same URL from another computer. You should see a log entry in the second
node.
52
Load Balancing and Clustering
2005-08-11 | © 2003, 2005 Apple Computer, Inc. All Rights Reserved.
CHAPTER 5
Balancing User Load and Replicating Sessions
Komentáře k této Příručce