Last modified by John Huss on 2012/04/26 11:29

From version 1.1
edited by John Huss
on 2012/04/25 17:50
Change comment: There is no comment for this version
To version 3.1
edited by John Huss
on 2012/04/25 18:08
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,1 +1,24 @@
1 1  The standard WebObjects deployment method using wotaskd has built-in support for Load Balancing between multiple servers or Proxying requests through to a different server.
2 +
3 +Assume you have two servers:
4 + Server1 (www.server.com) will be the primary server and will be the gateway for all requests (the proxy).
5 + Server2 (www2.server.com) will be a secondary server that also runs WO application instances.
6 +
7 +In the standard configuration requests are processed the following way.
8 +
9 +Web Browser > Apache on Server1 > mod//WebObjects (the WO Adaptor) > WOApplication (local or remote)//
10 +
11 +So the requests first go the apache, then apache passes it to mod//WebObjects (the WO Adaptor).  The adaptor decides where to send the request next based on the information it has received from the wotaskd instances running on each server.  wotaskd is configured via JavaMonitor and it tells the adaptor which servers are running this application and what the load balancing strategy is (typically Round Robin).  If the next WO application instance to be used is running on the same server as Apache then the request to passed to the local app and processed directly.  If the next app instance is running on a different server then the request to passed directly to the remote application instance on the port it is running on (like 2001) and the response is returned.  Note that the request doesn't go through Apache again on the remote server - it is received directly by the WO application through its port.//
12 +
13 +These are the components needed on each server:
14 +
15 +Server1 (primary and gateway / proxy).  Serves 1/2 (or whatever you want) of WO requests and ALL WebServerResources (static content).
16 + Apache and mod//WebObjects
17 + wotaskd
18 + JavaMonitor
19 + WOApplication//
20 +
21 +Server2 (secondary)
22 + wotaskd
23 + WOApplication
24 + (Optional) Apache & mod//WebObjects (possibly useful for debugging)//