Load balancing – Apple WebObjects 3.5: Serving User Manual
Page 31

Serving WebObjects
32
You can programmatically set up an application to shut down in addition to
setting it using the Monitor. If the two settings conflict, the Monitor settings
override the application’s settings. For more information, see the WebObjects
Developer’s Guide.
Load Balancing
You can improve the performance of a WebObjects application by distributing
the processing load among multiple instances of the application. These
application processes can be running on the same machine as the server or on
remote machines. The task that accomplishes this distribution is called load
balancing.
As an example of how load balancing works, suppose you have an application
called MyApp and you have configured WebObjects to run two instances of
MyApp on the host toga and two instances on the host tutu. When a user types
this URL:
http://toga.acme.com/cgi-bin/WebObjects/MyApp
the WebObjects adaptor looks for an instance of MyApp on the host toga. If it
finds an instance and the instance is ready to receive requests, the adaptor sends
the request to that instance. If both of the instances of MyApp on toga are busy,
it accesses an instance on the host tutu.
Use the Monitor application to create new instances of an application for load
balancing. To create new instances of an application, do the following:
1. Locate the application in the left frame and click the inspector button to its
left.
The Application Inspector opens in the right frame.